Package org.hl7.fhir.dstu2.model
Class Factory
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Factory
-
- Direct Known Subclasses:
ResourceFactory
public class Factory extends Object
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Typecreate(String name)static StringcreateUUID()static CodingmakeCoding(String code)static ReferencemakeReference(String url)static ReferencemakeReference(String url, String text)static BooleanTypenewBoolean(boolean value)static CodeTypenewCode(String value)static CodeableConceptnewCodeableConcept(String code, String system, String display)static ContactPointnewContactPoint(ContactPoint.ContactPointSystem system, String value)static DateTypenewDate(String value)static DateTimeTypenewDateTime(String value)static ExtensionnewExtension(String uri, Type value, boolean evenIfNull)static IdTypenewId(String value)static IntegerTypenewInteger(int value)static IntegerTypenewInteger(Integer value)static NarrativenewNarrative(Narrative.NarrativeStatus status, String html)static StringTypenewString_(String value)static UriTypenewUri(String value)
-
-
-
Constructor Detail
-
Factory
public Factory()
-
-
Method Detail
-
newString_
public static StringType newString_(String value)
-
newUri
public static UriType newUri(String value) throws URISyntaxException
- Throws:
URISyntaxException
-
newDateTime
public static DateTimeType newDateTime(String value) throws ParseException
- Throws:
ParseException
-
newDate
public static DateType newDate(String value) throws ParseException
- Throws:
ParseException
-
newInteger
public static IntegerType newInteger(int value)
-
newInteger
public static IntegerType newInteger(Integer value)
-
newBoolean
public static BooleanType newBoolean(boolean value)
-
newContactPoint
public static ContactPoint newContactPoint(ContactPoint.ContactPointSystem system, String value)
-
newExtension
public static Extension newExtension(String uri, Type value, boolean evenIfNull)
-
newCodeableConcept
public static CodeableConcept newCodeableConcept(String code, String system, String display)
-
makeReference
public static Reference makeReference(String url)
-
newNarrative
public static Narrative newNarrative(Narrative.NarrativeStatus status, String html) throws IOException, org.hl7.fhir.exceptions.FHIRException
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
makeCoding
public static Coding makeCoding(String code) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeReference
public static Reference makeReference(String url, String text)
-
createUUID
public static String createUUID()
-
-