Consolidated CDA (C-CDA), published by Health Level Seven. This guide is not an authorized publication; it is the continuous build for version 4.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/CDA-ccda/ and changes regularly. See the Directory of published versions
Draft as of 2024-12-19 |
XML representation of the MedicationDispense logical model.
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="MedicationDispense"/>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition MedicationDispense</b></p><a name="MedicationDispense"> </a><a name="hcMedicationDispense"> </a><a name="MedicationDispense-en-US"> </a><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 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 & 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,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" 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-MedicationDispense-definitions.html#Supply">Supply</a><a name="Supply"> </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 ( should-text-ref-value, should-effectiveTime, should-repeatNumber, should-quantity )">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">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 href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">Supply</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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-ANY.html" title="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.">@nullFlavor</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-InfrastructureRoot.html" title="When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question">realmCode</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-InfrastructureRoot.html" title="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.">typeId</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-InfrastructureRoot.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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">@classCode</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">@moodCode</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">id</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">code</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">text</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">statusCode</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">effectiveTime</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">priorityCode</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">repeatNumber</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">independentInd</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">quantity</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">expectedUseTime</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">product</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">subject</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">specimen</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">performer</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">author</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">informant</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">participant</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">entryRelationship</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">reference</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">precondition</a>, <a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Supply.html">sdtcInFulfillmentOf1</a><br/><span style="opacity: 0.5">Base for all types and resources</span><br/><span style="font-weight:bold">Instance of this type are validated by templateId</span><br/><span style="font-weight:bold" title="The root class that contains instances of this class">Logical Container: </span><a href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-ClinicalDocument.html">ClinicalDocument (CDA Class)</a><br/><span style="font-weight:bold">should-text-ref-value: </span>SHOULD contain text/reference/@value<br/><span style="font-weight:bold">should-effectiveTime: </span>SHOULD contain effectiveTime<br/><span style="font-weight:bold">should-repeatNumber: </span>SHOULD contain repeatNumber<br/><span style="font-weight:bold">should-quantity: </span>SHOULD contain quantity</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-MedicationDispense-definitions.html#Supply.templateId">Slices for templateId</a><a name="Supply.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="http://hl7.org/cda/stds/core/2.0.1-sd/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, Open by value:root, value:extension</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-MedicationDispense-definitions.html#Supply.templateId:med-dispense" title="Slice med-dispense">templateId:med-dispense</a><a name="Supply.templateId.2"> </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="http://hl7.org/cda/stds/core/2.0.1-sd/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-MedicationDispense-definitions.html#Supply.templateId:med-dispense.root">@root</a><a name="Supply.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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-oid.html" title="string">oid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-uuid.html" title="string">uuid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="http://hl7.org/cda/stds/core/2.0.1-sd/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.18</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"/> <a href="StructureDefinition-MedicationDispense-definitions.html#Supply.templateId:med-dispense.extension">@extension</a><a name="Supply.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">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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-st-simple.html" title="string">st</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">2023-05-01</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_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-MedicationDispense-definitions.html#Supply.classCode">@classCode</a><a name="Supply.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="http://hl7.org/cda/stds/core/2.0.1-sd/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-MedicationDispense-definitions.html#Supply.moodCode">@moodCode</a><a name="Supply.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="http://hl7.org/cda/stds/core/2.0.1-sd/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">EVN</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_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-MedicationDispense-definitions.html#Supply.id">id</a><a name="Supply.id"> </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">*</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="http://hl7.org/cda/stds/core/2.0.1-sd/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"/></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-MedicationDispense-definitions.html#Supply.code">code</a><a name="Supply.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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-CD.html">CD</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">The CDA base standard limits codes that can be used at CDA supply.statusCode which do not represent typical medication dispense statuses. In order to provide correct domain vocabulary and align with FHIR, CDA supply.statusCode is fixed to completed and the FHIR MedicationDispense status value set is used at supply.code.<br/><span style="font-weight:bold">Binding: </span><a href="http://hl7.org/fhir/R5/valueset-medicationdispense-status.html" title="http://hl7.org/fhir/ValueSet/medicationdispense-status">MedicationDispenseStatusCodes</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_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-MedicationDispense-definitions.html#Supply.text">text</a><a name="Supply.text"> </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">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: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-ED.html">ED</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">SHOULD reference the portion of section narrative text corresponding to this entry</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_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: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-definitions.html#Supply.text.reference">reference</a><a name="Supply.text.reference"> </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 ( value-starts-octothorpe )">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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-TEL.html">TEL</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">value-starts-octothorpe: </span>If reference/@value is present, it SHALL begin with a '#' and SHALL point to its corresponding narrative</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_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-MedicationDispense-definitions.html#Supply.statusCode">statusCode</a><a name="Supply.statusCode"> </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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-CS.html">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_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: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-definitions.html#Supply.statusCode.code">@code</a><a name="Supply.statusCode.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="http://hl7.org/cda/stds/core/2.0.1-sd/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">completed</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_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-MedicationDispense-definitions.html#Supply.effectiveTime">effectiveTime</a><a name="Supply.effectiveTime"> </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">0</span>..1</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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-SXCM-TS.html">SXCM_TS</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-IVL-TS.html">IVL_TS</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-EIVL-TS.html">EIVL_TS</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-PIVL-TS.html">PIVL_TS</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-SXPR-TS.html">SXPR_TS</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-MedicationDispense-definitions.html#Supply.repeatNumber">repeatNumber</a><a name="Supply.repeatNumber"> </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">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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-IVL-INT.html">IVL_INT</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">In "EVN" (event) mood, the repeatNumber is the number of dispenses. For example, a repeatNumber of "3" indicates the third dispense.</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-MedicationDispense-definitions.html#Supply.quantity">quantity</a><a name="Supply.quantity"> </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">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: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-PQ.html">PQ</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_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-MedicationDispense-definitions.html#Supply.product">product</a><a name="Supply.product"> </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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-InfrastructureRoot.html">InfrastructureRoot</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_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_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-definitions.html#Supply.product.manufacturedProduct">manufacturedProduct</a><a name="Supply.product.manufacturedProduct"> </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 href="StructureDefinition-MedicationInformation.html" title="http://hl7.org/cda/stds/core/StructureDefinition/ManufacturedProduct">MedicationInformation</a>, <a href="StructureDefinition-ImmunizationMedicationInformation.html" title="http://hl7.org/cda/stds/core/StructureDefinition/ManufacturedProduct">ImmunizationMedicationInformation</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="opacity: 0.5">Base for all types and resources</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-MedicationDispense-definitions.html#Supply.performer">performer</a><a name="Supply.performer"> </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">0</span>..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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-Performer2.html">Performer2</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-MedicationDispense-definitions.html#Supply.performer.assignedEntity">assignedEntity</a><a name="Supply.performer.assignedEntity"> </a></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="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 ( should-addr )">C</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="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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-AssignedEntity.html">AssignedEntity</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">should-addr: </span>SHOULD contain addr</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_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-definitions.html#Supply.performer.assignedEntity.addr">addr</a><a name="Supply.performer.assignedEntity.addr"> </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">0</span>..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 href="StructureDefinition-USRealmAddress.html" title="http://hl7.org/cda/stds/core/StructureDefinition/AD">USRealmAddress</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">Base for all types and resources</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_bck03.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_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-MedicationDispense-definitions.html#Supply.entryRelationship">Slices for entryRelationship</a><a name="Supply.entryRelationship"> </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="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; 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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-EntryRelationship.html">EntryRelationship</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, Open by profile:supply, value:typeCode</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_bck025.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_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-MedicationDispense-definitions.html#Supply.entryRelationship:entryRelationship1" title="Slice entryRelationship1">entryRelationship:entryRelationship1</a><a name="Supply.entryRelationship.2"> </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">0..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="http://hl7.org/cda/stds/core/2.0.1-sd/StructureDefinition-EntryRelationship.html">EntryRelationship</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">entryRelationship</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_bck0250.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_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-MedicationDispense-definitions.html#Supply.entryRelationship:entryRelationship1.typeCode">@typeCode</a><a name="Supply.entryRelationship.typeCode"> </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="http://hl7.org/cda/stds/core/2.0.1-sd/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"><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">REFR</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_bck0240.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_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-MedicationDispense-definitions.html#Supply.entryRelationship:entryRelationship1.supply">supply</a><a name="Supply.entryRelationship.supply"> </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 href="StructureDefinition-MedicationSupplyOrder.html" title="http://hl7.org/cda/stds/core/StructureDefinition/Supply">MedicationSupplyOrder</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">Base for all types and resources</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,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" 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/tools/StructureDefinition/xml-namespace">
<valueUri value="urn:hl7-org:v3"/>
</extension>
<extension url="http://hl7.org/fhir/tools/StructureDefinition/xml-name">
<valueString value="supply"/>
</extension>
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/logical-container">
<valueUri
value="http://hl7.org/cda/stds/core/StructureDefinition/ClinicalDocument"/>
</extension>
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/type-profile-style">
<valueUri value="cda"/>
</extension>
<url
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:hl7ii:2.16.840.1.113883.10.20.22.4.18:2023-05-01"/>
</identifier>
<version value="4.0.0-ballot"/>
<name value="MedicationDispense"/>
<title value="Medication Dispense"/>
<status value="draft"/>
<date value="2024-12-19T00:36:20+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="This template records the act of supplying medications (i.e., dispensing). The moodCode equaling "EVN" (Event), signals that the "supply" has occurred and thus has been dispensed."/>
<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/Supply"/>
<baseDefinition
value="http://hl7.org/cda/stds/core/StructureDefinition/Supply"/>
<derivation value="constraint"/>
<snapshot>
<element id="Supply">
<path value="Supply"/>
<short value="Base for all types and resources"/>
<definition
value="Defines the basic properties of every data value. This is an abstract type, meaning that no value can be just a data value without belonging to any concrete type. Every concrete type is a specialization of this general abstract DataValue type."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Base"/>
<min value="0"/>
<max value="*"/>
</base>
<constraint>
<key value="should-text-ref-value"/>
<severity value="warning"/>
<human value="SHOULD contain text/reference/@value"/>
<expression value="text.reference.value.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
<constraint>
<key value="should-effectiveTime"/>
<severity value="warning"/>
<human value="SHOULD contain effectiveTime"/>
<expression value="effectiveTime.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
<constraint>
<key value="should-repeatNumber"/>
<severity value="warning"/>
<human value="SHOULD contain repeatNumber"/>
<expression value="repeatNumber.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
<constraint>
<key value="should-quantity"/>
<severity value="warning"/>
<human value="SHOULD contain quantity"/>
<expression value="quantity.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
<isModifier value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Supply.nullFlavor">
<path value="Supply.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.realmCode">
<path value="Supply.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="Supply.typeId">
<path value="Supply.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>
<constraint>
<key value="II-1"/>
<severity value="error"/>
<human
value="An II instance must have either a root or an nullFlavor."/>
<expression value="root.exists() or nullFlavor.exists()"/>
<source
value="http://hl7.org/cda/stds/core/StructureDefinition/InfrastructureRoot"/>
</constraint>
</element>
<element id="Supply.typeId.nullFlavor">
<path value="Supply.typeId.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.typeId.assigningAuthorityName">
<path value="Supply.typeId.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="Supply.typeId.displayable">
<path value="Supply.typeId.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="Supply.typeId.root">
<path value="Supply.typeId.root"/>
<representation value="xmlAttr"/>
<label value="Root"/>
<definition value="Identifies the type as an HL7 Registered model"/>
<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>
<fixedString value="2.16.840.1.113883.1.3"/>
</element>
<element id="Supply.typeId.extension">
<path value="Supply.typeId.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="1"/>
<max value="1"/>
<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="Supply.templateId">
<path value="Supply.templateId"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="root"/>
</discriminator>
<discriminator>
<type value="value"/>
<path value="extension"/>
</discriminator>
<rules value="open"/>
</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="InfrastructureRoot.templateId"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
</type>
</element>
<element id="Supply.templateId:med-dispense">
<path value="Supply.templateId"/>
<sliceName value="med-dispense"/>
<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="1"/>
<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="Supply.templateId:med-dispense.nullFlavor">
<path value="Supply.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.templateId:med-dispense.assigningAuthorityName">
<path value="Supply.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="Supply.templateId:med-dispense.displayable">
<path value="Supply.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="Supply.templateId:med-dispense.root">
<path value="Supply.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."/>
<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.18"/>
</element>
<element id="Supply.templateId:med-dispense.extension">
<path value="Supply.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="1"/>
<max value="1"/>
<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>
<patternString value="2023-05-01"/>
</element>
<element id="Supply.classCode">
<path value="Supply.classCode"/>
<representation value="xmlAttr"/>
<comment
value="SHALL contain exactly one [1..1] @classCode="SPLY" (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:4537-7451)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Supply.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="SPLY"/>
<fixedCode value="SPLY"/>
<binding>
<strength value="required"/>
<valueSet
value="http://terminology.hl7.org/ValueSet/v3-ActClassSupply"/>
</binding>
</element>
<element id="Supply.moodCode">
<path value="Supply.moodCode"/>
<representation value="xmlAttr"/>
<comment
value="SHALL contain exactly one [1..1] @moodCode="EVN" (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:4537-7452)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Supply.moodCode"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
<profile
value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
</type>
<fixedCode value="EVN"/>
<binding>
<strength value="required"/>
<valueSet
value="http://terminology.hl7.org/ValueSet/v3-xDocumentSubstanceMood|2.0.0"/>
</binding>
</element>
<element id="Supply.id">
<path value="Supply.id"/>
<comment
value="SHALL contain at least one [1..*] id (CONF:4537-7454)."/>
<min value="1"/>
<max value="*"/>
<base>
<path value="Supply.id"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
</type>
</element>
<element id="Supply.code">
<path value="Supply.code"/>
<short
value="The CDA base standard limits codes that can be used at CDA supply.statusCode which do not represent typical medication dispense statuses. In order to provide correct domain vocabulary and align with FHIR, CDA supply.statusCode is fixed to completed and the FHIR MedicationDispense status value set is used at supply.code."/>
<comment
value="SHALL contain exactly one [1..1] code, which SHALL be selected from ValueSet MedicationDispense Status Codes urn:oid:2.16.840.1.113883.4.642.3.1312 DYNAMIC (CONF:4537-32974)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Supply.code"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/CD"/>
</type>
<binding>
<strength value="required"/>
<valueSet
value="http://hl7.org/fhir/ValueSet/medicationdispense-status"/>
</binding>
</element>
<element id="Supply.text">
<path value="Supply.text"/>
<short
value="SHOULD reference the portion of section narrative text corresponding to this entry"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.text"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/ED"/>
</type>
</element>
<element id="Supply.text.nullFlavor">
<path value="Supply.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.text.compression">
<path value="Supply.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://hl7.org/cda/stds/core/ValueSet/CDACompressionAlgorithm"/>
</binding>
</element>
<element id="Supply.text.integrityCheck">
<path value="Supply.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="Supply.text.integrityCheckAlgorithm">
<path value="Supply.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|2.0.0"/>
</binding>
</element>
<element id="Supply.text.language">
<path value="Supply.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="Supply.text.mediaType">
<path value="Supply.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>
<binding>
<strength value="example"/>
<valueSet value="http://terminology.hl7.org/ValueSet/v3-MediaType"/>
</binding>
</element>
<element id="Supply.text.representation">
<path value="Supply.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>
<binding>
<strength value="required"/>
<valueSet
value="http://hl7.org/cda/stds/core/ValueSet/BinaryDataEncoding"/>
</binding>
</element>
<element id="Supply.text.xmlText">
<path value="Supply.text.xmlText"/>
<representation value="xmlText"/>
<short
value="Allows for mixed text content. If @representation='B64', this SHALL be a base64binary string."/>
<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.)"/>
<comment
value="This element is represented in XML as textual content. The actual name "xmlText" will not appear in a CDA instance."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ED.xmlText"/>
<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="Supply.text.reference">
<path value="Supply.text.reference"/>
<label value="Reference"/>
<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."/>
<min value="0"/>
<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>
<constraint>
<key value="value-starts-octothorpe"/>
<severity value="error"/>
<human
value="If reference/@value is present, it SHALL begin with a '#' and SHALL point to its corresponding narrative"/>
<expression value="value.exists() implies value.startsWith('#')"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
</element>
<element id="Supply.text.thumbnail">
<path value="Supply.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="Supply.statusCode">
<path value="Supply.statusCode"/>
<comment
value="SHALL contain exactly one [1..1] statusCode (CONF:4537-7455)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Supply.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="Supply.statusCode.nullFlavor">
<path value="Supply.statusCode.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.statusCode.code">
<path value="Supply.statusCode.code"/>
<representation value="xmlAttr"/>
<label value="Code"/>
<definition
value="The plain code symbol defined by the code system. For example, "784.0" is the code symbol of the ICD-9 code "784.0" for headache."/>
<comment
value="This statusCode SHALL contain exactly one [1..1] @code="completed" Completed (CodeSystem: HL7ActStatus urn:oid:2.16.840.1.113883.5.14 STATIC) (CONF:4537-32361)."/>
<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>
<fixedCode value="completed"/>
</element>
<element id="Supply.statusCode.codeSystem">
<path value="Supply.statusCode.codeSystem"/>
<representation value="xmlAttr"/>
<label value="Code System"/>
<definition value="Specifies the code system that defines the code."/>
<min value="0"/>
<max value="0"/>
<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>
</element>
<element id="Supply.statusCode.codeSystemName">
<path value="Supply.statusCode.codeSystemName"/>
<representation value="xmlAttr"/>
<label value="Code System Name"/>
<definition value="The common name of the coding system."/>
<min value="0"/>
<max value="0"/>
<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="Supply.statusCode.codeSystemVersion">
<path value="Supply.statusCode.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="0"/>
<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="Supply.statusCode.displayName">
<path value="Supply.statusCode.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="0"/>
<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="Supply.statusCode.sdtcValueSet">
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-namespace">
<valueUri value="urn:hl7-org:sdtc"/>
</extension>
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-name">
<valueString value="valueSet"/>
</extension>
<path value="Supply.statusCode.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="Supply.statusCode.sdtcValueSetVersion">
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-namespace">
<valueUri value="urn:hl7-org:sdtc"/>
</extension>
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-name">
<valueString value="valueSetVersion"/>
</extension>
<path value="Supply.statusCode.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="Supply.statusCode.originalText">
<path value="Supply.statusCode.originalText"/>
<label value="Original Text"/>
<definition
value="The text or phrase used as the basis for the coding."/>
<min value="0"/>
<max value="0"/>
<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="Supply.statusCode.qualifier">
<path value="Supply.statusCode.qualifier"/>
<label value="Qualifier"/>
<definition
value="Specifies additional codes that increase the specificity of the the primary code."/>
<min value="0"/>
<max value="0"/>
<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="Supply.statusCode.translation">
<path value="Supply.statusCode.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="0"/>
<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="Supply.effectiveTime">
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-defaulttype">
<valueCanonical
value="http://hl7.org/cda/stds/core/StructureDefinition/SXCM-TS"/>
</extension>
<path value="Supply.effectiveTime"/>
<representation value="typeAttr"/>
<comment
value="SHOULD contain zero or one [0..1] effectiveTime (CONF:4537-7456)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.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="Supply.priorityCode">
<path value="Supply.priorityCode"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.priorityCode"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/CE"/>
</type>
<binding>
<strength value="example"/>
<valueSet value="http://terminology.hl7.org/ValueSet/v3-ActPriority"/>
</binding>
</element>
<element id="Supply.repeatNumber">
<path value="Supply.repeatNumber"/>
<short
value="In "EVN" (event) mood, the repeatNumber is the number of dispenses. For example, a repeatNumber of "3" indicates the third dispense."/>
<comment
value="SHOULD contain zero or one [0..1] repeatNumber (CONF:4537-7457)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.repeatNumber"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/IVL-INT"/>
</type>
</element>
<element id="Supply.independentInd">
<path value="Supply.independentInd"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.independentInd"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/BL"/>
</type>
</element>
<element id="Supply.quantity">
<path value="Supply.quantity"/>
<comment
value="SHOULD contain zero or one [0..1] quantity (CONF:4537-7458)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.quantity"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/PQ"/>
</type>
</element>
<element id="Supply.expectedUseTime">
<path value="Supply.expectedUseTime"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.expectedUseTime"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/IVL-TS"/>
</type>
</element>
<element id="Supply.product">
<path value="Supply.product"/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Supply.product"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/InfrastructureRoot"/>
</type>
</element>
<element id="Supply.product.nullFlavor">
<path value="Supply.product.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.product.realmCode">
<path value="Supply.product.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="Supply.product.typeId">
<path value="Supply.product.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>
<constraint>
<key value="II-1"/>
<severity value="error"/>
<human
value="An II instance must have either a root or an nullFlavor."/>
<expression value="root.exists() or nullFlavor.exists()"/>
<source
value="http://hl7.org/cda/stds/core/StructureDefinition/Supply"/>
</constraint>
</element>
<element id="Supply.product.typeId.nullFlavor">
<path value="Supply.product.typeId.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.product.typeId.assigningAuthorityName">
<path value="Supply.product.typeId.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="Supply.product.typeId.displayable">
<path value="Supply.product.typeId.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="Supply.product.typeId.root">
<path value="Supply.product.typeId.root"/>
<representation value="xmlAttr"/>
<label value="Root"/>
<definition value="Identifies the type as an HL7 Registered model"/>
<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>
<fixedString value="2.16.840.1.113883.1.3"/>
</element>
<element id="Supply.product.typeId.extension">
<path value="Supply.product.typeId.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="1"/>
<max value="1"/>
<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="Supply.product.templateId">
<path value="Supply.product.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="Supply.product.typeCode">
<path value="Supply.product.typeCode"/>
<representation value="xmlAttr"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.product.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="PRD"/>
<binding>
<strength value="required"/>
<valueSet
value="http://terminology.hl7.org/ValueSet/v3-ParticipationTargetDirect"/>
</binding>
</element>
<element id="Supply.product.manufacturedProduct">
<path value="Supply.product.manufacturedProduct"/>
<short value="Base for all types and resources"/>
<definition
value="Defines the basic properties of every data value. This is an abstract type, meaning that no value can be just a data value without belonging to any concrete type. Every concrete type is a specialization of this general abstract DataValue type."/>
<comment
value="The product, if present, SHALL contain exactly one [1..1] Medication Information (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.23:2014-06-09) (CONF:4537-15607)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Supply.product.manufacturedProduct"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/ManufacturedProduct"/>
<profile
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationInformation"/>
<profile
value="http://hl7.org/cda/us/ccda/StructureDefinition/ImmunizationMedicationInformation"/>
</type>
<constraint>
<key value="product-choice"/>
<severity value="error"/>
<human
value="manufacturedLabeledDrug and manufacturedMaterial are mutually exclusive (one must be present)"/>
<expression
value="(manufacturedLabeledDrug | manufacturedMaterial).count() = 1"/>
<source
value="http://hl7.org/cda/stds/core/StructureDefinition/ManufacturedProduct"/>
</constraint>
<isModifier value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Supply.subject">
<path value="Supply.subject"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.subject"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Subject"/>
</type>
</element>
<element id="Supply.specimen">
<path value="Supply.specimen"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.specimen"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Specimen"/>
</type>
</element>
<element id="Supply.performer">
<path value="Supply.performer"/>
<comment
value="MAY contain zero or one [0..1] performer (CONF:4537-7461)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.performer"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Performer2"/>
</type>
</element>
<element id="Supply.performer.nullFlavor">
<path value="Supply.performer.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.performer.realmCode">
<path value="Supply.performer.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="Supply.performer.typeId">
<path value="Supply.performer.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>
<constraint>
<key value="II-1"/>
<severity value="error"/>
<human
value="An II instance must have either a root or an nullFlavor."/>
<expression value="root.exists() or nullFlavor.exists()"/>
<source
value="http://hl7.org/cda/stds/core/StructureDefinition/InfrastructureRoot"/>
</constraint>
</element>
<element id="Supply.performer.typeId.nullFlavor">
<path value="Supply.performer.typeId.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.performer.typeId.assigningAuthorityName">
<path value="Supply.performer.typeId.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="Supply.performer.typeId.displayable">
<path value="Supply.performer.typeId.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="Supply.performer.typeId.root">
<path value="Supply.performer.typeId.root"/>
<representation value="xmlAttr"/>
<label value="Root"/>
<definition value="Identifies the type as an HL7 Registered model"/>
<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>
<fixedString value="2.16.840.1.113883.1.3"/>
</element>
<element id="Supply.performer.typeId.extension">
<path value="Supply.performer.typeId.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="1"/>
<max value="1"/>
<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="Supply.performer.templateId">
<path value="Supply.performer.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="Supply.performer.typeCode">
<path value="Supply.performer.typeCode"/>
<representation value="xmlAttr"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Performer2.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="PRF"/>
<binding>
<strength value="required"/>
<valueSet
value="http://terminology.hl7.org/ValueSet/v3-ParticipationPhysicalPerformer"/>
</binding>
</element>
<element id="Supply.performer.sdtcFunctionCode">
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-namespace">
<valueUri value="urn:hl7-org:sdtc"/>
</extension>
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-name">
<valueString value="functionCode"/>
</extension>
<path value="Supply.performer.sdtcFunctionCode"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Performer2.sdtcFunctionCode"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/CE"/>
</type>
</element>
<element id="Supply.performer.time">
<path value="Supply.performer.time"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Performer2.time"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/IVL-TS"/>
</type>
</element>
<element id="Supply.performer.modeCode">
<path value="Supply.performer.modeCode"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Performer2.modeCode"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/CE"/>
</type>
</element>
<element id="Supply.performer.assignedEntity">
<path value="Supply.performer.assignedEntity"/>
<comment
value="The performer, if present, SHALL contain exactly one [1..1] assignedEntity (CONF:4537-7467)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Performer2.assignedEntity"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/AssignedEntity"/>
</type>
<constraint>
<key value="should-addr"/>
<severity value="warning"/>
<human value="SHOULD contain addr"/>
<expression value="addr.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
</element>
<element id="Supply.performer.assignedEntity.nullFlavor">
<path value="Supply.performer.assignedEntity.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.performer.assignedEntity.realmCode">
<path value="Supply.performer.assignedEntity.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="Supply.performer.assignedEntity.typeId">
<path value="Supply.performer.assignedEntity.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>
<constraint>
<key value="II-1"/>
<severity value="error"/>
<human
value="An II instance must have either a root or an nullFlavor."/>
<expression value="root.exists() or nullFlavor.exists()"/>
<source
value="http://hl7.org/cda/stds/core/StructureDefinition/InfrastructureRoot"/>
</constraint>
</element>
<element id="Supply.performer.assignedEntity.typeId.nullFlavor">
<path value="Supply.performer.assignedEntity.typeId.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element
id="Supply.performer.assignedEntity.typeId.assigningAuthorityName">
<path
value="Supply.performer.assignedEntity.typeId.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="Supply.performer.assignedEntity.typeId.displayable">
<path value="Supply.performer.assignedEntity.typeId.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="Supply.performer.assignedEntity.typeId.root">
<path value="Supply.performer.assignedEntity.typeId.root"/>
<representation value="xmlAttr"/>
<label value="Root"/>
<definition value="Identifies the type as an HL7 Registered model"/>
<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>
<fixedString value="2.16.840.1.113883.1.3"/>
</element>
<element id="Supply.performer.assignedEntity.typeId.extension">
<path value="Supply.performer.assignedEntity.typeId.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="1"/>
<max value="1"/>
<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="Supply.performer.assignedEntity.templateId">
<path value="Supply.performer.assignedEntity.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="Supply.performer.assignedEntity.classCode">
<path value="Supply.performer.assignedEntity.classCode"/>
<representation value="xmlAttr"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="AssignedEntity.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="ASSIGNED"/>
<binding>
<strength value="required"/>
<valueSet
value="http://terminology.hl7.org/ValueSet/v3-RoleClassAssignedEntity"/>
</binding>
</element>
<element id="Supply.performer.assignedEntity.id">
<path value="Supply.performer.assignedEntity.id"/>
<min value="1"/>
<max value="*"/>
<base>
<path value="AssignedEntity.id"/>
<min value="1"/>
<max value="*"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
</type>
</element>
<element id="Supply.performer.assignedEntity.sdtcIdentifiedBy">
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-namespace">
<valueUri value="urn:hl7-org:sdtc"/>
</extension>
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-name">
<valueString value="identifiedBy"/>
</extension>
<path value="Supply.performer.assignedEntity.sdtcIdentifiedBy"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="AssignedEntity.sdtcIdentifiedBy"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/IdentifiedBy"/>
</type>
</element>
<element id="Supply.performer.assignedEntity.code">
<path value="Supply.performer.assignedEntity.code"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="AssignedEntity.code"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/CE"/>
</type>
<binding>
<strength value="example"/>
<valueSet value="http://hl7.org/cda/stds/core/ValueSet/CDARoleCode"/>
</binding>
</element>
<element id="Supply.performer.assignedEntity.addr">
<path value="Supply.performer.assignedEntity.addr"/>
<short value="Base for all types and resources"/>
<definition
value="Mailing and home or office addresses. A sequence of address parts, such as street or post office Box, city, postal code, country, etc."/>
<comment
value="This assignedEntity SHOULD contain zero or one [0..1] US Realm Address (AD.US.FIELDED) (identifier: urn:oid:2.16.840.1.113883.10.20.22.5.2) (CONF:4537-7468)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="AssignedEntity.addr"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/AD"/>
<profile
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</type>
<constraint>
<key value="shall-city"/>
<severity value="error"/>
<human value="SHALL contain exactly one [1..1] city (CONF:81-7292)."/>
<expression value="nullFlavor.exists() or item.city.count() = 1"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</constraint>
<constraint>
<key value="shall-streetAddressLine"/>
<severity value="error"/>
<human
value="SHALL contain at least one and not more than 4 streetAddressLine (CONF:81-7291)."/>
<expression
value="nullFlavor.exists() or (item.streetAddressLine.count() >= 1 and item.streetAddressLine.count() <= 4)"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</constraint>
<constraint>
<key value="should-use"/>
<severity value="warning"/>
<human value="SHOULD contain @use"/>
<expression value="nullFlavor.exists() or use.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</constraint>
<constraint>
<key value="should-country"/>
<severity value="warning"/>
<human value="SHOULD contain country"/>
<expression value="nullFlavor.exists() or item.country.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</constraint>
<constraint>
<key value="81-7296"/>
<severity value="error"/>
<human
value="**SHALL NOT** have mixed content except for white space (CONF:81-7296)"/>
<expression value="item.xmlText.empty()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</constraint>
<constraint>
<key value="81-10024"/>
<severity value="error"/>
<human
value="If the country is US, the state element is required and SHALL be selected from ValueSet StateValueSet but SHOULD have @nullFlavor if the state is unknown. If country is not specified, it's assumed to be US. If country is something other than US, the state MAY be present but MAY be bound to different vocabularies (CONF:81-10024)."/>
<expression
value="nullFlavor.exists() or (item.country.exists() and item.country.xmlText != 'US' and item.country.xmlText != 'USA') or item.state.exists(nullFlavor.exists() or xmlText.memberOf('http://hl7.org/fhir/us/core/ValueSet/us-core-usps-state'))"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</constraint>
<constraint>
<key value="81-10025"/>
<severity value="error"/>
<human
value="If the country is US, the postalCode element is required but SHOULD have @nullFlavor if the postalCode is unknown. If country is not specified, it's assumed to be US. If country is something other than US, the postalCode MAY be present but MAY be bound to different vocabularies (CONF:81-10025)."/>
<expression
value="nullFlavor.exists() or (item.country.exists() and item.country.xmlText != 'US' and item.country.xmlText != 'USA') or item.postalCode.exists(nullFlavor.exists() or xmlText.matches('[0-9]{5}(-[0-9]{4})?'))"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</constraint>
<constraint>
<key value="shall-max-ad-parts"/>
<severity value="error"/>
<human
value="SHALL have at most one of each: state, city, postalCode, and country"/>
<expression
value="(item.state.empty() or item.state.count() = 1) and (item.city.empty() or item.city.count() = 1) and (item.postalCode.empty() or item.postalCode.count() = 1) and (item.country.empty() or item.country.count() = 1)"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</constraint>
<isModifier value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Supply.performer.assignedEntity.telecom">
<path value="Supply.performer.assignedEntity.telecom"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="AssignedEntity.telecom"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/TEL"/>
</type>
</element>
<element id="Supply.performer.assignedEntity.assignedPerson">
<path value="Supply.performer.assignedEntity.assignedPerson"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="AssignedEntity.assignedPerson"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Person"/>
</type>
</element>
<element id="Supply.performer.assignedEntity.representedOrganization">
<path value="Supply.performer.assignedEntity.representedOrganization"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="AssignedEntity.representedOrganization"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Organization"/>
</type>
</element>
<element id="Supply.performer.assignedEntity.sdtcPatient">
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-namespace">
<valueUri value="urn:hl7-org:sdtc"/>
</extension>
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-name">
<valueString value="patient"/>
</extension>
<path value="Supply.performer.assignedEntity.sdtcPatient"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="AssignedEntity.sdtcPatient"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/fhir/StructureDefinition/Base"/>
</type>
</element>
<element id="Supply.performer.assignedEntity.sdtcPatient.id">
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-namespace">
<valueUri value="urn:hl7-org:sdtc"/>
</extension>
<path value="Supply.performer.assignedEntity.sdtcPatient.id"/>
<min value="1"/>
<max value="1"/>
<base>
<path value="AssignedEntity.sdtcPatient.id"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
</type>
</element>
<element id="Supply.author">
<path value="Supply.author"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.author"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Author"/>
</type>
</element>
<element id="Supply.informant">
<path value="Supply.informant"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.informant"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Informant"/>
</type>
</element>
<element id="Supply.participant">
<path value="Supply.participant"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.participant"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Participant2"/>
</type>
</element>
<element id="Supply.entryRelationship">
<path value="Supply.entryRelationship"/>
<slicing>
<discriminator>
<type value="profile"/>
<path value="supply"/>
</discriminator>
<discriminator>
<type value="value"/>
<path value="typeCode"/>
</discriminator>
<rules value="open"/>
</slicing>
<comment
value="MAY contain zero or one [0..1] entryRelationship (CONF:4537-7473) such that it"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.entryRelationship"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1">
<path value="Supply.entryRelationship"/>
<sliceName value="entryRelationship1"/>
<short value="entryRelationship"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Supply.entryRelationship"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1.nullFlavor">
<path value="Supply.entryRelationship.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element id="Supply.entryRelationship:entryRelationship1.realmCode">
<path value="Supply.entryRelationship.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="Supply.entryRelationship:entryRelationship1.typeId">
<path value="Supply.entryRelationship.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>
<constraint>
<key value="II-1"/>
<severity value="error"/>
<human
value="An II instance must have either a root or an nullFlavor."/>
<expression value="root.exists() or nullFlavor.exists()"/>
<source
value="http://hl7.org/cda/stds/core/StructureDefinition/InfrastructureRoot"/>
</constraint>
</element>
<element
id="Supply.entryRelationship:entryRelationship1.typeId.nullFlavor">
<path value="Supply.entryRelationship.typeId.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://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"/>
</binding>
</element>
<element
id="Supply.entryRelationship:entryRelationship1.typeId.assigningAuthorityName">
<path value="Supply.entryRelationship.typeId.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="Supply.entryRelationship:entryRelationship1.typeId.displayable">
<path value="Supply.entryRelationship.typeId.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="Supply.entryRelationship:entryRelationship1.typeId.root">
<path value="Supply.entryRelationship.typeId.root"/>
<representation value="xmlAttr"/>
<label value="Root"/>
<definition value="Identifies the type as an HL7 Registered model"/>
<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>
<fixedString value="2.16.840.1.113883.1.3"/>
</element>
<element
id="Supply.entryRelationship:entryRelationship1.typeId.extension">
<path value="Supply.entryRelationship.typeId.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="1"/>
<max value="1"/>
<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="Supply.entryRelationship:entryRelationship1.templateId">
<path value="Supply.entryRelationship.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="Supply.entryRelationship:entryRelationship1.typeCode">
<path value="Supply.entryRelationship.typeCode"/>
<representation value="xmlAttr"/>
<comment
value="SHALL contain exactly one [1..1] @typeCode="REFR" (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:4537-7474)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="EntryRelationship.typeCode"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
<profile
value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
</type>
<fixedCode value="REFR"/>
<binding>
<strength value="required"/>
<valueSet
value="http://terminology.hl7.org/ValueSet/v3-xActRelationshipEntryRelationship"/>
</binding>
</element>
<element id="Supply.entryRelationship:entryRelationship1.inversionInd">
<path value="Supply.entryRelationship.inversionInd"/>
<representation value="xmlAttr"/>
<definition
value="The entryRelationship.inversionInd can be set to "true" to indicate that the relationship should be interpreted as if the roles of the source and target entries were reversed."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.inversionInd"/>
<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="Supply.entryRelationship:entryRelationship1.contextConductionInd">
<path value="Supply.entryRelationship.contextConductionInd"/>
<representation value="xmlAttr"/>
<definition
value="The entryRelationship.contextConductionInd differs from the otherwise common use of this attribute in that in all other cases where this attribute is used, the value is fixed at "true", whereas here the value is defaulted to "true", and can be changed to "false" when referencing an entry in the same document. Setting the context conduction to false when referencing an entry in the same document keeps clear the fact that the referenced object retains its original context."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.contextConductionInd"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="boolean"/>
<profile
value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
</type>
<defaultValueBoolean value="true"/>
</element>
<element id="Supply.entryRelationship:entryRelationship1.negationInd">
<path value="Supply.entryRelationship.negationInd"/>
<representation value="xmlAttr"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.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="Supply.entryRelationship:entryRelationship1.sequenceNumber">
<path value="Supply.entryRelationship.sequenceNumber"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.sequenceNumber"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/INT"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1.seperatableInd">
<path value="Supply.entryRelationship.seperatableInd"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.seperatableInd"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/BL"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1.act">
<path value="Supply.entryRelationship.act"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.act"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/Act"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1.encounter">
<path value="Supply.entryRelationship.encounter"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.encounter"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Encounter"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1.observation">
<path value="Supply.entryRelationship.observation"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.observation"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Observation"/>
</type>
</element>
<element
id="Supply.entryRelationship:entryRelationship1.observationMedia">
<path value="Supply.entryRelationship.observationMedia"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.observationMedia"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/ObservationMedia"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1.organizer">
<path value="Supply.entryRelationship.organizer"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.organizer"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Organizer"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1.procedure">
<path value="Supply.entryRelationship.procedure"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.procedure"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Procedure"/>
</type>
</element>
<element
id="Supply.entryRelationship:entryRelationship1.regionOfInterest">
<path value="Supply.entryRelationship.regionOfInterest"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.regionOfInterest"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/RegionOfInterest"/>
</type>
</element>
<element
id="Supply.entryRelationship:entryRelationship1.substanceAdministration">
<path value="Supply.entryRelationship.substanceAdministration"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="EntryRelationship.substanceAdministration"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/SubstanceAdministration"/>
</type>
</element>
<element id="Supply.entryRelationship:entryRelationship1.supply">
<path value="Supply.entryRelationship.supply"/>
<short value="Base for all types and resources"/>
<definition
value="Defines the basic properties of every data value. This is an abstract type, meaning that no value can be just a data value without belonging to any concrete type. Every concrete type is a specialization of this general abstract DataValue type."/>
<comment
value="SHALL contain exactly one [1..1] Medication Supply Order (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.17:2014-06-09) (CONF:4537-15606)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="EntryRelationship.supply"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Supply"/>
<profile
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationSupplyOrder"/>
</type>
<constraint>
<key value="should-text-ref-value"/>
<severity value="warning"/>
<human value="SHOULD contain text/reference/@value"/>
<expression value="text.reference.value.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationSupplyOrder"/>
</constraint>
<constraint>
<key value="should-repeatNumber"/>
<severity value="warning"/>
<human value="SHOULD contain repeatNumber"/>
<expression value="repeatNumber.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationSupplyOrder"/>
</constraint>
<constraint>
<key value="should-quantity"/>
<severity value="warning"/>
<human value="SHOULD contain quantity"/>
<expression value="quantity.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationSupplyOrder"/>
</constraint>
<isModifier value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Supply.reference">
<path value="Supply.reference"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.reference"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Reference"/>
</type>
</element>
<element id="Supply.precondition">
<path value="Supply.precondition"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.precondition"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Precondition"/>
</type>
</element>
<element id="Supply.sdtcInFulfillmentOf1">
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-namespace">
<valueUri value="urn:hl7-org:sdtc"/>
</extension>
<extension
url="http://hl7.org/fhir/tools/StructureDefinition/xml-name">
<valueString value="inFulfillmentOf1"/>
</extension>
<path value="Supply.sdtcInFulfillmentOf1"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Supply.sdtcInFulfillmentOf1"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/InFulfillmentOf1"/>
</type>
</element>
</snapshot>
<differential>
<element id="Supply">
<path value="Supply"/>
<constraint>
<key value="should-text-ref-value"/>
<severity value="warning"/>
<human value="SHOULD contain text/reference/@value"/>
<expression value="text.reference.value.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
<constraint>
<key value="should-effectiveTime"/>
<severity value="warning"/>
<human value="SHOULD contain effectiveTime"/>
<expression value="effectiveTime.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
<constraint>
<key value="should-repeatNumber"/>
<severity value="warning"/>
<human value="SHOULD contain repeatNumber"/>
<expression value="repeatNumber.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
<constraint>
<key value="should-quantity"/>
<severity value="warning"/>
<human value="SHOULD contain quantity"/>
<expression value="quantity.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
</element>
<element id="Supply.templateId">
<path value="Supply.templateId"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="root"/>
</discriminator>
<discriminator>
<type value="value"/>
<path value="extension"/>
</discriminator>
<rules value="open"/>
</slicing>
<min value="1"/>
</element>
<element id="Supply.templateId:med-dispense">
<path value="Supply.templateId"/>
<sliceName value="med-dispense"/>
<min value="1"/>
<max value="1"/>
</element>
<element id="Supply.templateId:med-dispense.root">
<path value="Supply.templateId.root"/>
<min value="1"/>
<patternString value="2.16.840.1.113883.10.20.22.4.18"/>
</element>
<element id="Supply.templateId:med-dispense.extension">
<path value="Supply.templateId.extension"/>
<min value="1"/>
<patternString value="2023-05-01"/>
</element>
<element id="Supply.classCode">
<path value="Supply.classCode"/>
<comment
value="SHALL contain exactly one [1..1] @classCode="SPLY" (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:4537-7451)."/>
</element>
<element id="Supply.moodCode">
<path value="Supply.moodCode"/>
<comment
value="SHALL contain exactly one [1..1] @moodCode="EVN" (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:4537-7452)."/>
<fixedCode value="EVN"/>
</element>
<element id="Supply.id">
<path value="Supply.id"/>
<comment
value="SHALL contain at least one [1..*] id (CONF:4537-7454)."/>
<min value="1"/>
</element>
<element id="Supply.code">
<path value="Supply.code"/>
<short
value="The CDA base standard limits codes that can be used at CDA supply.statusCode which do not represent typical medication dispense statuses. In order to provide correct domain vocabulary and align with FHIR, CDA supply.statusCode is fixed to completed and the FHIR MedicationDispense status value set is used at supply.code."/>
<comment
value="SHALL contain exactly one [1..1] code, which SHALL be selected from ValueSet MedicationDispense Status Codes urn:oid:2.16.840.1.113883.4.642.3.1312 DYNAMIC (CONF:4537-32974)."/>
<min value="1"/>
<binding>
<strength value="required"/>
<valueSet
value="http://hl7.org/fhir/ValueSet/medicationdispense-status"/>
</binding>
</element>
<element id="Supply.text">
<path value="Supply.text"/>
<short
value="SHOULD reference the portion of section narrative text corresponding to this entry"/>
</element>
<element id="Supply.text.reference">
<path value="Supply.text.reference"/>
<constraint>
<key value="value-starts-octothorpe"/>
<severity value="error"/>
<human
value="If reference/@value is present, it SHALL begin with a '#' and SHALL point to its corresponding narrative"/>
<expression value="value.exists() implies value.startsWith('#')"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
</element>
<element id="Supply.statusCode">
<path value="Supply.statusCode"/>
<comment
value="SHALL contain exactly one [1..1] statusCode (CONF:4537-7455)."/>
<min value="1"/>
</element>
<element id="Supply.statusCode.code">
<path value="Supply.statusCode.code"/>
<comment
value="This statusCode SHALL contain exactly one [1..1] @code="completed" Completed (CodeSystem: HL7ActStatus urn:oid:2.16.840.1.113883.5.14 STATIC) (CONF:4537-32361)."/>
<min value="1"/>
<fixedCode value="completed"/>
</element>
<element id="Supply.effectiveTime">
<path value="Supply.effectiveTime"/>
<comment
value="SHOULD contain zero or one [0..1] effectiveTime (CONF:4537-7456)."/>
<max value="1"/>
</element>
<element id="Supply.repeatNumber">
<path value="Supply.repeatNumber"/>
<short
value="In "EVN" (event) mood, the repeatNumber is the number of dispenses. For example, a repeatNumber of "3" indicates the third dispense."/>
<comment
value="SHOULD contain zero or one [0..1] repeatNumber (CONF:4537-7457)."/>
</element>
<element id="Supply.quantity">
<path value="Supply.quantity"/>
<comment
value="SHOULD contain zero or one [0..1] quantity (CONF:4537-7458)."/>
</element>
<element id="Supply.product">
<path value="Supply.product"/>
<min value="1"/>
</element>
<element id="Supply.product.manufacturedProduct">
<path value="Supply.product.manufacturedProduct"/>
<comment
value="The product, if present, SHALL contain exactly one [1..1] Medication Information (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.23:2014-06-09) (CONF:4537-15607)."/>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/ManufacturedProduct"/>
<profile
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationInformation"/>
<profile
value="http://hl7.org/cda/us/ccda/StructureDefinition/ImmunizationMedicationInformation"/>
</type>
</element>
<element id="Supply.performer">
<path value="Supply.performer"/>
<comment
value="MAY contain zero or one [0..1] performer (CONF:4537-7461)."/>
<max value="1"/>
</element>
<element id="Supply.performer.assignedEntity">
<path value="Supply.performer.assignedEntity"/>
<comment
value="The performer, if present, SHALL contain exactly one [1..1] assignedEntity (CONF:4537-7467)."/>
<constraint>
<key value="should-addr"/>
<severity value="warning"/>
<human value="SHOULD contain addr"/>
<expression value="addr.exists()"/>
<source
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationDispense"/>
</constraint>
</element>
<element id="Supply.performer.assignedEntity.addr">
<path value="Supply.performer.assignedEntity.addr"/>
<comment
value="This assignedEntity SHOULD contain zero or one [0..1] US Realm Address (AD.US.FIELDED) (identifier: urn:oid:2.16.840.1.113883.10.20.22.5.2) (CONF:4537-7468)."/>
<max value="1"/>
<type>
<code value="http://hl7.org/cda/stds/core/StructureDefinition/AD"/>
<profile
value="http://hl7.org/cda/us/ccda/StructureDefinition/USRealmAddress"/>
</type>
</element>
<element id="Supply.entryRelationship">
<path value="Supply.entryRelationship"/>
<slicing>
<discriminator>
<type value="profile"/>
<path value="supply"/>
</discriminator>
<discriminator>
<type value="value"/>
<path value="typeCode"/>
</discriminator>
<rules value="open"/>
</slicing>
<comment
value="MAY contain zero or one [0..1] entryRelationship (CONF:4537-7473) such that it"/>
</element>
<element id="Supply.entryRelationship:entryRelationship1">
<path value="Supply.entryRelationship"/>
<sliceName value="entryRelationship1"/>
<short value="entryRelationship"/>
<min value="0"/>
<max value="1"/>
</element>
<element id="Supply.entryRelationship:entryRelationship1.typeCode">
<path value="Supply.entryRelationship.typeCode"/>
<comment
value="SHALL contain exactly one [1..1] @typeCode="REFR" (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:4537-7474)."/>
<fixedCode value="REFR"/>
</element>
<element id="Supply.entryRelationship:entryRelationship1.supply">
<path value="Supply.entryRelationship.supply"/>
<comment
value="SHALL contain exactly one [1..1] Medication Supply Order (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.17:2014-06-09) (CONF:4537-15606)."/>
<min value="1"/>
<type>
<code
value="http://hl7.org/cda/stds/core/StructureDefinition/Supply"/>
<profile
value="http://hl7.org/cda/us/ccda/StructureDefinition/MedicationSupplyOrder"/>
</type>
</element>
</differential>
</StructureDefinition>