Class FHIRPathPatchReplace
- java.lang.Object
-
- org.linuxforhealth.fhir.path.patch.FHIRPathPatchOperation
-
- org.linuxforhealth.fhir.path.patch.FHIRPathPatchReplace
-
- All Implemented Interfaces:
FHIRPatch
class FHIRPathPatchReplace extends FHIRPathPatchOperation
-
-
Constructor Summary
Constructors Constructor Description FHIRPathPatchReplace(java.lang.String fhirPath, Element value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Resource>
Tapply(T resource)
Apply this patch to a resourceParameters.Parameter
toParameter()
Convert the FHIRPathPatchOperation to a Parameters.Parameter element
-
-
-
Field Detail
-
fhirPath
java.lang.String fhirPath
-
value
Element value
-
-
Constructor Detail
-
FHIRPathPatchReplace
public FHIRPathPatchReplace(java.lang.String fhirPath, Element value)
-
-
Method Detail
-
apply
public <T extends Resource> T apply(T resource) throws FHIRPatchException
Description copied from interface:FHIRPatch
Apply this patch to a resource- Parameters:
resource
- the resource that this patch is applied to- Returns:
- a new resource that is the result of applying this patch
- Throws:
FHIRPatchException
-
toParameter
public Parameters.Parameter toParameter()
Description copied from class:FHIRPathPatchOperation
Convert the FHIRPathPatchOperation to a Parameters.Parameter element- Specified by:
toParameter
in classFHIRPathPatchOperation
-
-