Class FHIRJsonPatch

  • All Implemented Interfaces:
    FHIRPatch

    public class FHIRJsonPatch
    extends java.lang.Object
    implements FHIRPatch
    • 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>
      T
      apply​(T resource)
      Apply this patch to a resource
      jakarta.json.JsonPatch getJsonPatch()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.linuxforhealth.fhir.model.patch.FHIRPatch

        as
    • Constructor Detail

      • FHIRJsonPatch

        FHIRJsonPatch​(jakarta.json.JsonArray array)
      • FHIRJsonPatch

        FHIRJsonPatch​(jakarta.json.JsonPatch patch)
    • 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 interface FHIRPatch
        Parameters:
        resource - the resource that this patch is applied to
        Returns:
        a new resource that is the result of applying this patch
        Throws:
        FHIRPatchException