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: Drug Mixture

Approval Status: Approved
Task Force Approval: 2022-06-23
SDWG Approval: 2023-03-09

This is an example of a mixture of three or more different drug ingredients, each with a different relative concentration. Note the use of the urn:ihe:pharm:medication namespace, which is required by the UV Medication Information (detail) template. The CDA schema doesn’t recognize content from this namespace and so flags it as invalid by default, although extension content from other namespaces is allowed in CDA even when not recognized by the schema (see 1.4 CDA Extensibility).

This file includes examples of the following templates:


  <!--  Note the use of the urn:hl7-org:pharm namespace, which is required by the UV Medication Information (detail) template.
     The CDA schema doesn't recognize content from this namespace and so flags it as invalid by default, although extension content from other namespaces
     is allowed in CDA even when not recognized by the schema (see 1.4 CDA Extensibility).  -->
<section xmlns="urn:hl7-org:v3">
  <templateId root="2.16.840.1.113883.10.20.22.2.1"/>
  <templateId root="2.16.840.1.113883.10.20.22.2.1" extension="2014-06-09"/>
  <templateId root="2.16.840.1.113883.10.20.22.2.1.1"/>
  <templateId root="2.16.840.1.113883.10.20.22.2.1.1" extension="2014-06-09"/>
  <id root="4A2D0868-7307-11EC-BD4E-460231621F93"/>
  <code displayName="History of Medication use Narrative"
        codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" code="10160-0"/>
  <title>Medications</title>
  <text>
    <!--  Narrative omitted; only elements required for reference resolution are included  -->
    <content ID="Med1">diphenhydrAMINE hydrochloride 5 mg, lidocaine 50 mg in aluminum & magnesium hydroxide-simethicone 80-80-8 mg/mL SUSP 1.6667 mL</content>
  </text>
  <!--  Example mixture:
       diphenhydrAMINE hydrochloride 5 mg, lidocaine 50 mg in aluminum & magnesium hydroxide-simethicone 80-80-8 mg/mL  -->
  <entry typeCode="DRIV">
    <substanceAdministration moodCode="INT" classCode="SBADM">
      <templateId root="2.16.840.1.113883.10.20.22.4.16"/>
      <templateId root="2.16.840.1.113883.10.20.22.4.16"
                  extension="2014-06-09"/>
      <id root="1.2.840.114350.1.13.861.1.7.2.798268" extension="1012722087"/>
      <text>
        <reference value="#Med1"/>
      </text>
      <statusCode code="active"/>
      <effectiveTime xsi:type="IVL_TS">
        <low value="20220111"/>
        <high value="20220119055900+0000"/>
      </effectiveTime>
      <effectiveTime xsi:type="PIVL_TS" operator="A"
                     institutionSpecified="true">
        <period value="0.5" unit="d"/>
      </effectiveTime>
      <routeCode displayName="Oropharyngeal Route of Administration"
                 codeSystemName="NCI Thesaurus" codeSystem="2.16.840.1.113883.3.26.1.1" code="C38289">
        <originalText>Mouth/Throat</originalText>
      </routeCode>
      <!--  The patient should take 5 mL of this mixture at a time.  -->
      <doseQuantity value="5" unit="mL"/>
      <consumable typeCode="CSM">
        <manufacturedProduct classCode="MANU">
          <!--  This manufacturedProduct conforms to both the C-CDA Medication Information (V2)
               template AND the UV Medication Information (detail) template:
               https://art-decor.org/art-decor/decor-templates%2d%2dpharmcda-?section=templates&id=2.16.840.1.113883.10.21.4.11  -->
          <templateId root="2.16.840.1.113883.10.20.22.4.23"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.23"
                      extension="2014-06-09"/>
          <templateId root="2.16.840.1.113883.10.21.4.11"/>
          <manufacturedMaterial>
            <!--  There's no code for this mixture...  -->
            <code nullFlavor="OTH" codeSystem="2.16.840.1.113883.6.88"/>
            <!--  The element SHOULD contain the name of the medication.  -->
            <name>diphenhydrAMINE hydrochloride 5 mg, lidocaine 50 mg, aluminum & magnesium hydroxide-simethicone 80-80-8 mg/mL SUSP 1.6667 mL</name>
          </manufacturedMaterial>
        </manufacturedProduct>
      </consumable>
    </substanceAdministration>
  </entry>
</section>