Interface FHIRPatch

    • 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