HL7 Version 2 to FHIR
1.0.0 - STU 1

HL7 Version 2 to FHIR - Downloaded Version 1.0.0 See the Directory of published versions

## : Segment DG1 to EpisodeOfCare Map - XML Representation

Page standards status: Informative

Raw xml | Download

    <ConceptMap xmlns="http://hl7.org/fhir">
      <id value="segment-dg1-to-episodeofcare"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: ConceptMap segment-dg1-to-episodeofcare</b></p><a name="segment-dg1-to-episodeofcare"> </a><a name="hcsegment-dg1-to-episodeofcare"> </a><p>Mapping from (not specified) to (not specified)</p><br/><p><b>Group 1 </b>Mapping from <code>unspecified code system</code> to <code>unspecified code system</code></p><table class="grid"><tr><td><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>DG1-3 (Diagnosis Code)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.code)</td><td/></tr><tr><td>DG1-4 (Diagnosis Description)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.code.text)</td><td>Doesn't warrant mapping</td></tr><tr><td>DG1-5 (Diagnosis Date/Time)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.onsetDateTime)</td><td>Should confirm that these two concepts are equivalent. Condition.recordedDate is also available</td></tr><tr><td>DG1-6 (Diagnosis Type)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.role</td><td/></tr><tr><td>DG1-15 (Diagnosis Priority)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.rank</td><td>Could contribute to Condition.category or be a new extension</td></tr><tr><td>DG1-16 (Diagnosing Clinician)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.asserter(Practitioner)</td><td>While DG1-16 can repeat, we are not aware of instances where this is used.  Until such time, we will not yet establish an agreed to method to communicate the extra repeats in FHIR.</td></tr><tr><td>DG1-19 (Attestation Date/Time)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.extension[1].url)</td><td/></tr><tr><td>DG1-19 (Attestation Date/Time)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.extension[1].valueDateTime)</td><td>It is unclear whether to use recorded or asserted date.  What is your opinion?</td></tr><tr><td>DG1-19 (Attestation Date/Time)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.recordedDate)</td><td>It is unclear whether to use recorded or asserted date.  What is your opinion?</td></tr><tr><td>DG1-20 (Diagnosis Identifier)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.identifier)</td><td>We should confirm that this is truly a unique ID before it gets used as .id. It may need to be combined with a visit ID to make it fully unique.</td></tr><tr><td>DG1-21 (Diagnosis Action Code)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.verificationStatus.coding.code)</td><td>Other values (A and U) don't map to anything</td></tr><tr><td>DG1-21 (Diagnosis Action Code)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.verificationStatus.coding.system)</td><td/></tr><tr><td>DG1-22 (Parent Diagnosis)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.extension[2].url)</td><td/></tr><tr><td>DG1-22 (Parent Diagnosis)</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td>diagnosis.condition(Condition.extension[2].valueReference(Condition))</td><td>Extensions for occurredFollowing and related also exist</td></tr></table></div>
      </text>
      <extension
                 url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact">
        <extension url="type">
          <valueCode value="derived-from"/>
        </extension>
        <extension url="label">
          <valueString value="Segment DG1 to EpisodeOfCare.fsh"/>
        </extension>
        <extension url="url">
          <valueUri
                    value="https://docs.google.com/spreadsheets/d/1seZccIaX-x7-8vVxT1JiiG5Hm1dtWgYcI2RxiiKzh-o/edit#gid=0"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
        <valueCode value="oo"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="informative">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
            <valueCanonical
                            value="http://hl7.org/fhir/uv/v2mappings/ImplementationGuide/hl7.fhir.uv.v2mappings"/>
          </extension>
        </valueCode>
      </extension>
      <url
           value="http://hl7.org/fhir/uv/v2mappings/ConceptMap/segment-dg1-to-episodeofcare"/>
      <version value="1.0.0"/>
      <name value="SegmentDG1ToEpisodeOfCare"/>
      <title value="Segment DG1 to EpisodeOfCare Map"/>
      <status value="active"/>
      <experimental value="true"/>
      <date value="2025-08-25"/>
      <publisher value="HL7 International / Orders and Observations"/>
      <contact>
        <name value="HL7 Orders and Observations Workgroup"/>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/orders"/>
        </telecom>
      </contact>
      <description
                   value="This ConceptMap represents a mapping from the HL7 V2 Segment DG1 to the FHIR EpisodeOfCare Resource."/>
      <jurisdiction>
        <coding>
          <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
          <code value="001"/>
        </coding>
      </jurisdiction>
      <copyright
                 value="Copyright (c) 2025, HL7 International, Inc., All Rights Reserved."/>
      <group>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="CWE"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-3"/>
          <display value="Diagnosis Code"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="CodeableConcept"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code value="diagnosis.condition(Condition.code)"/>
            <display value="diagnosis.condition(Condition.code)"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="ST"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-4"/>
          <display value="Diagnosis Description"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code value="diagnosis.condition(Condition.code.text)"/>
            <display value="diagnosis.condition(Condition.code.text)"/>
            <equivalence value="equivalent"/>
            <comment value="Doesn't warrant mapping"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="DTM"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-5"/>
          <display value="Diagnosis Date/Time"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="dateTime"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code value="diagnosis.condition(Condition.onsetDateTime)"/>
            <display value="diagnosis.condition(Condition.onsetDateTime)"/>
            <equivalence value="equivalent"/>
            <comment
                     value="Should confirm that these two concepts are equivalent. Condition.recordedDate is also available"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="CWE"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-6"/>
          <display value="Diagnosis Type"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="CodeableConcept"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
              <extension url="mappedVia">
                <valueUrl value="ConceptMap/table-hl70052-to-diagnosis-role"/>
              </extension>
            </extension>
            <code value="diagnosis.role"/>
            <display value="diagnosis.role"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="NM"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-15"/>
          <display value="Diagnosis Priority"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="positiveInt"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code value="diagnosis.rank"/>
            <display value="diagnosis.rank"/>
            <equivalence value="equivalent"/>
            <comment
                     value="Could contribute to Condition.category or be a new extension"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="XCN"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="-1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="-1"/>
            </extension>
          </extension>
          <code value="DG1-16"/>
          <display value="Diagnosing Clinician"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="Reference"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code value="diagnosis.condition(Condition.asserter(Practitioner)"/>
            <display
                     value="diagnosis.condition(Condition.asserter(Practitioner)"/>
            <equivalence value="equivalent"/>
            <comment
                     value="While DG1-16 can repeat, we are not aware of instances where this is used.  Until such time, we will not yet establish an agreed to method to communicate the extra repeats in FHIR."/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="DTM"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-19"/>
          <display value="Attestation Date/Time"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="uri"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="1"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
              <extension url="assignment">
                <valueString
                             value="&quot;http://hl7.org/fhir/StructureDefinition/condition-assertedDate&quot;"/>
              </extension>
            </extension>
            <code value="diagnosis.condition(Condition.extension[1].url)"/>
            <display value="diagnosis.condition(Condition.extension[1].url)"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="DTM"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-19"/>
          <display value="Attestation Date/Time"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="dateTime"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="1"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code
                  value="diagnosis.condition(Condition.extension[1].valueDateTime)"/>
            <display
                     value="diagnosis.condition(Condition.extension[1].valueDateTime)"/>
            <equivalence value="equivalent"/>
            <comment
                     value="It is unclear whether to use recorded or asserted date.  What is your opinion?"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="DTM"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-19"/>
          <display value="Attestation Date/Time"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="dateTime"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code value="diagnosis.condition(Condition.recordedDate)"/>
            <display value="diagnosis.condition(Condition.recordedDate)"/>
            <equivalence value="equivalent"/>
            <comment
                     value="It is unclear whether to use recorded or asserted date.  What is your opinion?"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="EI"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-20"/>
          <display value="Diagnosis Identifier"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="identifier"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="-1"/>
              </extension>
            </extension>
            <code value="diagnosis.condition(Condition.identifier)"/>
            <display value="diagnosis.condition(Condition.identifier)"/>
            <equivalence value="equivalent"/>
            <comment
                     value="We should confirm that this is truly a unique ID before it gets used as .id. It may need to be combined with a visit ID to make it fully unique."/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="ID"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-21"/>
          <display value="Diagnosis Action Code"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="code"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
              <extension url="assignment">
                <valueString value="&quot;entered-in-error&quot;"/>
              </extension>
            </extension>
            <code
                  value="diagnosis.condition(Condition.verificationStatus.coding.code)"/>
            <display
                     value="diagnosis.condition(Condition.verificationStatus.coding.code)"/>
            <equivalence value="equivalent"/>
            <comment value="Other values (A and U) don't map to anything"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="ID"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-21"/>
          <display value="Diagnosis Action Code"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="uri"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
              <extension url="assignment">
                <valueString
                             value="&quot;http://terminology.hl7.org/CodeSystem/condition-ver-status&quot;"/>
              </extension>
            </extension>
            <code
                  value="diagnosis.condition(Condition.verificationStatus.coding.system)"/>
            <display
                     value="diagnosis.condition(Condition.verificationStatus.coding.system)"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="EI"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-22"/>
          <display value="Parent Diagnosis"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="assignment">
                <valueString
                             value="&quot;http://hl7.org/fhir/StructureDefinition/condition-dueTo&quot;"/>
              </extension>
            </extension>
            <code value="diagnosis.condition(Condition.extension[2].url)"/>
            <display value="diagnosis.condition(Condition.extension[2].url)"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="EI"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="DG1-22"/>
          <display value="Parent Diagnosis"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="Reference"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code
                  value="diagnosis.condition(Condition.extension[2].valueReference(Condition))"/>
            <display
                     value="diagnosis.condition(Condition.extension[2].valueReference(Condition))"/>
            <equivalence value="equivalent"/>
            <comment
                     value="Extensions for occurredFollowing and related also exist"/>
          </target>
        </element>
      </group>
    </ConceptMap>