Package ca.uhn.fhir.mdm.util
Class IdentifierUtil
java.lang.Object
ca.uhn.fhir.mdm.util.IdentifierUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic CanonicalIdentifier
identifierDtFromIdentifier
(org.hl7.fhir.instance.model.api.IBase theIdentifier) static <T extends org.hl7.fhir.instance.model.api.IBase>
TtoId
(ca.uhn.fhir.context.FhirContext theFhirContext, CanonicalEID eid) Retrieves appropriate FHIR Identifier model instance based on the context version
-
Method Details
-
identifierDtFromIdentifier
public static CanonicalIdentifier identifierDtFromIdentifier(org.hl7.fhir.instance.model.api.IBase theIdentifier) -
toId
public static <T extends org.hl7.fhir.instance.model.api.IBase> T toId(ca.uhn.fhir.context.FhirContext theFhirContext, CanonicalEID eid) Retrieves appropriate FHIR Identifier model instance based on the context version- Type Parameters:
T
- Generic Identifier base interface- Parameters:
theFhirContext
- FHIR context to use for determining the identifier versioneid
- EID to get equivalent FHIR Identifier from- Returns:
- Returns appropriate R5, R4 or DSTU3 Identifier instance
-