Package ca.uhn.fhir.util
Class MetaUtil
java.lang.Object
ca.uhn.fhir.util.MetaUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
cleanProvenanceSourceUriOrEmpty
(String theProvenanceSourceUri) getAutoVersionReferencesAtPath
(IBaseMetaType theMeta, String theResourceType) static String
getSource
(FhirContext theContext, IBaseMetaType theMeta) static <R extends IBaseResource>
voidpopulateResourceSource
(FhirContext theFhirContext, String theProvenanceSourceUri, String theProvenanceRequestId, R theRetVal) static void
setSource
(FhirContext theContext, IBaseMetaType theMeta, String theValue) static void
setSource
(FhirContext theContext, IBaseResource theResource, String theValue) Sets the value forResource.meta.source
for R4+ resources, and places the value in an extension onResource.meta
with the URLhttp://hapifhir.io/fhir/StructureDefinition/resource-meta-source
for DSTU3.
-
Method Details
-
cleanProvenanceSourceUriOrEmpty
-
getSource
-
populateResourceSource
public static <R extends IBaseResource> void populateResourceSource(FhirContext theFhirContext, String theProvenanceSourceUri, String theProvenanceRequestId, R theRetVal) -
setSource
Sets the value forResource.meta.source
for R4+ resources, and places the value in an extension onResource.meta
with the URLhttp://hapifhir.io/fhir/StructureDefinition/resource-meta-source
for DSTU3.- Parameters:
theContext
- The FhirContext objecttheResource
- The resource to modifytheValue
- The source URI- See Also:
-
setSource
-
getAutoVersionReferencesAtPath
public static Set<String> getAutoVersionReferencesAtPath(IBaseMetaType theMeta, String theResourceType)
-