Package com.ibm.fhir.model.patch
Interface FHIRPatch
-
- All Known Implementing Classes:
FHIRJsonPatch
,FHIRPathPatch
,FHIRPathPatchAdd
,FHIRPathPatchDelete
,FHIRPathPatchInsert
,FHIRPathPatchMove
,FHIRPathPatchOperation
,FHIRPathPatchReplace
public interface FHIRPatch
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T extends Resource>
Tapply(T resource)
Apply this patch to a resourcedefault <T extends FHIRPatch>
Tas(java.lang.Class<T> patchClass)
static FHIRPatch
patch(jakarta.json.JsonArray array)
Factory method that constructs a new FHIRPatch object from a JsonArray objectstatic FHIRPatch
patch(jakarta.json.JsonPatch patch)
Factory method that constructs a new FHIRPatch object from a JsonPatch object
-
-
-
Method Detail
-
apply
<T extends Resource> T apply(T resource) throws FHIRPatchException
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
-
as
default <T extends FHIRPatch> T as(java.lang.Class<T> patchClass)
-
patch
static FHIRPatch patch(jakarta.json.JsonArray array)
Factory method that constructs a new FHIRPatch object from a JsonArray object- Parameters:
array
- the JsonArray object- Returns:
- the newly constructed FHIRPatch object
-
patch
static FHIRPatch patch(jakarta.json.JsonPatch patch)
Factory method that constructs a new FHIRPatch object from a JsonPatch object- Parameters:
patch
- the JsonPatch object- Returns:
- the newly constructed FHIRPatch object
-
-