
Package ca.uhn.fhir.util
Class ResourceUtil
java.lang.Object
ca.uhn.fhir.util.ResourceUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddRawDataToResource(IBaseResource theResource, EncodingEnum theEncodingType, String theSerializedData) static EncodingEnumgetEncodingTypeFromUserData(IBaseResource theResource) static StringgetRawStringFromResourceOrNull(IBaseResource theResource) static voidremoveNarrative(FhirContext theContext, IBaseResource theInput) This method removes the narrative from the resource, or if the resource is a bundle, removes the narrative from all of the resources in the bundle
-
Method Details
-
removeNarrative
This method removes the narrative from the resource, or if the resource is a bundle, removes the narrative from all of the resources in the bundle- Parameters:
theContext- The fhir contexttheInput- The resource to remove the narrative from
-
addRawDataToResource
public static void addRawDataToResource(@Nonnull IBaseResource theResource, @Nonnull EncodingEnum theEncodingType, String theSerializedData) throws IOException - Throws:
IOException
-
getEncodingTypeFromUserData
-
getRawStringFromResourceOrNull
-