Class FHIRPathPatch
- java.lang.Object
-
- org.linuxforhealth.fhir.path.patch.FHIRPathPatch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FHIRPathPatch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Resource>
Tapply(T resource)
Apply this patch to a resourcestatic FHIRPathPatch.Builder
builder()
static FHIRPathPatch
from(Parameters params)
Parse a FHIRPathPatch from a FHIR Parameters resourceFHIRPathPatch.Builder
toBuilder()
Parameters
toParameters()
Convert the FHIRPathPatch to a FHIR Parameters resource
-
-
-
Method Detail
-
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
-
toParameters
public Parameters toParameters()
Convert the FHIRPathPatch to a FHIR Parameters resource
-
toBuilder
public FHIRPathPatch.Builder toBuilder()
-
builder
public static FHIRPathPatch.Builder builder()
-
from
public static FHIRPathPatch from(Parameters params)
Parse a FHIRPathPatch from a FHIR Parameters resource- Throws:
java.lang.IllegalArgumentException
- if the Parameters object does not satisfy the requirements of a FHIRPath Patch
-
-