Consolidated CDA Release 2.1 StructureDefinition Publication
2.1 - CI Build

Consolidated CDA Release 2.1 StructureDefinition Publication, published by Health Level Seven. This is not an authorized publication; it is the continuous build for version 2.1). This version is based on the current content of https://github.com/HL7/CDA-ccda-2.1-sd/ and changes regularly. See the Directory of published versions

## Logical Model: MedicationFreeTextSig - XML Profile

Draft as of 2023-09-29

XML representation of the MedicationFreeTextSig logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="MedicationFreeTextSig"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration">SubstanceAdministration</a><a name="SubstanceAdministration"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">CDAR2.SubstanceAdministration</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">XML Namespace: </span>urn:hl7-org:v3<br/>Elements defined in Ancestors: <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">@classCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">@moodCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">realmCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">typeId</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html" title="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question">templateId</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">id</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">code</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">@negationInd</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">text</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">statusCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">effectiveTime</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">priorityCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">repeatNumber</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">routeCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">approachSiteCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">doseQuantity</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">rateQuantity</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">maxDoseQuantity</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">administrationUnitCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html" title="The consumable participation is used to bring in the LabeledDrug or Material entity that describes the administered substance. The LabeledDrug class, which is an Entity class playing the Role of Manufactured Product, identifies the drug that is consumed in the substance administration. The medication is identified by means of the LabeledDrug.code or the LabeledDrug.name. The Material entity is used to identify non-drug administered substances such as vaccines and blood products.">consumable</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">subject</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">specimen</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">performer</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">author</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">informant</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">participant</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">entryRelationship</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">reference</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-SubstanceAdministration.html">precondition</a></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.classCode">classCode</a><a name="SubstanceAdministration.classCode"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.moodCode">moodCode</a><a name="SubstanceAdministration.moodCode"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">moodCode must match the parent substanceAdministration EVN or INT<br/><span style="font-weight:bold">Binding: </span><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.11.20.9.18/expansion">MoodCodeEvnInt</a> (<a href="http://hl7.org/fhir/R5/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.templateId">Slices for templateId</a><a name="SubstanceAdministration.templateId"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="font-style: italic">1</span><span style="font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-II.html">II</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Closed by value:root</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck125.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.templateId:primary" title="Slice primary">templateId:primary</a><a name="SubstanceAdministration.templateId"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-II.html">II</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.templateId:primary.root">root</a><a name="SubstanceAdministration.templateId.root"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-oid.html" title="string">oid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-uuid.html" title="string">uuid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-ruid.html" title="string">ruid</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">2.16.840.1.113883.10.20.22.4.147</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1240.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: white; background-color: inherit" title="Simple Extension" class="hierarchy"/> <span style="text-decoration:line-through">extension</span><a name="SubstanceAdministration.templateId.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.code">code</a><a name="SubstanceAdministration.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-CD.html">CD</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.code.code">code</a><a name="SubstanceAdministration.code.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">76662-6</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.code.codeSystem">codeSystem</a><a name="SubstanceAdministration.code.codeSystem"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-oid.html" title="string">oid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-uuid.html" title="string">uuid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-ruid.html" title="string">ruid</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">2.16.840.1.113883.6.1</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.text">text</a><a name="SubstanceAdministration.text"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-ED.html">ED</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck101.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.text.reference">reference</a><a name="SubstanceAdministration.text.reference"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-TEL.html">TEL</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Reference into the section/text to a tag that only contains free text sig.</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.text.reference.value">value</a><a name="SubstanceAdministration.text.reference.value"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R5/conformance-rules.html#constraints" title="This element has or is affected by constraints (81-32774)">C</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-url.html" title="url">url</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">81-32774: </span>This reference/@value SHALL begin with a '#' and SHALL point to its corresponding narrative (using the approach defined in CDA Release 2, section 4.3.5.1) (CONF:81-32774).</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.consumable">consumable</a><a name="SubstanceAdministration.consumable"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-InfrastructureRoot.html">InfrastructureRoot</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck001.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.consumable.manufacturedProduct">manufacturedProduct</a><a name="SubstanceAdministration.consumable.manufacturedProduct"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-ManufacturedProduct.html">ManufacturedProduct</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0001.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug">manufacturedLabeledDrug</a><a name="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-LabeledDrug.html">LabeledDrug</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationFreeTextSig-definitions.html#SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.nullFlavor">nullFlavor</a><a name="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.nullFlavor"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">NA</span></td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <extension
                 url="http://hl7.org/fhir/tools/StructureDefinition/logical-target">
        <valueBoolean>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
            <valueCode value="not-applicable"/>
          </extension>
        </valueBoolean>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
        <valueUri value="urn:hl7-org:v3"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
        <valueUri value="substanceAdministration"/>
      </extension>
      <url
           value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationFreeTextSig"/>
      <identifier>
        <value value="urn:oid:2.16.840.1.113883.10.20.22.4.147"/>
      </identifier>
      <version value="2.1"/>
      <name value="MedicationFreeTextSig"/>
      <title value="Medication Free Text Sig"/>
      <status value="draft"/>
      <date value="2023-09-29T16:20:44+00:00"/>
      <publisher value="Health Level Seven"/>
      <contact>
        <name value="HL7 International - Structured Documents"/>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/structure"/>
        </telecom>
      </contact>
      <description
                   value="The template is available to explicitly identify the free text Sig within each medication.

    An example free text sig: Thyroxin 150 ug, take one tab by mouth every morning."/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="US"/>
        </coding>
      </jurisdiction>
      <fhirVersion value="5.0.0"/>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <kind value="logical"/>
      <abstract value="false"/>
      <type
            value="http://hl7.org/cda/stds/core/StructureDefinition/SubstanceAdministration"/>
      <baseDefinition
                      value="http://hl7.org/cda/stds/core/StructureDefinition/SubstanceAdministration"/>
      <derivation value="constraint"/>
      <snapshot>
        <element id="SubstanceAdministration">
          <path value="SubstanceAdministration"/>
          <short value="Base for all types and resources"/>
          <definition
                      value="Base definition for all types defined in FHIR type system."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Base"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="SubstanceAdministration.classCode">
          <path value="SubstanceAdministration.classCode"/>
          <representation value="xmlAttr"/>
          <comment
                   value="SHALL contain exactly one [1..1] @classCode=&quot;SBADM&quot; (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:81-32770)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.classCode"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <defaultValueCode value="SBADM"/>
          <fixedCode value="SBADM"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActClass"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.moodCode">
          <path value="SubstanceAdministration.moodCode"/>
          <representation value="xmlAttr"/>
          <short
                 value="moodCode must match the parent substanceAdministration EVN or INT"/>
          <comment
                   value="SHALL contain exactly one [1..1] @moodCode, which SHALL be selected from ValueSet MoodCodeEvnInt urn:oid:2.16.840.1.113883.11.20.9.18 STATIC 2011-04-03 (CONF:81-32771)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.moodCode"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.18"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.realmCode">
          <path value="SubstanceAdministration.realmCode"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.realmCode"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CS"/>
          </type>
        </element>
        <element id="SubstanceAdministration.typeId">
          <path value="SubstanceAdministration.typeId"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.typeId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element id="SubstanceAdministration.templateId">
          <path value="SubstanceAdministration.templateId"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="root"/>
            </discriminator>
            <rules value="closed"/>
          </slicing>
          <definition
                      value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.templateId"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element id="SubstanceAdministration.templateId:primary">
          <path value="SubstanceAdministration.templateId"/>
          <sliceName value="primary"/>
          <definition
                      value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
          <comment
                   value="SHALL contain exactly one [1..1] templateId (CONF:81-32753) such that it, SHALL not contain [0..0] extension."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.templateId"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element id="SubstanceAdministration.templateId:primary.nullFlavor">
          <path value="SubstanceAdministration.templateId.nullFlavor"/>
          <representation value="xmlAttr"/>
          <label value="Exceptional Value Detail"/>
          <definition
                      value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ANY.nullFlavor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
          </binding>
        </element>
        <element
                 id="SubstanceAdministration.templateId:primary.assigningAuthorityName">
          <path
                value="SubstanceAdministration.templateId.assigningAuthorityName"/>
          <representation value="xmlAttr"/>
          <label value="Assigning Authority Name"/>
          <definition
                      value="A human readable name or mnemonic for the assigning authority. The Assigning Authority Name has no computational value. The purpose of a Assigning Authority Name is to assist an unaided human interpreter of an II value to interpret the authority. Note: no automated processing must depend on the assigning authority name to be present in any form."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="II.assigningAuthorityName"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.templateId:primary.displayable">
          <path value="SubstanceAdministration.templateId.displayable"/>
          <representation value="xmlAttr"/>
          <label value="Displayable"/>
          <definition
                      value="Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="II.displayable"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.templateId:primary.root">
          <path value="SubstanceAdministration.templateId.root"/>
          <representation value="xmlAttr"/>
          <label value="Root"/>
          <definition
                      value="A unique identifier that guarantees the global uniqueness of the instance identifier. The root alone may be the entire instance identifier."/>
          <comment
                   value="SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.10.20.22.4.147&quot; (CONF:81-32772)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="II.root"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/uuid"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/ruid"/>
          </type>
          <patternString value="2.16.840.1.113883.10.20.22.4.147"/>
        </element>
        <element id="SubstanceAdministration.templateId:primary.extension">
          <path value="SubstanceAdministration.templateId.extension"/>
          <representation value="xmlAttr"/>
          <label value="Extension"/>
          <definition
                      value="A character string as a unique identifier within the scope of the identifier root."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="II.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.id">
          <path value="SubstanceAdministration.id"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.id"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element id="SubstanceAdministration.code">
          <path value="SubstanceAdministration.code"/>
          <comment
                   value="SHALL contain exactly one [1..1] code (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1) (CONF:81-32775)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CD"/>
          </type>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-ActSubstanceAdministrationCode"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.code.nullFlavor">
          <path value="SubstanceAdministration.code.nullFlavor"/>
          <representation value="xmlAttr"/>
          <label value="Exceptional Value Detail"/>
          <definition
                      value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ANY.nullFlavor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.code.code">
          <path value="SubstanceAdministration.code.code"/>
          <representation value="xmlAttr"/>
          <label value="Code"/>
          <definition
                      value="The plain code symbol defined by the code system. For example, &quot;784.0&quot; is the code symbol of the ICD-9 code &quot;784.0&quot; for headache."/>
          <comment
                   value="This code SHALL contain exactly one [1..1] @code=&quot;76662-6&quot; Instructions Medication (CONF:81-32780)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CD.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <patternCode value="76662-6"/>
        </element>
        <element id="SubstanceAdministration.code.codeSystem">
          <path value="SubstanceAdministration.code.codeSystem"/>
          <representation value="xmlAttr"/>
          <label value="Code System"/>
          <definition value="Specifies the code system that defines the code."/>
          <comment
                   value="This code SHALL contain exactly one [1..1] @codeSystem=&quot;2.16.840.1.113883.6.1&quot; (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1 STATIC) (CONF:81-32781)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CD.codeSystem"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/uuid"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/ruid"/>
          </type>
          <patternString value="2.16.840.1.113883.6.1"/>
        </element>
        <element id="SubstanceAdministration.code.codeSystemName">
          <path value="SubstanceAdministration.code.codeSystemName"/>
          <representation value="xmlAttr"/>
          <label value="Code System Name"/>
          <definition value="The common name of the coding system."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CD.codeSystemName"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.code.codeSystemVersion">
          <path value="SubstanceAdministration.code.codeSystemVersion"/>
          <representation value="xmlAttr"/>
          <label value="Code System Version"/>
          <definition
                      value="If applicable, a version descriptor defined specifically for the given code system."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CD.codeSystemVersion"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.code.displayName">
          <path value="SubstanceAdministration.code.displayName"/>
          <representation value="xmlAttr"/>
          <label value="Display Name"/>
          <definition
                      value="A name or title for the code, under which the sending system shows the code value to its users."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CD.displayName"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.code.sdtcValueSet">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
            <valueUri value="urn:hl7-org:sdtc"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
            <valueString value="valueSet"/>
          </extension>
          <path value="SubstanceAdministration.code.sdtcValueSet"/>
          <representation value="xmlAttr"/>
          <definition
                      value="The valueSet extension adds an attribute for elements with a CD dataType which indicates the particular value set constraining the coded concept."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CD.valueSet"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
          </type>
        </element>
        <element id="SubstanceAdministration.code.sdtcValueSetVersion">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
            <valueUri value="urn:hl7-org:sdtc"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
            <valueString value="valueSetVersion"/>
          </extension>
          <path value="SubstanceAdministration.code.sdtcValueSetVersion"/>
          <representation value="xmlAttr"/>
          <definition
                      value="The valueSetVersion extension adds an attribute for elements with a CD dataType which indicates the version of the particular value set constraining the coded concept."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CD.sdtcValueSetVersion"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.code.originalText">
          <path value="SubstanceAdministration.code.originalText"/>
          <label value="Original Text"/>
          <definition
                      value="The text or phrase used as the basis for the coding."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CD.originalText"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/ED"/>
          </type>
        </element>
        <element id="SubstanceAdministration.code.qualifier">
          <path value="SubstanceAdministration.code.qualifier"/>
          <label value="Qualifier"/>
          <definition
                      value="Specifies additional codes that increase the specificity of the the primary code."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CD.qualifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CR"/>
          </type>
        </element>
        <element id="SubstanceAdministration.code.translation">
          <path value="SubstanceAdministration.code.translation"/>
          <representation value="typeAttr"/>
          <label value="Translation"/>
          <definition
                      value="A set of other concept descriptors that translate this concept descriptor into other code systems."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CD.translation"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CD"/>
          </type>
        </element>
        <element id="SubstanceAdministration.negationInd">
          <path value="SubstanceAdministration.negationInd"/>
          <representation value="xmlAttr"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.negationInd"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text">
          <path value="SubstanceAdministration.text"/>
          <comment
                   value="SHALL contain exactly one [1..1] text (CONF:81-32754)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/ED"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.nullFlavor">
          <path value="SubstanceAdministration.text.nullFlavor"/>
          <representation value="xmlAttr"/>
          <label value="Exceptional Value Detail"/>
          <definition
                      value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ANY.nullFlavor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.text.charset">
          <path value="SubstanceAdministration.text.charset"/>
          <representation value="xmlAttr"/>
          <label value="Charset"/>
          <definition
                      value="For character-based encoding types, this property specifies the character set and character encoding used. The charset shall be identified by an Internet Assigned Numbers Authority (IANA) Charset Registration [] in accordance with RFC 2978 []."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.charset"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.compression">
          <path value="SubstanceAdministration.text.compression"/>
          <representation value="xmlAttr"/>
          <label value="Compression"/>
          <definition
                      value="Indicates whether the raw byte data is compressed, and what compression algorithm was used."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.compression"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-CompressionAlgorithm"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.text.integrityCheck">
          <path value="SubstanceAdministration.text.integrityCheck"/>
          <representation value="xmlAttr"/>
          <label value="Integrity Check"/>
          <definition
                      value="The integrity check is a short binary value representing a cryptographically strong checksum that is calculated over the binary data. The purpose of this property, when communicated with a reference is for anyone to validate later whether the reference still resolved to the same data that the reference resolved to when the encapsulated data value with reference was created."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.integrityCheck"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="base64Binary"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/bin"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.integrityCheckAlgorithm">
          <path value="SubstanceAdministration.text.integrityCheckAlgorithm"/>
          <representation value="xmlAttr"/>
          <label value="Integrity Check Algorithm"/>
          <definition
                      value="Specifies the algorithm used to compute the integrityCheck value. The cryptographically strong checksum algorithm Secure Hash Algorithm-1 (SHA-1) is currently the industry standard. It has superseded the MD5 algorithm only a couple of years ago, when certain flaws in the security of MD5 were discovered. Currently the SHA-1 hash algorithm is the default choice for the integrity check algorithm. Note that SHA-256 is also entering widespread usage."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.integrityCheckAlgorithm"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-IntegrityCheckAlgorithm"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.text.language">
          <path value="SubstanceAdministration.text.language"/>
          <representation value="xmlAttr"/>
          <label value="Language"/>
          <definition
                      value="For character based information the language property specifies the human language of the text."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.language"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.mediaType">
          <path value="SubstanceAdministration.text.mediaType"/>
          <representation value="xmlAttr"/>
          <label value="Media Type"/>
          <definition
                      value="Identifies the type of the encapsulated data and identifies a method to interpret or render the data."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.mediaType"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.representation">
          <path value="SubstanceAdministration.text.representation"/>
          <representation value="xmlAttr"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.representation"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.data[x]">
          <path value="SubstanceAdministration.text.data[x]"/>
          <representation value="xmlText"/>
          <definition
                      value="Data that is primarily intended for human interpretation or for further machine processing is outside the scope of HL7. This includes unformatted or formatted written language, multimedia data, or structured information as defined by a different standard (e.g., XML-signatures.)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.data[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
          </type>
          <type>
            <code value="base64Binary"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/bin"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.reference">
          <path value="SubstanceAdministration.text.reference"/>
          <label value="Reference"/>
          <short
                 value="Reference into the section/text to a tag that only contains free text sig."/>
          <definition
                      value="A telecommunication address (TEL), such as a URL for HTTP or FTP, which will resolve to precisely the same binary data that could as well have been provided as inline data."/>
          <comment
                   value="This text SHALL contain exactly one [1..1] reference (CONF:81-32755)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="ED.reference"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/TEL"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.reference.nullFlavor">
          <path value="SubstanceAdministration.text.reference.nullFlavor"/>
          <representation value="xmlAttr"/>
          <label value="Exceptional Value Detail"/>
          <definition
                      value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ANY.nullFlavor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.text.reference.value">
          <path value="SubstanceAdministration.text.reference.value"/>
          <representation value="xmlAttr"/>
          <comment
                   value="This reference SHOULD contain zero or one [0..1] @value (CONF:81-32756)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="TEL.value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/url"/>
          </type>
          <constraint>
            <key value="81-32774"/>
            <severity value="error"/>
            <human
                   value="This reference/@value SHALL begin with a '#' and SHALL point to its corresponding narrative (using the approach defined in CDA Release 2, section 4.3.5.1) (CONF:81-32774)."/>
            <source
                    value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationFreeTextSig"/>
          </constraint>
        </element>
        <element id="SubstanceAdministration.text.reference.useablePeriod">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-defaulttype">
            <valueCanonical
                            value="http://hl7.org/cda/stds/core/StructureDefinition/SXPR-TS"/>
          </extension>
          <path value="SubstanceAdministration.text.reference.useablePeriod"/>
          <representation value="typeAttr"/>
          <label value="Useable Period"/>
          <definition
                      value="Specifies the periods of time during which the telecommunication address can be used. For a telephone number, this can indicate the time of day in which the party can be reached on that telephone. For a web address, it may specify a time range in which the web content is promised to be available under the given address."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="TEL.useablePeriod"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/IVL-TS"/>
          </type>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/EIVL-TS"/>
          </type>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/PIVL-TS"/>
          </type>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/SXPR-TS"/>
          </type>
        </element>
        <element id="SubstanceAdministration.text.reference.use">
          <path value="SubstanceAdministration.text.reference.use"/>
          <representation value="xmlAttr"/>
          <label value="Use Code"/>
          <definition
                      value="One or more codes advising a system or user which telecommunication address in a set of like addresses to select for a given telecommunication need."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="TEL.use"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-AddressUse"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.text.thumbnail">
          <path value="SubstanceAdministration.text.thumbnail"/>
          <label value="Thumbnail"/>
          <definition
                      value="An abbreviated rendition of the full data. A thumbnail requires significantly fewer resources than the full data, while still maintaining some distinctive similarity with the full data. A thumbnail is typically used with by-reference encapsulated data. It allows a user to select data more efficiently before actually downloading through the reference."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ED.thumbnail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/ED"/>
          </type>
        </element>
        <element id="SubstanceAdministration.statusCode">
          <path value="SubstanceAdministration.statusCode"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.statusCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CS"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActStatus"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.effectiveTime">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-defaulttype">
            <valueCanonical
                            value="http://hl7.org/cda/stds/core/StructureDefinition/SXCM-TS"/>
          </extension>
          <path value="SubstanceAdministration.effectiveTime"/>
          <representation value="typeAttr"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.effectiveTime"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/SXCM-TS"/>
          </type>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/IVL-TS"/>
          </type>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/EIVL-TS"/>
          </type>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/PIVL-TS"/>
          </type>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/SXPR-TS"/>
          </type>
        </element>
        <element id="SubstanceAdministration.priorityCode">
          <path value="SubstanceAdministration.priorityCode"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.priorityCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CE"/>
          </type>
          <binding>
            <strength value="extensible"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActPriority"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.repeatNumber">
          <path value="SubstanceAdministration.repeatNumber"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.repeatNumber"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/IVL-INT"/>
          </type>
        </element>
        <element id="SubstanceAdministration.routeCode">
          <path value="SubstanceAdministration.routeCode"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.routeCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CE"/>
          </type>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-RouteOfAdministration"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.approachSiteCode">
          <path value="SubstanceAdministration.approachSiteCode"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.approachSiteCode"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CD"/>
          </type>
          <binding>
            <strength value="extensible"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActSite"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.doseQuantity">
          <path value="SubstanceAdministration.doseQuantity"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.doseQuantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/IVL-PQ"/>
          </type>
        </element>
        <element id="SubstanceAdministration.rateQuantity">
          <path value="SubstanceAdministration.rateQuantity"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.rateQuantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/IVL-PQ"/>
          </type>
        </element>
        <element id="SubstanceAdministration.maxDoseQuantity">
          <path value="SubstanceAdministration.maxDoseQuantity"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.maxDoseQuantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/RTO-PQ-PQ"/>
          </type>
        </element>
        <element id="SubstanceAdministration.administrationUnitCode">
          <path value="SubstanceAdministration.administrationUnitCode"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.administrationUnitCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CE"/>
          </type>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-AdministrableDrugForm"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.consumable">
          <path value="SubstanceAdministration.consumable"/>
          <definition
                      value="The consumable participation is used to bring in the LabeledDrug or Material entity that describes the administered substance. The LabeledDrug class, which is an Entity class playing the Role of Manufactured Product, identifies the drug that is consumed in the substance administration. The medication is identified by means of the LabeledDrug.code or the LabeledDrug.name. The Material entity is used to identify non-drug administered substances such as vaccines and blood products."/>
          <comment
                   value="SHALL contain exactly one [1..1] consumable (CONF:81-32776)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.consumable"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/InfrastructureRoot"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
        </element>
        <element id="SubstanceAdministration.consumable.nullFlavor">
          <path value="SubstanceAdministration.consumable.nullFlavor"/>
          <representation value="xmlAttr"/>
          <label value="Exceptional Value Detail"/>
          <definition
                      value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ANY.nullFlavor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.consumable.realmCode">
          <path value="SubstanceAdministration.consumable.realmCode"/>
          <definition
                      value="When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="InfrastructureRoot.realmCode"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CS"/>
          </type>
        </element>
        <element id="SubstanceAdministration.consumable.typeId">
          <path value="SubstanceAdministration.consumable.typeId"/>
          <definition
                      value="When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="InfrastructureRoot.typeId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element id="SubstanceAdministration.consumable.templateId">
          <path value="SubstanceAdministration.consumable.templateId"/>
          <definition
                      value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="InfrastructureRoot.templateId"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element id="SubstanceAdministration.consumable.typeCode">
          <path value="SubstanceAdministration.consumable.typeCode"/>
          <representation value="xmlAttr"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.consumable.typeCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <fixedCode value="CSM"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-ParticipationTargetDirect"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.consumable.manufacturedProduct">
          <path value="SubstanceAdministration.consumable.manufacturedProduct"/>
          <comment
                   value="This consumable SHALL contain exactly one [1..1] manufacturedProduct (CONF:81-32777)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.consumable.manufacturedProduct"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/ManufacturedProduct"/>
          </type>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.classCode">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.classCode"/>
          <representation value="xmlAttr"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ManufacturedProduct.classCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <fixedCode value="MANU"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-RoleClassManufacturedProduct"/>
          </binding>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.templateId">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.templateId"/>
          <definition
                      value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="ManufacturedProduct.templateId"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element id="SubstanceAdministration.consumable.manufacturedProduct.id">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.id"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="ManufacturedProduct.id"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.sdtcIdentifiedBy">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
            <valueUri value="urn:hl7-org:sdtc"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
            <valueString value="identifiedBy"/>
          </extension>
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.sdtcIdentifiedBy"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="ManufacturedProduct.sdtcIdentifiedBy"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/IdentifiedBy"/>
          </type>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug"/>
          <comment
                   value="This manufacturedProduct SHALL contain exactly one [1..1] manufacturedLabeledDrug (CONF:81-32778)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="ManufacturedProduct.manufacturedLabeledDrug"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/LabeledDrug"/>
          </type>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.nullFlavor">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.nullFlavor"/>
          <representation value="xmlAttr"/>
          <comment
                   value="This manufacturedLabeledDrug SHALL contain exactly one [1..1] @nullFlavor=&quot;NA&quot; Not Applicable (CONF:81-32779)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="ANY.nullFlavor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <fixedCode value="NA"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
          </binding>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.classCode">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.classCode"/>
          <representation value="xmlAttr"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="LabeledDrug.classCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <fixedCode value="MMAT"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-EntityClassManufacturedMaterial"/>
          </binding>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.determinerCode">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.determinerCode"/>
          <representation value="xmlAttr"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="LabeledDrug.determinerCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
            <profile
                     value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
          </type>
          <fixedCode value="KIND"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://terminology.hl7.org/ValueSet/v3-EntityDeterminerDetermined"/>
          </binding>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.templateId">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.templateId"/>
          <definition
                      value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="LabeledDrug.templateId"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
          </type>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.code">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.code"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="LabeledDrug.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/CE"/>
          </type>
          <binding>
            <strength value="extensible"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-DrugEntity"/>
          </binding>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.name">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.name"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="LabeledDrug.name"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="http://hl7.org/cda/stds/core/StructureDefinition/EN"/>
          </type>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedMaterial">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedMaterial"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ManufacturedProduct.manufacturedMaterial"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Material"/>
          </type>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturerOrganization">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturerOrganization"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="ManufacturedProduct.manufacturerOrganization"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Organization"/>
          </type>
        </element>
        <element id="SubstanceAdministration.subject">
          <path value="SubstanceAdministration.subject"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="SubstanceAdministration.subject"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Subject"/>
          </type>
        </element>
        <element id="SubstanceAdministration.specimen">
          <path value="SubstanceAdministration.specimen"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.specimen"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Specimen"/>
          </type>
        </element>
        <element id="SubstanceAdministration.performer">
          <path value="SubstanceAdministration.performer"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.performer"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Performer2"/>
          </type>
        </element>
        <element id="SubstanceAdministration.author">
          <path value="SubstanceAdministration.author"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.author"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Author"/>
          </type>
        </element>
        <element id="SubstanceAdministration.informant">
          <path value="SubstanceAdministration.informant"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.informant"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Informant"/>
          </type>
        </element>
        <element id="SubstanceAdministration.participant">
          <path value="SubstanceAdministration.participant"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.participant"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Participant2"/>
          </type>
        </element>
        <element id="SubstanceAdministration.entryRelationship">
          <path value="SubstanceAdministration.entryRelationship"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.entryRelationship"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship"/>
          </type>
        </element>
        <element id="SubstanceAdministration.reference">
          <path value="SubstanceAdministration.reference"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.reference"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Reference"/>
          </type>
        </element>
        <element id="SubstanceAdministration.precondition">
          <path value="SubstanceAdministration.precondition"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="SubstanceAdministration.precondition"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/cda/stds/core/StructureDefinition/Precondition"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="SubstanceAdministration.classCode">
          <path value="SubstanceAdministration.classCode"/>
          <comment
                   value="SHALL contain exactly one [1..1] @classCode=&quot;SBADM&quot; (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:81-32770)."/>
        </element>
        <element id="SubstanceAdministration.moodCode">
          <path value="SubstanceAdministration.moodCode"/>
          <short
                 value="moodCode must match the parent substanceAdministration EVN or INT"/>
          <comment
                   value="SHALL contain exactly one [1..1] @moodCode, which SHALL be selected from ValueSet MoodCodeEvnInt urn:oid:2.16.840.1.113883.11.20.9.18 STATIC 2011-04-03 (CONF:81-32771)."/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.11.20.9.18"/>
          </binding>
        </element>
        <element id="SubstanceAdministration.templateId">
          <path value="SubstanceAdministration.templateId"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="root"/>
            </discriminator>
            <rules value="closed"/>
          </slicing>
          <min value="1"/>
        </element>
        <element id="SubstanceAdministration.templateId:primary">
          <path value="SubstanceAdministration.templateId"/>
          <sliceName value="primary"/>
          <comment
                   value="SHALL contain exactly one [1..1] templateId (CONF:81-32753) such that it, SHALL not contain [0..0] extension."/>
          <min value="1"/>
          <max value="1"/>
        </element>
        <element id="SubstanceAdministration.templateId:primary.root">
          <path value="SubstanceAdministration.templateId.root"/>
          <comment
                   value="SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.10.20.22.4.147&quot; (CONF:81-32772)."/>
          <min value="1"/>
          <patternString value="2.16.840.1.113883.10.20.22.4.147"/>
        </element>
        <element id="SubstanceAdministration.templateId:primary.extension">
          <path value="SubstanceAdministration.templateId.extension"/>
          <max value="0"/>
        </element>
        <element id="SubstanceAdministration.code">
          <path value="SubstanceAdministration.code"/>
          <comment
                   value="SHALL contain exactly one [1..1] code (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1) (CONF:81-32775)."/>
          <min value="1"/>
        </element>
        <element id="SubstanceAdministration.code.code">
          <path value="SubstanceAdministration.code.code"/>
          <comment
                   value="This code SHALL contain exactly one [1..1] @code=&quot;76662-6&quot; Instructions Medication (CONF:81-32780)."/>
          <min value="1"/>
          <patternCode value="76662-6"/>
        </element>
        <element id="SubstanceAdministration.code.codeSystem">
          <path value="SubstanceAdministration.code.codeSystem"/>
          <comment
                   value="This code SHALL contain exactly one [1..1] @codeSystem=&quot;2.16.840.1.113883.6.1&quot; (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1 STATIC) (CONF:81-32781)."/>
          <min value="1"/>
          <patternString value="2.16.840.1.113883.6.1"/>
        </element>
        <element id="SubstanceAdministration.text">
          <path value="SubstanceAdministration.text"/>
          <comment
                   value="SHALL contain exactly one [1..1] text (CONF:81-32754)."/>
          <min value="1"/>
        </element>
        <element id="SubstanceAdministration.text.reference">
          <path value="SubstanceAdministration.text.reference"/>
          <short
                 value="Reference into the section/text to a tag that only contains free text sig."/>
          <comment
                   value="This text SHALL contain exactly one [1..1] reference (CONF:81-32755)."/>
          <min value="1"/>
        </element>
        <element id="SubstanceAdministration.text.reference.value">
          <path value="SubstanceAdministration.text.reference.value"/>
          <comment
                   value="This reference SHOULD contain zero or one [0..1] @value (CONF:81-32756)."/>
          <constraint>
            <key value="81-32774"/>
            <severity value="error"/>
            <human
                   value="This reference/@value SHALL begin with a '#' and SHALL point to its corresponding narrative (using the approach defined in CDA Release 2, section 4.3.5.1) (CONF:81-32774)."/>
            <source
                    value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationFreeTextSig"/>
          </constraint>
        </element>
        <element id="SubstanceAdministration.consumable">
          <path value="SubstanceAdministration.consumable"/>
          <comment
                   value="SHALL contain exactly one [1..1] consumable (CONF:81-32776)."/>
        </element>
        <element id="SubstanceAdministration.consumable.manufacturedProduct">
          <path value="SubstanceAdministration.consumable.manufacturedProduct"/>
          <comment
                   value="This consumable SHALL contain exactly one [1..1] manufacturedProduct (CONF:81-32777)."/>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug"/>
          <comment
                   value="This manufacturedProduct SHALL contain exactly one [1..1] manufacturedLabeledDrug (CONF:81-32778)."/>
          <min value="1"/>
        </element>
        <element
                 id="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.nullFlavor">
          <path
                value="SubstanceAdministration.consumable.manufacturedProduct.manufacturedLabeledDrug.nullFlavor"/>
          <comment
                   value="This manufacturedLabeledDrug SHALL contain exactly one [1..1] @nullFlavor=&quot;NA&quot; Not Applicable (CONF:81-32779)."/>
          <min value="1"/>
          <fixedCode value="NA"/>
        </element>
      </differential>
    </StructureDefinition>