
Package org.hl7.fhir.dstu2.model
Class Factory
java.lang.Object
org.hl7.fhir.dstu2.model.Factory
- Direct Known Subclasses:
ResourceFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic CodingmakeCoding(String code) static ReferencemakeReference(String url) static ReferencemakeReference(String url, String text) static BooleanTypenewBoolean(boolean value) static CodeTypestatic CodeableConceptnewCodeableConcept(String code, String system, String display) static ContactPointnewContactPoint(ContactPoint.ContactPointSystem system, String value) static DateTypestatic DateTimeTypenewDateTime(String value) static ExtensionnewExtension(String uri, Type value, boolean evenIfNull) static IdTypestatic IntegerTypenewInteger(int value) static IntegerTypenewInteger(Integer value) static NarrativenewNarrative(Narrative.NarrativeStatus status, String html) static StringTypenewString_(String value) static UriType
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
newId
-
newString_
-
newUri
- Throws:
URISyntaxException
-
newDateTime
- Throws:
ParseException
-
newDate
- Throws:
ParseException
-
newCode
-
newInteger
-
newInteger
-
newBoolean
-
newContactPoint
-
newExtension
-
newCodeableConcept
-
makeReference
-
newNarrative
public static Narrative newNarrative(Narrative.NarrativeStatus status, String html) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
makeCoding
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeReference
-
createUUID
-
create
- Throws:
org.hl7.fhir.exceptions.FHIRException
-