Package com.ibm.fhir.path.patch
Class FHIRPathPatch
- java.lang.Object
 - 
- com.ibm.fhir.path.patch.FHIRPathPatch
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFHIRPathPatch.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.Builderbuilder()static FHIRPathPatchfrom(Parameters params)Parse a FHIRPathPatch from a FHIR Parameters resourceFHIRPathPatch.BuildertoBuilder()ParameterstoParameters()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:FHIRPatchApply this patch to a resource- Specified by:
 applyin 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:
 IllegalArgumentException- if the Parameters object does not satisfy the requirements of a FHIRPath Patch
 
 - 
 
 -