### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/ConceptMap.json
### ----------------------------------------------------
### -- Chunk 12 of 12
",
      "contentReference" : "#ConceptMap.group.element.target.dependsOn"
    },
    {
      "id" : "ConceptMap.group.unmapped",
      "path" : "ConceptMap.group.unmapped",
      "short" : "What to do when there is no mapping for the source concept",
      "definition" : "What to do when there is no mapping for the source concept. \"Unmapped\" does not include codes that are unmatched, and the unmapped element is ignored in a code is specified to have equivalence = unmatched.",
      "comment" : "This only applies if the source code has a system value that matches the system defined for the group.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "cmd-3",
        "severity" : "error",
        "human" : "If the mode is 'other-map', a url must be provided",
        "expression" : "(mode = 'other-map') implies url.exists()",
        "xpath" : "(f:mode/@value != 'other-map') or exists(f:url)"
      },
      {
        "key" : "cmd-2",
        "severity" : "error",
        "human" : "If the mode is 'fixed', a code must be provided",
        "expression" : "(mode = 'fixed') implies code.exists()",
        "xpath" : "(f:mode/@value != 'fixed') or exists(f:code)"
      }]
    },
    {
      "id" : "ConceptMap.group.unmapped.mode",
      "path" : "ConceptMap.group.unmapped.mode",
      "short" : "provided | fixed | other-map",
      "definition" : "Defines which action to take if there is no match for the source concept in the target system designated for the group. One of 3 actions are possible: use the unmapped code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL).",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ConceptMapGroupUnmappedMode"
        }],
        "strength" : "required",
        "description" : "Defines which action to take if there is no match in the group.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/conceptmap-unmapped-mode|4.0.0"
      }
    },
    {
      "id" : "ConceptMap.group.unmapped.code",
      "path" : "ConceptMap.group.unmapped.code",
      "short" : "Fixed code when mode = fixed",
      "definition" : "The fixed code to use when the mode = 'fixed'  - all unmapped codes are mapped to a single fixed code.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }]
    },
    {
      "id" : "ConceptMap.group.unmapped.display",
      "path" : "ConceptMap.group.unmapped.display",
      "short" : "Display for the code",
      "definition" : "The display for the code. The display is only provided to help editors when editing the concept map.",
      "comment" : "The display is ignored when processing the map.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ConceptMap.group.unmapped.url",
      "path" : "ConceptMap.group.unmapped.url",
      "short" : "canonical reference to an additional ConceptMap to use for mapping if the source concept is unmapped",
      "definition" : "The canonical reference to an additional ConceptMap resource instance to use for mapping if this ConceptMap resource contains no matching mapping for the source concept.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ConceptMap"]
      }]
    }]
  }
}


