
Package org.hl7.fhir.dstu3.model
Class Factory
- java.lang.Object
-
- org.hl7.fhir.dstu3.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 Type
create(String name)
static String
createUUID()
static Coding
makeCoding(String code)
static Reference
makeReference(String url)
static Reference
makeReference(String url, String text)
static BooleanType
newBoolean(boolean value)
static CodeType
newCode(String value)
static CodeableConcept
newCodeableConcept(String code, String system, String display)
static ContactPoint
newContactPoint(ContactPoint.ContactPointSystem system, String value)
static DateType
newDate(String value)
static DateTimeType
newDateTime(String value)
static Extension
newExtension(String uri, Type value, boolean evenIfNull)
static IdType
newId(String value)
static IntegerType
newInteger(int value)
static IntegerType
newInteger(Integer value)
static Narrative
newNarrative(Narrative.NarrativeStatus status, String html)
static StringType
newString_(String value)
static UriType
newUri(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:
IOException
org.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()
-
-