{
  "resourceType": "StructureDefinition",
  "id": "ConceptMap2",
  "meta": {
    "lastUpdated": "2021-01-04T23:01:24.148+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Foundation.Terminology"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "anonymous"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "vocab"
    },
    {
      "url": "http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status",
      "valueCode": ".status = retired"
    },
    {
      "url": "http://hl7.org/fhir/build/StructureDefinition/template",
      "valueString": "CanonicalResource"
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/ConceptMap2",
  "version": "4.6.0",
  "name": "ConceptMap2",
  "status": "draft",
  "date": "2021-01-04T23:01:24+00:00",
  "publisher": "Health Level Seven International (Vocabulary)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/Vocab/index.cfm"
        }
      ]
    }
  ],
  "description": "A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models.",
  "fhirVersion": "4.6.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "objimpl",
      "uri": "http://hl7.org/fhir/object-implementation",
      "name": "Object Implementation Information"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ConceptMap2",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CanonicalResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "ConceptMap2",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "0,0"
          }
        ],
        "path": "ConceptMap2",
        "short": "A map from one set of concepts to one or more other concepts",
        "definition": "A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "cnl-0",
            "severity": "warning",
            "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
            "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
            "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
            "source": "http://hl7.org/fhir/StructureDefinition/ConceptMap2"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          },
          {
            "identity": "w5",
            "map": "conformance.terminology"
          }
        ]
      },
      {
        "id": "ConceptMap2.url",
        "path": "ConceptMap2.url",
        "short": "Canonical identifier for this concept map, represented as a URI (globally unique)",
        "definition": "An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this concept map is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the concept map is stored on different servers.",
        "comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
        "requirements": "Allows the concept map to be referenced by a single globally unique identifier.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.url"
          },
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          }
        ]
      },
      {
        "id": "ConceptMap2.identifier",
        "path": "ConceptMap2.identifier",
        "short": "Additional identifier for the concept map",
        "definition": "A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.",
        "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this concept map outside of FHIR, where it is not possible to use the logical URI.",
        "requirements": "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.identifier"
          },
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "objimpl",
            "map": "no-gen-base"
          }
        ]
      },
      {
        "id": "ConceptMap2.version",
        "path": "ConceptMap2.version",
        "short": "Business version of the concept map",
        "definition": "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.",
        "comment": "There may be different concept map instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the concept map with the format [url]|[version].",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.version"
          },
          {
            "identity": "w5",
            "map": "FiveWs.version"
          }
        ]
      },
      {
        "id": "ConceptMap2.name",
        "path": "ConceptMap2.name",
        "short": "Name for this concept map (computer friendly)",
        "definition": "A natural language name identifying the concept map. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
        "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
        "requirements": "Support human navigation and code generation.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "cnl-0"
        ],
        "isSummary": true
      },
      {
        "id": "ConceptMap2.title",
        "path": "ConceptMap2.title",
        "short": "Name for this concept map (human friendly)",
        "definition": "A short, descriptive, user-friendly title for the concept map.",
        "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.title"
          }
        ]
      },
      {
        "id": "ConceptMap2.status",
        "path": "ConceptMap2.status",
        "short": "draft | active | retired | unknown",
        "definition": "The status of this concept map. Enables tracking the life-cycle of the content.",
        "comment": "Allows filtering of concept maps that are appropriate for use versus not.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "PublicationStatus"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required",
          "description": "The lifecycle status of an artifact.",
          "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.6.0"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.status"
          },
          {
            "identity": "w5",
            "map": "FiveWs.status"
          }
        ]
      },
      {
        "id": "ConceptMap2.experimental",
        "path": "ConceptMap2.experimental",
        "short": "For testing purposes, not real usage",
        "definition": "A Boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
        "comment": "Allows filtering of concept maps that are appropriate for use versus not.",
        "requirements": "Enables experimental content to be developed following the same lifecycle that would be used for a production-level concept map.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.experimental"
          },
          {
            "identity": "w5",
            "map": "FiveWs.class"
          }
        ]
      },
      {
        "id": "ConceptMap2.date",
        "path": "ConceptMap2.date",
        "short": "Date last changed",
        "definition": "The date  (and optionally time) when the concept map was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the concept map changes.",
        "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the concept map. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
        "alias": [
          "Revision Date"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.date"
          },
          {
            "identity": "w5",
            "map": "FiveWs.recorded"
          }
        ]
      },
      {
        "id": "ConceptMap2.publisher",
        "path": "ConceptMap2.publisher",
        "short": "Name of the publisher (organization or individual)",
        "definition": "The name of the organization or individual that published the concept map.",
        "comment": "Usually an organization but may be an individual. The publisher (or steward) of the concept map is the organization or individual primarily responsible for the maintenance and upkeep of the concept map. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the concept map. This item SHOULD be populated unless the information is available from context.",
        "requirements": "Helps establish the \"authority/credibility\" of the concept map.  May also allow for contact.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.publisher"
          },
          {
            "identity": "w5",
            "map": "FiveWs.witness"
          }
        ]
      },
      {
        "id": "ConceptMap2.contact",
        "path": "ConceptMap2.contact",
        "short": "Contact details for the publisher",
        "definition": "Contact details to assist a user in finding and communicating with the publisher.",
        "comment": "May be a web site, an email address, a telephone number, etc.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactDetail"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.contact"
          }
        ]
      },
      {
        "id": "ConceptMap2.description",
        "path": "ConceptMap2.description",
        "short": "Natural language description of the concept map",
        "definition": "A free text natural language description of the concept map from a consumer's perspective.",
        "comment": "The description is not intended to describe the semantics of the concept map. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "markdown"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.description"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "ConceptMap2.useContext",
        "path": "ConceptMap2.useContext",
        "short": "The context that the content is intended to support",
        "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate concept map instances.",
        "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
        "requirements": "Assist in searching for appropriate content.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "UsageContext"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.useContext"
          }
        ]
      },
      {
        "id": "ConceptMap2.jurisdiction",
        "path": "ConceptMap2.jurisdiction",
        "short": "Intended jurisdiction for concept map (if applicable)",
        "definition": "A legal or geographic region in which the concept map is intended to be used.",
        "comment": "It may be possible for the concept map to be used in jurisdictions other than those for which it was originally designed or intended.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Jurisdiction"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "extensible",
          "description": "Countries and regions within which this artifact is targeted for use.",
          "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.jurisdiction"
          }
        ]
      },
      {
        "id": "ConceptMap2.purpose",
        "path": "ConceptMap2.purpose",
        "short": "Why this concept map is defined",
        "definition": "Explanation of why this concept map is needed and why it has been designed as it has.",
        "comment": "This element does not describe the usage of the concept map. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this concept map.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "markdown"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.purpose"
          },
          {
            "identity": "w5",
            "map": "FiveWs.why[x]"
          },
          {
            "identity": "objimpl",
            "map": "no-gen-base"
          }
        ]
      },
      {
        "id": "ConceptMap2.copyright",
        "path": "ConceptMap2.copyright",
        "short": "Use and/or publishing restrictions",
        "definition": "A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map.",
        "comment": "Frequently the copyright differs between the concept map and codes that are included. The copyright statement should clearly differentiate between these when required.",
        "requirements": "Consumers must be able to determine any legal restrictions on the use of the concept map and/or its content.",
        "alias": [
          "License",
          "Restrictions"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "markdown"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Definition.copyright"
          },
          {
            "identity": "objimpl",
            "map": "no-gen-base"
          }
        ]
      },
      {
        "id": "ConceptMap2.source[x]",
        "path": "ConceptMap2.source[x]",
        "short": "The source value set that contains the concepts that are being mapped",
        "definition": "Identifier for the source value set that contains the concepts that are being mapped and provides context for the mappings.",
        "comment": "Should be a version specific reference. URIs SHOULD be absolute. If there is no source or target value set, there is no specified context for the map (not recommended).  The source value set may select codes from either an explicit (standard or local) or implicit code system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          },
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ValueSet"
            ]
          }
        ],
        "isSummary": true
      },
      {
        "id": "ConceptMap2.target[x]",
        "path": "ConceptMap2.target[x]",
        "short": "The target value set which provides context for the mappings",
        "definition": "The target value set provides context for the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.",
        "comment": "Should be a version specific reference. URIs SHOULD be absolute. If there is no source or target value set, the is no specified context for the map.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          },
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ValueSet"
            ]
          }
        ],
        "isSummary": true
      },
      {
        "id": "ConceptMap2.group",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "380,0"
          }
        ],
        "path": "ConceptMap2.group",
        "short": "Same source and target systems",
        "definition": "A group of mappings that all have the same source and target system.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.source",
        "path": "ConceptMap2.group.source",
        "short": "Source system where concepts to be mapped are defined",
        "definition": "An absolute URI that identifies the source system where the concepts to be mapped are defined.",
        "comment": "This is not needed if the source value set is specified and it contains concepts from only a single system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CodeSystem"
            ]
          }
        ]
      },
      {
        "id": "ConceptMap2.group.target",
        "path": "ConceptMap2.group.target",
        "short": "Target system that the concepts are to be mapped to",
        "definition": "An absolute URI that identifies the target system that the concepts will be mapped to.",
        "comment": "This is not needed if the target value set is specified and it contains concepts from only a single system. The group target may also be omitted if all of the target element relationship values are 'not-related-to'.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CodeSystem"
            ]
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "SourceElement"
          },
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "380,180"
          }
        ],
        "path": "ConceptMap2.group.element",
        "short": "Mappings for a concept from the source set",
        "definition": "Mappings for an individual concept in the source to one or more concepts in the target.",
        "comment": "Generally, the ideal is that there would only be one mapping for each concept in the source value set, but a given concept may be mapped multiple times with different comments or dependencies.",
        "alias": [
          "code",
          "concept",
          "item"
        ],
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmd-4",
            "severity": "error",
            "human": "If noMap is present, target SHALL NOT be present",
            "expression": "(noMap.exists() and target.empty()) or noMap.empty()",
            "xpath": "(exists(f:noMap) and not(exists(f:target))) or not(exists(f:noMap))",
            "source": "http://hl7.org/fhir/StructureDefinition/ConceptMap2"
          },
          {
            "key": "cmd-5",
            "severity": "error",
            "human": "Either code or valueSet SHALL be present but not both.",
            "expression": "(code.exists() and valueSet.empty()) or (code.empty() and valueSet.exists())",
            "xpath": "(exists(f:code) and not(exists(f:valueSet))) or (not(exists(f:code)) and exists(f:valueSet))",
            "source": "http://hl7.org/fhir/StructureDefinition/ConceptMap2"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.code",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
            "valueBoolean": true
          }
        ],
        "path": "ConceptMap2.group.element.code",
        "short": "Identifies element being mapped",
        "definition": "Identity (code or path) or the element/item being mapped.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.display",
        "path": "ConceptMap2.group.element.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": "ConceptMap2.group.element.valueSet",
        "path": "ConceptMap2.group.element.valueSet",
        "short": "Identifies elements being mapped",
        "definition": "The set of codes being mapped.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ValueSet"
            ]
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.noMap",
        "path": "ConceptMap2.group.element.noMap",
        "short": "No mapping to a target concept for this source concept",
        "definition": "If noMap = true this indicates that no mapping to a target concept exists for this source concept.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.target",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "TargetElement"
          },
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "520,20"
          }
        ],
        "path": "ConceptMap2.group.element.target",
        "short": "Concept in target system for element",
        "definition": "A concept from the target value set that this concept maps to.",
        "comment": "Ideally there would only be one map, with an 'equivalent' mapping. But multiple maps are allowed for several narrower (i.e. source-is-broader-than-target) options, or to assert that other concepts are not related.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmd-1",
            "severity": "error",
            "human": "If the map is source-is-broader-than-target or not-related-to, there SHALL be some comments, unless the status is 'draft'",
            "expression": "comment.exists() or (status = draft) or relationship.empty() or ((relationship != 'source-is-broader-than-target') and (relationship != 'not-related-to'))",
            "xpath": "exists(f:comment) or (f:status/@value = draft) or not(exists(f:relationship)) or ((f:relationship/@value != 'source-is-broader-than-target') and (f:v/@value != 'not-related-to'))",
            "source": "http://hl7.org/fhir/StructureDefinition/ConceptMap2"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.target.code",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
            "valueBoolean": true
          }
        ],
        "path": "ConceptMap2.group.element.target.code",
        "short": "Code that identifies the target element",
        "definition": "Identity (code or path) or the element/item that the map refers to.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.target.display",
        "path": "ConceptMap2.group.element.target.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": "ConceptMap2.group.element.target.valueSet",
        "path": "ConceptMap2.group.element.target.valueSet",
        "short": "Identifies the set of target elements",
        "definition": "The set of codes being that the map refers to.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ValueSet"
            ]
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.target.relationship",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/committee-notes",
            "valueString": "Remove this parenthetical text from the first sentence in the Definition: \"(counting for the dependencies and products)\"?"
          }
        ],
        "path": "ConceptMap2.group.element.target.relationship",
        "short": "related-to | equivalent | source-is-narrower-than-target | source-is-broader-than-target | not-related-to",
        "definition": "The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target).",
        "comment": "This element is labeled as a modifier because it may indicate that there is no mapping.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isModifierReason": "The 'not-related-to' relationship means that there is no mapping from the source to the target, and the mapping cannot be interpreted without knowing this value as it could mean the elements are equivalent, totally mismatched or anything in between",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConceptMapRelationship"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required",
          "description": "The relationship between concepts.",
          "valueSet": "http://hl7.org/fhir/ValueSet/concept-map-relationship|4.6.0"
        }
      },
      {
        "id": "ConceptMap2.group.element.target.comment",
        "path": "ConceptMap2.group.element.target.comment",
        "short": "Description of status/issues in mapping",
        "definition": "A description of status/issues in mapping that conveys additional information not represented in  the structured data.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "cmd-1"
        ]
      },
      {
        "id": "ConceptMap2.group.element.target.dependsOn",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "OtherElement"
          },
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "580,200"
          }
        ],
        "path": "ConceptMap2.group.element.target.dependsOn",
        "short": "Other elements required for this mapping (from context)",
        "definition": "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.target.dependsOn.property",
        "path": "ConceptMap2.group.element.target.dependsOn.property",
        "short": "Reference to property mapping depends on",
        "definition": "A reference to an element that holds a coded value that corresponds to a code system property. The idea is that the information model carries an element somewhere that is labeled to correspond with a code system property.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.target.dependsOn.value[x]",
        "path": "ConceptMap2.group.element.target.dependsOn.value[x]",
        "short": "Value of the referenced property",
        "definition": "Property value that the map depends on.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          },
          {
            "code": "Coding"
          },
          {
            "code": "string"
          },
          {
            "code": "integer"
          },
          {
            "code": "boolean"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "uri"
          },
          {
            "code": "id"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.element.target.product",
        "path": "ConceptMap2.group.element.target.product",
        "short": "Other concepts that this mapping also produces",
        "definition": "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the relationship (e.g., equivalent) cannot be relied on.",
        "min": 0,
        "max": "*",
        "contentReference": "#ConceptMap2.group.element.target.dependsOn"
      },
      {
        "id": "ConceptMap2.group.unmapped",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "150,300"
          }
        ],
        "path": "ConceptMap2.group.unmapped",
        "short": "What to do when there is no mapping target for the source concept",
        "definition": "What to do when there is no mapping to a target concept from the source concept.  This provides the \"default\" to be applied when there is no target concept mapping specified.  The 'unmapped' element is ignored if a code is specified to have relationship = not-related-to.",
        "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)",
            "source": "http://hl7.org/fhir/StructureDefinition/ConceptMap2"
          },
          {
            "key": "cmd-2",
            "severity": "error",
            "human": "If the mode is 'fixed', a code or valueSet must be provided",
            "expression": "(mode = 'fixed') implies (code.exists() or valueSet.exists())",
            "xpath": "(f:mode/@value != 'fixed') or exists(f:code) or exists(f:valueSet)",
            "source": "http://hl7.org/fhir/StructureDefinition/ConceptMap2"
          }
        ]
      },
      {
        "id": "ConceptMap2.group.unmapped.mode",
        "path": "ConceptMap2.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.6.0"
        }
      },
      {
        "id": "ConceptMap2.group.unmapped.code",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
            "valueBoolean": true
          }
        ],
        "path": "ConceptMap2.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": "ConceptMap2.group.unmapped.display",
        "path": "ConceptMap2.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": "ConceptMap2.group.unmapped.valueSet",
        "path": "ConceptMap2.group.unmapped.valueSet",
        "short": "Fixed code set when mode = fixed",
        "definition": "The set of fixed codes to use when the mode = 'fixed'  - all unmapped codes are mapped to a each of the fixed codes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ValueSet"
            ]
          }
        ]
      },
      {
        "id": "ConceptMap2.group.unmapped.url",
        "path": "ConceptMap2.group.unmapped.url",
        "short": "canonical reference to an additional ConceptMap2 to use for mapping if the source concept is unmapped",
        "definition": "The canonical reference to an additional ConceptMap2 resource instance to use for mapping if this ConceptMap2 resource contains no matching mapping for the source concept.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ConceptMap2"
            ]
          }
        ]
      }
    ]
  }
}