
Package ca.uhn.fhir.util
Class ResourceUtil.MergeControlParameters
java.lang.Object
ca.uhn.fhir.util.ResourceUtil.MergeControlParameters
- Enclosing class:
ResourceUtil
A strategy object that specifies which rules to apply when merging
Coding
and CodeableConcept fields-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanvoidsetIgnoreCodeableConceptCodingOrder(boolean theIgnoreCodeableConceptCodingOrder) In most cases, the order of elements in a FHIR list should not be considered meaningful.voidsetMergeCodingDetails(boolean theMergeCodingDetails) TwoCodings may be considered to match if they share the same business key (system, code).voidsetMergeCodings(boolean theMergeCodings) If theCodings of oneCodeableConceptare a strict subset of another, the two may be considered to match, and can be merged into a single element that contains the larger list ofCodings.
-
Constructor Details
-
MergeControlParameters
public MergeControlParameters()
-
-
Method Details
-
isIgnoreCodeableConceptCodingOrder
-
setIgnoreCodeableConceptCodingOrder
In most cases, the order of elements in a FHIR list should not be considered meaningful. This parameter specifies whether the order ofCodingentities within aCodeableConceptmatters when performing a merge.- Parameters:
theIgnoreCodeableConceptCodingOrder- if true, twoCodeableConceptentities will be considered to match each other if they contain matchingCodings in any order. If false, theCodings must be in the same order.
-
isMergeCodings
-
setMergeCodings
If theCodings of oneCodeableConceptare a strict subset of another, the two may be considered to match, and can be merged into a single element that contains the larger list ofCodings. The case where the two lists ofCodings overlap, but each contains elements that are absent from the other, the twoCodeableConcepts will be considered distinct, and will not be merged.- Parameters:
theMergeCodings- if true, twoCodeableConceptentities will be considered to match each other if all theCodings from the shorter list occur in the longer list. If false, the lists must be the same length, and contain exactly the same elements.
-
isMergeCodingDetails
-
setMergeCodingDetails
TwoCodings may be considered to match if they share the same business key (system, code). If this is the case, the remaining fields of the element can be merged into a survivorCoding.- Parameters:
theMergeCodingDetails- if true, will match on theCodingbusiness key only. if false, matching requires exact equality of every field.
-