Class FhirPatch

java.lang.Object
ca.uhn.fhir.jpa.patch.FhirPatch

public class FhirPatch extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    FhirPatch(ca.uhn.fhir.context.FhirContext theContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addIgnorePath(String theIgnorePath)
    Adds a path element that will not be included in generated diffs.
    void
    apply(org.hl7.fhir.instance.model.api.IBaseResource theResource, org.hl7.fhir.instance.model.api.IBaseResource thePatch)
     
    org.hl7.fhir.instance.model.api.IBaseParameters
    diff(org.hl7.fhir.instance.model.api.IBaseResource theOldValue, org.hl7.fhir.instance.model.api.IBaseResource theNewValue)
     
    void
    setIncludePreviousValueInDiff(boolean theIncludePreviousValueInDiff)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FhirPatch

      public FhirPatch(ca.uhn.fhir.context.FhirContext theContext)
  • Method Details

    • addIgnorePath

      public void addIgnorePath(String theIgnorePath)
      Adds a path element that will not be included in generated diffs. Values can take the form ResourceName.fieldName.fieldName and wildcards are supported, such as *.meta.
    • setIncludePreviousValueInDiff

      public void setIncludePreviousValueInDiff(boolean theIncludePreviousValueInDiff)
    • apply

      public void apply(org.hl7.fhir.instance.model.api.IBaseResource theResource, org.hl7.fhir.instance.model.api.IBaseResource thePatch)
    • diff

      public org.hl7.fhir.instance.model.api.IBaseParameters diff(@Nullable org.hl7.fhir.instance.model.api.IBaseResource theOldValue, @Nonnull org.hl7.fhir.instance.model.api.IBaseResource theNewValue)