CDA Examples
1.0.0 - active United States of America flag

CDA Examples, published by Health Level Seven. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/CDA-Examples/ and changes regularly. See the Directory of published versions

Example: Result with non-numeric physical quantity and unit

Approval Status: Approved
Task Force Approval: 2015-09-10
SDWG Approval: 2016-12-01

This is an example of a value from a lab with a discrete unit, but whose value is not a number, so the PQ datatype, the only type with a unit attribute, cannot be used.

This file includes examples of the following templates:


<section xmlns="urn:hl7-org:v3">
  <templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
  <templateId root="2.16.840.1.113883.10.20.22.2.3.1" extension="2015-08-01"/>
  <!--  Results Section with Coded Entries Required -->
  <code displayName="Relevant diagnostic tests and/or laboratory data"
        codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" code="30954-2"/>
  <title>Results</title>
  <text>
    <table border="1">
      <thead>
        <tr>
          <th>Description</th>
          <th>Value</th>
          <th>Unit</th>
          <th>Interpretation</th>
          <th>Reference Range</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th colspan="4">Lipid Panel, 10/20/2013 9:08 am</th>
        </tr>
        <tr ID="result1">
          <td>Triglycerides</td>
          <td>450</td>
          <td>mg/dL</td>
          <td>Abnormal</td>
          <td><150 mg/dL</td>
        </tr>
        <tr ID="result2">
          <td>LDL, Calculated</td>
          <!--  Example value filed from HL7 interface, paired with a real unit  -->
          <td>Unable to calculate</td>
          <td>mg/dL</td>
          <td/>
          <td/>
        </tr>
      </tbody>
    </table>
  </text>
  <entry>
    <organizer moodCode="EVN" classCode="BATTERY">
      <templateId root="2.16.840.1.113883.10.20.22.4.1"/>
      <templateId root="2.16.840.1.113883.10.20.22.4.1"
                  extension="2015-08-01"/>
      <templateId root="2.16.840.1.113883.10.20.22.4.1"
                  extension="2023-05-01"/>
      <id root="f16043d8-8d93-41a1-9682-a6cc7215572c"/>
      <code displayName="Lipid Panel" codeSystemName="LOINC"
            codeSystem="2.16.840.1.113883.6.1" code="24331-1"/>
      <statusCode code="completed"/>
      <effectiveTime>
        <low value="20131020090800-0500"/>
        <high value="20131020090800-0500"/>
      </effectiveTime>
      <!--  This component just here to show a typical PQ result, as well as the basis for an atypical LDL result  -->
      <component>
        <!--  optional interpretationCode/referenceRange snipped for brevity  -->
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.2"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.2"
                      extension="2015-08-01"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.2"
                      extension="2023-05-01"/>
          <id root="ccccccd8-8d93-41a1-9682-a6cc7215572c"/>
          <code xsi:type="CD" displayName="Triglycerides"
                codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" code="3043-7"/>
          <text xsi:type="ED">
            <reference value="#result1"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20131020090800-0500"/>
          <value xsi:type="PQ" value="450" unit="mg/dL"/>
        </observation>
      </component>
      <component>
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.2"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.2"
                      extension="2015-08-01"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.2"
                      extension="2023-05-01"/>
          <id root="eeeee3d8-8d93-41a1-9682-a6cc7215572c"/>
          <code xsi:type="CD"
                displayName="Cholesterol in LDL by calculation" codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1"
                code="13457-7"/>
          <text xsi:type="ED">
            <reference value="#result2"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20131020090800-0500"/>
          <!--  When non-numeric, value is a string and does not contain the units.
               If coming from a v2 message, this contains only the value from OBX-5  -->
          <value xsi:type="ST">Unable to calculate</value>
          <!--  Units are expressed in a related component observation.
               The code (question) is the SNOMED code for units.
               The value (answer) is represented as xsi:type="CD" with a codeSystem of UCUM.
               Note - if the unit is non-UCUM (such as receiving a string in OBX-6),
               the value element would be a string with xsi:type="ST".  -->
          <entryRelationship typeCode="COMP">
            <observation moodCode="EVN" classCode="OBS">
              <code xsi:type="CD" displayName="units"
                    codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96" code="246514001"/>
              <value xsi:type="CD" displayName="milligram per deciliter"
                     codeSystemName="UCUM" codeSystem="2.16.840.1.113883.6.8" code="mg/dL"/>
            </observation>
          </entryRelationship>
        </observation>
      </component>
    </organizer>
  </entry>
</section>