Class FHIRJsonPatch
- java.lang.Object
-
- org.linuxforhealth.fhir.model.patch.FHIRJsonPatch
-
-
Constructor Summary
Constructors Constructor Description FHIRJsonPatch(jakarta.json.JsonArray array)
FHIRJsonPatch(jakarta.json.JsonPatch patch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Resource>
Tapply(T resource)
Apply this patch to a resourcejakarta.json.JsonPatch
getJsonPatch()
-
-
-
Method Detail
-
getJsonPatch
public jakarta.json.JsonPatch getJsonPatch()
-
apply
public <T extends Resource> T apply(T resource) throws FHIRPatchException
Description copied from interface:FHIRPatch
Apply this patch to a resource- Specified by:
apply
in interfaceFHIRPatch
- Parameters:
resource
- the resource that this patch is applied to- Returns:
- a new resource that is the result of applying this patch
- Throws:
FHIRPatchException
-
-