<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ConceptMap2" />
  <meta>
    <lastUpdated value="2021-01-05T10:01:24.148+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Foundation.Terminology" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="anonymous" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="vocab" />
  </extension>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status">
    <valueCode value=".status = retired" />
  </extension>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/template">
    <valueString value="CanonicalResource" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/ConceptMap2" />
  <version value="4.6.0" />
  <name value="ConceptMap2" />
  <status value="draft" />
  <date value="2021-01-05T10:01:24+11:00" />
  <publisher value="Health Level Seven International (Vocabulary)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/Vocab/index.cfm" />
    </telecom>
  </contact>
  <description value="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 value="4.6.0" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="objimpl" />
    <uri value="http://hl7.org/fhir/object-implementation" />
    <name value="Object Implementation Information" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="ConceptMap2" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CanonicalResource" />
  <derivation value="specialization" />
  <differential>
    <element id="ConceptMap2">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="0,0" />
      </extension>
      <path value="ConceptMap2" />
      <short value="A map from one set of concepts to one or more other concepts" />
      <definition value="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 value="0" />
      <max value="*" />
      <constraint>
        <key value="cnl-0" />
        <severity value="warning" />
        <human value="Name should be usable as an identifier for the module by machine processing applications such as code generation" />
        <expression value="name.matches('[A-Z]([A-Za-z0-9_]){0,254}')" />
        <xpath value="not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')" />
        <source value="http://hl7.org/fhir/StructureDefinition/ConceptMap2" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="conformance.terminology" />
      </mapping>
    </element>
    <element id="ConceptMap2.url">
      <path value="ConceptMap2.url" />
      <short value="Canonical identifier for this concept map, represented as a URI (globally unique)" />
      <definition value="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 value="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.&#xA;&#xA;The 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). &#xA;&#xA;In 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 value="Allows the concept map to be referenced by a single globally unique identifier." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.url" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
    </element>
    <element id="ConceptMap2.identifier">
      <path value="ConceptMap2.identifier" />
      <short value="Additional identifier for the concept map" />
      <definition value="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 value="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 value="Allows externally provided and/or usable business identifiers to be easily associated with the module." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.identifier" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="objimpl" />
        <map value="no-gen-base" />
      </mapping>
    </element>
    <element id="ConceptMap2.version">
      <path value="ConceptMap2.version" />
      <short value="Business version of the concept map" />
      <definition value="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 value="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 value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.version" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.version" />
      </mapping>
    </element>
    <element id="ConceptMap2.name">
      <path value="ConceptMap2.name" />
      <short value="Name for this concept map (computer friendly)" />
      <definition value="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 value="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 value="Support human navigation and code generation." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <condition value="cnl-0" />
      <isSummary value="true" />
    </element>
    <element id="ConceptMap2.title">
      <path value="ConceptMap2.title" />
      <short value="Name for this concept map (human friendly)" />
      <definition value="A short, descriptive, user-friendly title for the concept map." />
      <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.title" />
      </mapping>
    </element>
    <element id="ConceptMap2.status">
      <path value="ConceptMap2.status" />
      <short value="draft | active | retired | unknown" />
      <definition value="The status of this concept map. Enables tracking the life-cycle of the content." />
      <comment value="Allows filtering of concept maps that are appropriate for use versus not." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isModifierReason value="This is labeled as &quot;Is Modifier&quot; because applications should not use a retired {{title}} without due consideration" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PublicationStatus" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="The lifecycle status of an artifact." />
        <valueSet value="http://hl7.org/fhir/ValueSet/publication-status|4.6.0" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.status" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
    </element>
    <element id="ConceptMap2.experimental">
      <path value="ConceptMap2.experimental" />
      <short value="For testing purposes, not real usage" />
      <definition value="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 value="Allows filtering of concept maps that are appropriate for use versus not." />
      <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level concept map." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.experimental" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.class" />
      </mapping>
    </element>
    <element id="ConceptMap2.date">
      <path value="ConceptMap2.date" />
      <short value="Date last changed" />
      <definition value="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 value="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 value="Revision Date" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.date" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.recorded" />
      </mapping>
    </element>
    <element id="ConceptMap2.publisher">
      <path value="ConceptMap2.publisher" />
      <short value="Name of the publisher (organization or individual)" />
      <definition value="The name of the organization or individual that published the concept map." />
      <comment value="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 value="Helps establish the &quot;authority/credibility&quot; of the concept map.  May also allow for contact." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.publisher" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.witness" />
      </mapping>
    </element>
    <element id="ConceptMap2.contact">
      <path value="ConceptMap2.contact" />
      <short value="Contact details for the publisher" />
      <definition value="Contact details to assist a user in finding and communicating with the publisher." />
      <comment value="May be a web site, an email address, a telephone number, etc." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactDetail" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.contact" />
      </mapping>
    </element>
    <element id="ConceptMap2.description">
      <path value="ConceptMap2.description" />
      <short value="Natural language description of the concept map" />
      <definition value="A free text natural language description of the concept map from a consumer's perspective." />
      <comment value="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 value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.description" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="ConceptMap2.useContext">
      <path value="ConceptMap2.useContext" />
      <short value="The context that the content is intended to support" />
      <definition value="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 value="When multiple useContexts are specified, there is no expectation that all or any of the contexts apply." />
      <requirements value="Assist in searching for appropriate content." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="UsageContext" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Definition.useContext" />
      </mapping>
    </element>
    <element id="ConceptMap2.jurisdiction">
      <path value="ConceptMap2.jurisdiction" />
      <short value="Intended jurisdiction for concept map (if applicable)" />
      <definition value="A legal or geographic region in which the concept map is intended to be used." />
      <comment value="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 value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Jurisdiction" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <description value="Countries and regions within which this artifact is targeted for use." />
        <valueSet value="http://hl7.org/fhir/ValueSet/jurisdiction" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.jurisdiction" />
      </mapping>
    </element>
    <element id="ConceptMap2.purpose">
      <path value="ConceptMap2.purpose" />
      <short value="Why this concept map is defined" />
      <definition value="Explanation of why this concept map is needed and why it has been designed as it has." />
      <comment value="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 value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.purpose" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="objimpl" />
        <map value="no-gen-base" />
      </mapping>
    </element>
    <element id="ConceptMap2.copyright">
      <path value="ConceptMap2.copyright" />
      <short value="Use and/or publishing restrictions" />
      <definition value="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 value="Frequently the copyright differs between the concept map and codes that are included. The copyright statement should clearly differentiate between these when required." />
      <requirements value="Consumers must be able to determine any legal restrictions on the use of the concept map and/or its content." />
      <alias value="License" />
      <alias value="Restrictions" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Definition.copyright" />
      </mapping>
      <mapping>
        <identity value="objimpl" />
        <map value="no-gen-base" />
      </mapping>
    </element>
    <element id="ConceptMap2.source[x]">
      <path value="ConceptMap2.source[x]" />
      <short value="The source value set that contains the concepts that are being mapped" />
      <definition value="Identifier for the source value set that contains the concepts that are being mapped and provides context for the mappings." />
      <comment value="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 value="0" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="ConceptMap2.target[x]">
      <path value="ConceptMap2.target[x]" />
      <short value="The target value set which provides context for the mappings" />
      <definition value="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 value="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 value="0" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="ConceptMap2.group">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="380,0" />
      </extension>
      <path value="ConceptMap2.group" />
      <short value="Same source and target systems" />
      <definition value="A group of mappings that all have the same source and target system." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="ConceptMap2.group.source">
      <path value="ConceptMap2.group.source" />
      <short value="Source system where concepts to be mapped are defined" />
      <definition value="An absolute URI that identifies the source system where the concepts to be mapped are defined." />
      <comment value="This is not needed if the source value set is specified and it contains concepts from only a single system." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CodeSystem" />
      </type>
    </element>
    <element id="ConceptMap2.group.target">
      <path value="ConceptMap2.group.target" />
      <short value="Target system that the concepts are to be mapped to" />
      <definition value="An absolute URI that identifies the target system that the concepts will be mapped to." />
      <comment value="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 value="0" />
      <max value="1" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CodeSystem" />
      </type>
    </element>
    <element id="ConceptMap2.group.element">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="SourceElement" />
      </extension>
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="380,180" />
      </extension>
      <path value="ConceptMap2.group.element" />
      <short value="Mappings for a concept from the source set" />
      <definition value="Mappings for an individual concept in the source to one or more concepts in the target." />
      <comment value="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 value="code" />
      <alias value="concept" />
      <alias value="item" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="cmd-4" />
        <severity value="error" />
        <human value="If noMap is present, target SHALL NOT be present" />
        <expression value="(noMap.exists() and target.empty()) or noMap.empty()" />
        <xpath value="(exists(f:noMap) and not(exists(f:target))) or not(exists(f:noMap))" />
        <source value="http://hl7.org/fhir/StructureDefinition/ConceptMap2" />
      </constraint>
      <constraint>
        <key value="cmd-5" />
        <severity value="error" />
        <human value="Either code or valueSet SHALL be present but not both." />
        <expression value="(code.exists() and valueSet.empty()) or (code.empty() and valueSet.exists())" />
        <xpath value="(exists(f:code) and not(exists(f:valueSet))) or (not(exists(f:code)) and exists(f:valueSet))" />
        <source value="http://hl7.org/fhir/StructureDefinition/ConceptMap2" />
      </constraint>
    </element>
    <element id="ConceptMap2.group.element.code">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/no-binding">
        <valueBoolean value="true" />
      </extension>
      <path value="ConceptMap2.group.element.code" />
      <short value="Identifies element being mapped" />
      <definition value="Identity (code or path) or the element/item being mapped." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.display">
      <path value="ConceptMap2.group.element.display" />
      <short value="Display for the code" />
      <definition value="The display for the code. The display is only provided to help editors when editing the concept map." />
      <comment value="The display is ignored when processing the map." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.valueSet">
      <path value="ConceptMap2.group.element.valueSet" />
      <short value="Identifies elements being mapped" />
      <definition value="The set of codes being mapped." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.noMap">
      <path value="ConceptMap2.group.element.noMap" />
      <short value="No mapping to a target concept for this source concept" />
      <definition value="If noMap = true this indicates that no mapping to a target concept exists for this source concept." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.target">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="TargetElement" />
      </extension>
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="520,20" />
      </extension>
      <path value="ConceptMap2.group.element.target" />
      <short value="Concept in target system for element" />
      <definition value="A concept from the target value set that this concept maps to." />
      <comment value="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 value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="cmd-1" />
        <severity value="error" />
        <human value="If the map is source-is-broader-than-target or not-related-to, there SHALL be some comments, unless the status is 'draft'" />
        <expression value="comment.exists() or (status = draft) or relationship.empty() or ((relationship != 'source-is-broader-than-target') and (relationship != 'not-related-to'))" />
        <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/ConceptMap2" />
      </constraint>
    </element>
    <element id="ConceptMap2.group.element.target.code">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/no-binding">
        <valueBoolean value="true" />
      </extension>
      <path value="ConceptMap2.group.element.target.code" />
      <short value="Code that identifies the target element" />
      <definition value="Identity (code or path) or the element/item that the map refers to." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.target.display">
      <path value="ConceptMap2.group.element.target.display" />
      <short value="Display for the code" />
      <definition value="The display for the code. The display is only provided to help editors when editing the concept map." />
      <comment value="The display is ignored when processing the map." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.target.valueSet">
      <path value="ConceptMap2.group.element.target.valueSet" />
      <short value="Identifies the set of target elements" />
      <definition value="The set of codes being that the map refers to." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.target.relationship">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/committee-notes">
        <valueString value="Remove this parenthetical text from the first sentence in the Definition: &quot;(counting for the dependencies and products)&quot;?" />
      </extension>
      <path value="ConceptMap2.group.element.target.relationship" />
      <short value="related-to | equivalent | source-is-narrower-than-target | source-is-broader-than-target | not-related-to" />
      <definition value="The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target)." />
      <comment value="This element is labeled as a modifier because it may indicate that there is no mapping." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isModifierReason value="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 value="ConceptMapRelationship" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <description value="The relationship between concepts." />
        <valueSet value="http://hl7.org/fhir/ValueSet/concept-map-relationship|4.6.0" />
      </binding>
    </element>
    <element id="ConceptMap2.group.element.target.comment">
      <path value="ConceptMap2.group.element.target.comment" />
      <short value="Description of status/issues in mapping" />
      <definition value="A description of status/issues in mapping that conveys additional information not represented in  the structured data." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <condition value="cmd-1" />
    </element>
    <element id="ConceptMap2.group.element.target.dependsOn">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="OtherElement" />
      </extension>
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="580,200" />
      </extension>
      <path value="ConceptMap2.group.element.target.dependsOn" />
      <short value="Other elements required for this mapping (from context)" />
      <definition value="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 value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.target.dependsOn.property">
      <path value="ConceptMap2.group.element.target.dependsOn.property" />
      <short value="Reference to property mapping depends on" />
      <definition value="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 value="1" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.target.dependsOn.value[x]">
      <path value="ConceptMap2.group.element.target.dependsOn.value[x]" />
      <short value="Value of the referenced property" />
      <definition value="Property value that the map depends on." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="decimal" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="id" />
      </type>
    </element>
    <element id="ConceptMap2.group.element.target.product">
      <path value="ConceptMap2.group.element.target.product" />
      <short value="Other concepts that this mapping also produces" />
      <definition value="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 value="0" />
      <max value="*" />
      <contentReference value="#ConceptMap2.group.element.target.dependsOn" />
    </element>
    <element id="ConceptMap2.group.unmapped">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="150,300" />
      </extension>
      <path value="ConceptMap2.group.unmapped" />
      <short value="What to do when there is no mapping target for the source concept" />
      <definition value="What to do when there is no mapping to a target concept from the source concept.  This provides the &quot;default&quot; 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 value="This only applies if the source code has a system value that matches the system defined for the group." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="cmd-3" />
        <severity value="error" />
        <human value="If the mode is 'other-map', a url must be provided" />
        <expression value="(mode = 'other-map') implies url.exists()" />
        <xpath value="(f:mode/@value != 'other-map') or exists(f:url)" />
        <source value="http://hl7.org/fhir/StructureDefinition/ConceptMap2" />
      </constraint>
      <constraint>
        <key value="cmd-2" />
        <severity value="error" />
        <human value="If the mode is 'fixed', a code or valueSet must be provided" />
        <expression value="(mode = 'fixed') implies (code.exists() or valueSet.exists())" />
        <xpath value="(f:mode/@value != 'fixed') or exists(f:code) or exists(f:valueSet)" />
        <source value="http://hl7.org/fhir/StructureDefinition/ConceptMap2" />
      </constraint>
    </element>
    <element id="ConceptMap2.group.unmapped.mode">
      <path value="ConceptMap2.group.unmapped.mode" />
      <short value="provided | fixed | other-map" />
      <definition value="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 value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConceptMapGroupUnmappedMode" />
        </extension>
        <strength value="required" />
        <description value="Defines which action to take if there is no match in the group." />
        <valueSet value="http://hl7.org/fhir/ValueSet/conceptmap-unmapped-mode|4.6.0" />
      </binding>
    </element>
    <element id="ConceptMap2.group.unmapped.code">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/no-binding">
        <valueBoolean value="true" />
      </extension>
      <path value="ConceptMap2.group.unmapped.code" />
      <short value="Fixed code when mode = fixed" />
      <definition value="The fixed code to use when the mode = 'fixed'  - all unmapped codes are mapped to a single fixed code." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="ConceptMap2.group.unmapped.display">
      <path value="ConceptMap2.group.unmapped.display" />
      <short value="Display for the code" />
      <definition value="The display for the code. The display is only provided to help editors when editing the concept map." />
      <comment value="The display is ignored when processing the map." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="ConceptMap2.group.unmapped.valueSet">
      <path value="ConceptMap2.group.unmapped.valueSet" />
      <short value="Fixed code set when mode = fixed" />
      <definition value="The set of fixed codes to use when the mode = 'fixed'  - all unmapped codes are mapped to a each of the fixed codes." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ValueSet" />
      </type>
    </element>
    <element id="ConceptMap2.group.unmapped.url">
      <path value="ConceptMap2.group.unmapped.url" />
      <short value="canonical reference to an additional ConceptMap2 to use for mapping if the source concept is unmapped" />
      <definition value="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 value="0" />
      <max value="1" />
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ConceptMap2" />
      </type>
    </element>
  </differential>
</StructureDefinition>