Package org.hl7.fhir.r4.model
Class Factory
java.lang.Object
org.hl7.fhir.r4.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 CanonicalTypenewCanonical(String 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 UriTypestatic UrlType
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
newId
-
newString_
-
newUri
- Throws:
URISyntaxException
-
newUrl
- Throws:
URISyntaxException
-
newCanonical
- 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
-