Class ResourceUtil.MergeControlParameters

java.lang.Object
ca.uhn.fhir.util.ResourceUtil.MergeControlParameters
Enclosing class:
ResourceUtil

public static class ResourceUtil.MergeControlParameters extends Object
A strategy object that specifies which rules to apply when merging Coding and CodeableConcept fields
  • Constructor Details

  • Method Details

    • isIgnoreCodeableConceptCodingOrder

    • setIgnoreCodeableConceptCodingOrder

      public void setIgnoreCodeableConceptCodingOrder(boolean theIgnoreCodeableConceptCodingOrder)
      In most cases, the order of elements in a FHIR list should not be considered meaningful. This parameter specifies whether the order of Coding entities within a CodeableConcept matters when performing a merge.
      Parameters:
      theIgnoreCodeableConceptCodingOrder - if true, two CodeableConcept entities will be considered to match each other if they contain matching Codings in any order. If false, the Codings must be in the same order.
    • isMergeCodings

      public boolean isMergeCodings()
    • setMergeCodings

      public void setMergeCodings(boolean theMergeCodings)
      If the Codings of one CodeableConcept are 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 of Codings. The case where the two lists of Codings overlap, but each contains elements that are absent from the other, the two CodeableConcepts will be considered distinct, and will not be merged.
      Parameters:
      theMergeCodings - if true, two CodeableConcept entities will be considered to match each other if all the Codings 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

      public boolean isMergeCodingDetails()
    • setMergeCodingDetails

      public void setMergeCodingDetails(boolean theMergeCodingDetails)
      Two Codings 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 survivor Coding.
      Parameters:
      theMergeCodingDetails - if true, will match on the Coding business key only. if false, matching requires exact equality of every field.