Class FHIRPathPatchAdd
- java.lang.Object
 - 
- org.linuxforhealth.fhir.path.patch.FHIRPathPatchOperation
 - 
- org.linuxforhealth.fhir.path.patch.FHIRPathPatchAdd
 
 
 
- 
- All Implemented Interfaces:
 FHIRPatch
class FHIRPathPatchAdd extends FHIRPathPatchOperation
 
- 
- 
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringfhirPath(package private) java.lang.Stringname(package private) Elementvalue- 
Fields inherited from class org.linuxforhealth.fhir.path.patch.FHIRPathPatchOperation
DESTINATION, INDEX, NAME, OPERATION, PATH, SOURCE, TYPE, VALUE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FHIRPathPatchAdd(java.lang.String fhirPath, java.lang.String name, 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.ParametertoParameter()Convert the FHIRPathPatchOperation to a Parameters.Parameter element 
 - 
 
- 
- 
Field Detail
- 
fhirPath
java.lang.String fhirPath
 
- 
name
java.lang.String name
 
- 
value
Element value
 
 - 
 
- 
Constructor Detail
- 
FHIRPathPatchAdd
public FHIRPathPatchAdd(java.lang.String fhirPath, java.lang.String name, Element value) 
 - 
 
- 
Method Detail
- 
apply
public <T extends Resource> T apply(T resource) throws FHIRPatchException
Description copied from interface:FHIRPatchApply 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:FHIRPathPatchOperationConvert the FHIRPathPatchOperation to a Parameters.Parameter element- Specified by:
 toParameterin classFHIRPathPatchOperation
 
 - 
 
 -