Package ca.uhn.fhir.jpa.patch
Class FhirPatch
java.lang.Object
ca.uhn.fhir.jpa.patch.FhirPatch
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Field Details
-
OPERATION_ADD
- See Also:
-
OPERATION_DELETE
- See Also:
-
OPERATION_INSERT
- See Also:
-
OPERATION_MOVE
- See Also:
-
OPERATION_REPLACE
- See Also:
-
PARAMETER_DESTINATION
- See Also:
-
PARAMETER_INDEX
- See Also:
-
PARAMETER_NAME
- See Also:
-
PARAMETER_OPERATION
- See Also:
-
PARAMETER_PATH
- See Also:
-
PARAMETER_SOURCE
- See Also:
-
PARAMETER_TYPE
- See Also:
-
PARAMETER_VALUE
- See Also:
-
-
Constructor Details
-
FhirPatch
-
-
Method Details
-
addIgnorePath
Adds a path element that will not be included in generated diffs. Values can take the formResourceName.fieldName.fieldName
and wildcards are supported, such as*.meta
. -
setIncludePreviousValueInDiff
-
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)
-