Package ca.uhn.fhir.util
Class ResourceUtil
java.lang.Object
ca.uhn.fhir.util.ResourceUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addRawDataToResource
(IBaseResource theResource, EncodingEnum theEncodingType, String theSerializedData) static EncodingEnum
getEncodingTypeFromUserData
(IBaseResource theResource) static String
getRawStringFromResourceOrNull
(IBaseResource theResource) static void
removeNarrative
(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
-