Consolidated CDA Release 2.2
2.2 - CI Build United States of America flag

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

Resource Profile: EncounterActivity - XML Profile

Active as of 2022-05-13

XML representation of the 2.16.840.1.113883.10.20.22.4.49 resource profile.

Raw xml | Download



<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="2.16.840.1.113883.10.20.22.4.49"/>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" 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="http://hl7.org/fhir/R4/formats.html#table" 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="http://hl7.org/fhir/R4/formats.html#table" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" 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="http://hl7.org/fhir/R4/formats.html#table" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/R4/help16.png" 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_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter">Encounter</a><a name="Encounter"> </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 href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Encounter.html">CDAR2.Encounter</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_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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.classCode">classCode</a><a name="Encounter.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">1..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/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">ENC</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_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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.moodCode">moodCode</a><a name="Encounter.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">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/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </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_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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.templateId">Slices for templateId</a><a name="Encounter.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="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="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-II.html">II</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, 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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.templateId:primary" title="Slice primary">templateId:primary</a><a name="Encounter.templateId"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-II.html">II</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.templateId:primary.root">root</a><a name="Encounter.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..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/fhir/R4/datatypes.html#string">string</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.49</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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.templateId:primary.extension">extension</a><a name="Encounter.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..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/fhir/R4/datatypes.html#string">string</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">2015-08-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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.id">id</a><a name="Encounter.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..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-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_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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.code">code</a><a name="Encounter.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..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-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"><span style="font-weight:bold">Binding: </span><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.88.12.80.32/expansion">EncounterTypeCode</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.">preferred</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_bck111.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.code.originalText">originalText</a><a name="Encounter.code.originalText"> </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">0..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="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-ED.html">ED</a></td><td style="vertical-align: top; text-align : left; background-color: #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_bck1101.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_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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.code.originalText.reference">reference</a><a name="Encounter.code.originalText.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"/><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="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-TEL.html">TEL</a></td><td style="vertical-align: top; text-align : left; background-color: 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_bck11000.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_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.code.originalText.reference.value">value</a><a name="Encounter.code.originalText.reference.value"> </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="padding-left: 3px; padding-right: 3px; color: black; null" title="This element has or is affected by some invariants (1198-15972)">I</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..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/fhir/R4/datatypes.html#uri">uri</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">1198-15972: </span>This reference/@value **SHALL** begin with a '#' and **SHALL** point to its corresponding narrative (using the approach defined in CDA Release 2, section 4.3.5.1) (CONF:1198-15972).</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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.code.translation">translation</a><a name="Encounter.code.translation"> </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="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-CD.html">CD</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">The translation may exist to map the code of EncounterTypeCode (2.16.840.1.113883.3.88.12.80.32) value set to the code of Encounter Planned (2.16.840.1.113883.11.20.9.52) value set.</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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.effectiveTime">effectiveTime</a><a name="Encounter.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">1..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="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-IVL-TS.html">IVL_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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.dischargeDispositionCode">dischargeDispositionCode</a><a name="Encounter.dischargeDispositionCode"> </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="padding-left: 3px; padding-right: 3px; color: black; null" title="This element has or is affected by some invariants (1198-32177, 1198-32377)">I</span></td><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="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-CE.html">CE</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 prefix sdtc: SHALL be bound to the namespace “urn:hl7-org:sdtc”. The use of the namespace provides a necessary extension to CDA R2 for the use of the dischargeDispositionCode element<br/><span style="font-weight:bold">XML Namespace: </span>urn:hl7-org:sdtc<br/><span style="font-weight:bold">1198-32177: </span>This sdtc:dischargeDispositionCode **SHOULD** contain exactly [0..1] *code*, which **SHOULD** be selected from ValueSet 2.16.840.1.113883.3.88.12.80.33 NUBC UB-04 FL17-Patient Status (code system 2.16.840.1.113883.6.301.5) *DYNAMIC* or, if access to NUBC is unavailable, from CodeSystem 2.16.840.1.113883.12.112 HL7 Discharge Disposition (CONF:1198-32177).<br/><span style="font-weight:bold">1198-32377: </span>This sdtc:dischargeDispositionCode **SHOULD** contain exactly [0..1] *codeSystem*, which **SHOULD** be either CodeSystem: NUBC 2.16.840.1.113883.6.301.5 *OR* CodeSystem: HL7 Discharge Disposition 2.16.840.1.113883.12.112 (CONF:1198-32377).</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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.performer">performer</a><a name="Encounter.performer"> </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">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Performer2.html">Performer2</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_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: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.performer.assignedEntity">assignedEntity</a><a name="Encounter.performer.assignedEntity"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-AssignedEntity.html">AssignedEntity</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_bck1000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.performer.assignedEntity.code">code</a><a name="Encounter.performer.assignedEntity.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..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="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-CE.html">CE</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">Binding: </span><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.1066/expansion">Healthcare Provider Taxonomy</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.">preferred</a>)</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_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: white; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.participant">Slices for participant</a><a name="Encounter.participant"> </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="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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Participant2.html">Participant2</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; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by value:participantRole, value:typeCode</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_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: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.participant:location" title="Slice location">participant:location</a><a name="Encounter.participant"> </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">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Participant2.html">Participant2</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_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: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.participant:location.typeCode">typeCode</a><a name="Encounter.participant.typeCode"> </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/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">LOC</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_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_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.participant:location.participantRole">participantRole</a><a name="Encounter.participant.participantRole"> </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..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 href="StructureDefinition-2.16.840.1.113883.10.20.22.4.32.html" title="http://hl7.org/fhir/cda/StructureDefinition/ParticipantRole">ServiceDeliveryLocation</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_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: white; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.entryRelationship">Slices for entryRelationship</a><a name="Encounter.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"/><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-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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Element</span></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; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by value:act</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_bck035.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_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.entryRelationship:indication" title="Slice indication">entryRelationship:indication</a><a name="Encounter.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">0..*</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">Element</span></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_bck0350.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_vline_slicer.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: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.entryRelationship:indication.typeCode">typeCode</a><a name="Encounter.entryRelationship.typeCode"> </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/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">RSON</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_bck0340.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_vline_slicer.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: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.entryRelationship:indication.observation">observation</a><a name="Encounter.entryRelationship.observation"> </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..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 href="StructureDefinition-2.16.840.1.113883.10.20.22.4.19.html" title="http://hl7.org/fhir/cda/StructureDefinition/Observation">Indication</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_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-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.entryRelationship:diagnosis" title="Slice diagnosis">entryRelationship:diagnosis</a><a name="Encounter.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"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</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">Element</span></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_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: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.49-definitions.html#Encounter.entryRelationship:diagnosis.act">act</a><a name="Encounter.entryRelationship.act"> </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..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 href="StructureDefinition-2.16.840.1.113883.10.20.22.4.80.html" title="http://hl7.org/fhir/cda/StructureDefinition/Act">EncounterDiagnosis</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><td colspan="5" class="hierarchy"><br/><a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
  </text>
  <url
       value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.49"/>
  <identifier>
    <value value="urn:hl7ii:2.16.840.1.113883.10.20.22.4.49:2015-08-01"/>
  </identifier>
  <version value="2.2"/>
  <name value="EncounterActivity"/>
  <title value="Encounter Activity"/>
  <status value="active"/>
  <date value="2022-05-13T15:50:12+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 clinical statement describes an interaction between a patient and clinician. Interactions may include in-person encounters, telephone conversations, and email exchanges."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1"/>
  <kind value="resource"/>
  <abstract value="false"/>
  <type value="Encounter"/>
  <baseDefinition value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
  <derivation value="constraint"/>
  <snapshot>
    <element id="Encounter">
      <path value="Encounter"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Base"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <isModifier value="false"/>
    </element>
    <element id="Encounter.classCode">
      <path value="Encounter.classCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @classCode=&quot;ENC&quot; (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:1198-8710)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.classCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <fixedCode value="ENC"/>
      <patternCode value="ENC"/>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActClass"/>
      </binding>
    </element>
    <element id="Encounter.moodCode">
      <path value="Encounter.moodCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @moodCode=&quot;EVN&quot; (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:1198-8711)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.moodCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="EVN"/>
    </element>
    <element id="Encounter.realmCode">
      <path value="Encounter.realmCode"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.realmCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CS"/>
      </type>
    </element>
    <element id="Encounter.typeId">
      <path value="Encounter.typeId"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.typeId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.templateId">
      <path value="Encounter.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="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.templateId:primary">
      <path value="Encounter.templateId"/>
      <sliceName value="primary"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
      <requirements
                    value="SHALL contain exactly one [1..1] templateId (CONF:1198-8712) such that it"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.templateId:primary.nullFlavor">
      <path value="Encounter.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"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Encounter.templateId:primary.assigningAuthorityName">
      <path value="Encounter.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"/>
      </type>
    </element>
    <element id="Encounter.templateId:primary.displayable">
      <path value="Encounter.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"/>
      </type>
    </element>
    <element id="Encounter.templateId:primary.root">
      <path value="Encounter.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."/>
      <requirements
                    value="SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.10.20.22.4.49&quot; (CONF:1198-26353)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="II.root"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <patternString value="2.16.840.1.113883.10.20.22.4.49"/>
    </element>
    <element id="Encounter.templateId:primary.extension">
      <path value="Encounter.templateId.extension"/>
      <representation value="xmlAttr"/>
      <label value="Extension"/>
      <definition
                  value="A character string as a unique identifier within the scope of the identifier root."/>
      <requirements
                    value="SHALL contain exactly one [1..1] @extension=&quot;2015-08-01&quot; (CONF:1198-32546)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="II.extension"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <patternString value="2015-08-01"/>
    </element>
    <element id="Encounter.id">
      <path value="Encounter.id"/>
      <requirements
                    value="SHALL contain at least one [1..*] id (CONF:1198-8713)."/>
      <min value="1"/>
      <max value="*"/>
      <base>
        <path value="Encounter.id"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.code">
      <path value="Encounter.code"/>
      <requirements
                    value="SHALL contain exactly one [1..1] code, which SHOULD be selected from ValueSet EncounterTypeCode urn:oid:2.16.840.1.113883.3.88.12.80.32 DYNAMIC (CONF:1198-8714)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
      <binding>
        <strength value="preferred"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.80.32"/>
      </binding>
    </element>
    <element id="Encounter.code.nullFlavor">
      <path value="Encounter.code.nullFlavor"/>
      <representation value="xmlAttr"/>
      <label value="Exceptional Value Detail"/>
      <definition
                  value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ANY.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Encounter.code.code">
      <path value="Encounter.code.code"/>
      <representation value="xmlAttr"/>
      <label value="Code"/>
      <definition
                  value="The plain code symbol defined by the code system. For example, &quot;784.0&quot; is the code symbol of the ICD-9 code &quot;784.0&quot; for headache."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Encounter.code.codeSystem">
      <path value="Encounter.code.codeSystem"/>
      <representation value="xmlAttr"/>
      <label value="Code System"/>
      <definition value="Specifies the code system that defines the code."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.codeSystem"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Encounter.code.codeSystemName">
      <path value="Encounter.code.codeSystemName"/>
      <representation value="xmlAttr"/>
      <label value="Code System Name"/>
      <definition value="The common name of the coding system."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.codeSystemName"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Encounter.code.codeSystemVersion">
      <path value="Encounter.code.codeSystemVersion"/>
      <representation value="xmlAttr"/>
      <label value="Code System Version"/>
      <definition
                  value="If applicable, a version descriptor defined specifically for the given code system."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.codeSystemVersion"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Encounter.code.displayName">
      <path value="Encounter.code.displayName"/>
      <representation value="xmlAttr"/>
      <label value="Display Name"/>
      <definition
                  value="A name or title for the code, under which the sending system shows the code value to its users."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.displayName"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Encounter.code.sdtcValueSet">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
        <valueUri value="urn:hl7-org:sdtc"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
        <valueString value="valueSet"/>
      </extension>
      <path value="Encounter.code.sdtcValueSet"/>
      <representation value="xmlAttr"/>
      <definition
                  value="The valueSet extension adds an attribute for elements with a CD dataType which indicates the particular value set constraining the coded concept."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.valueSet"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Encounter.code.sdtcValueSetVersion">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
        <valueUri value="urn:hl7-org:sdtc"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
        <valueString value="valueSetVersion"/>
      </extension>
      <path value="Encounter.code.sdtcValueSetVersion"/>
      <representation value="xmlAttr"/>
      <definition
                  value="The valueSetVersion extension adds an attribute for elements with a CD dataType which indicates the version of the particular value set constraining the coded concept."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.sdtcValueSetVersion"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Encounter.code.originalText">
      <path value="Encounter.code.originalText"/>
      <label value="Original Text"/>
      <definition value="The text or phrase used as the basis for the coding."/>
      <requirements
                    value="This code SHOULD contain zero or one [0..1] originalText (CONF:1198-8719)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.originalText"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ED"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.nullFlavor">
      <path value="Encounter.code.originalText.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"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Encounter.code.originalText.charset">
      <path value="Encounter.code.originalText.charset"/>
      <representation value="xmlAttr"/>
      <label value="Charset"/>
      <definition
                  value="For character-based encoding types, this property specifies the character set and character encoding used. The charset shall be identified by an Internet Assigned Numbers Authority (IANA) Charset Registration [] in accordance with RFC 2978 []."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ED.charset"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.compression">
      <path value="Encounter.code.originalText.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"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-CompressionAlgorithm"/>
      </binding>
    </element>
    <element id="Encounter.code.originalText.integrityCheck">
      <path value="Encounter.code.originalText.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"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.integrityCheckAlgorithm">
      <path value="Encounter.code.originalText.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"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-IntegrityCheckAlgorithm"/>
      </binding>
    </element>
    <element id="Encounter.code.originalText.language">
      <path value="Encounter.code.originalText.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"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.mediaType">
      <path value="Encounter.code.originalText.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"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.representation">
      <path value="Encounter.code.originalText.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"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.data[x]">
      <path value="Encounter.code.originalText.data[x]"/>
      <representation value="xmlText"/>
      <definition
                  value="Data that is primarily intended for human interpretation or for further machine processing is outside the scope of HL7. This includes unformatted or formatted written language, multimedia data, or structured information as defined by a different standard (e.g., XML-signatures.)"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ED.data[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <type>
        <code value="base64Binary"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.reference">
      <path value="Encounter.code.originalText.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."/>
      <requirements
                    value="The originalText, if present, SHOULD contain zero or one [0..1] reference (CONF:1198-15970)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ED.reference"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/TEL"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.reference.nullFlavor">
      <path value="Encounter.code.originalText.reference.nullFlavor"/>
      <representation value="xmlAttr"/>
      <label value="Exceptional Value Detail"/>
      <definition
                  value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ANY.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Encounter.code.originalText.reference.value">
      <path value="Encounter.code.originalText.reference.value"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="The reference, if present, SHOULD contain zero or one [0..1] @value (CONF:1198-15971)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TEL.value"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <constraint>
        <key value="1198-15972"/>
        <severity value="error"/>
        <human
               value="This reference/@value **SHALL** begin with a '#' and **SHALL** point to its corresponding narrative (using the approach defined in CDA Release 2, section 4.3.5.1) (CONF:1198-15972)."/>
      </constraint>
    </element>
    <element id="Encounter.code.originalText.reference.useablePeriod">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-defaulttype">
        <valueString value="SXPR-TS"/>
      </extension>
      <path value="Encounter.code.originalText.reference.useablePeriod"/>
      <representation value="typeAttr"/>
      <label value="Useable Period"/>
      <definition
                  value="Specifies the periods of time during which the telecommunication address can be used. For a telephone number, this can indicate the time of day in which the party can be reached on that telephone. For a web address, it may specify a time range in which the web content is promised to be available under the given address."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="TEL.useablePeriod"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/IVL-TS"/>
      </type>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/EIVL-TS"/>
      </type>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/PIVL-TS"/>
      </type>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/SXPR-TS"/>
      </type>
    </element>
    <element id="Encounter.code.originalText.reference.use">
      <path value="Encounter.code.originalText.reference.use"/>
      <representation value="xmlAttr"/>
      <label value="Use Code"/>
      <definition
                  value="One or more codes advising a system or user which telecommunication address in a set of like addresses to select for a given telecommunication need."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="TEL.use"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-AddressUse"/>
      </binding>
    </element>
    <element id="Encounter.code.originalText.thumbnail">
      <path value="Encounter.code.originalText.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/fhir/cda/StructureDefinition/ED"/>
      </type>
    </element>
    <element id="Encounter.code.qualifier">
      <path value="Encounter.code.qualifier"/>
      <label value="Qualifier"/>
      <definition
                  value="Specifies additional codes that increase the specificity of the the primary code."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CD.qualifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CR"/>
      </type>
    </element>
    <element id="Encounter.code.translation">
      <path value="Encounter.code.translation"/>
      <representation value="typeAttr"/>
      <label value="Translation"/>
      <short
             value="The translation may exist to map the code of EncounterTypeCode (2.16.840.1.113883.3.88.12.80.32) value set to the code of Encounter Planned (2.16.840.1.113883.11.20.9.52) value set."/>
      <definition
                  value="A set of other concept descriptors that translate this concept descriptor into other code systems."/>
      <requirements
                    value="This code MAY contain zero or one [0..1] translation (CONF:1198-32323)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.translation"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
    </element>
    <element id="Encounter.text">
      <path value="Encounter.text"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ED"/>
      </type>
    </element>
    <element id="Encounter.statusCode">
      <path value="Encounter.statusCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.statusCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CS"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActStatus"/>
      </binding>
    </element>
    <element id="Encounter.effectiveTime">
      <path value="Encounter.effectiveTime"/>
      <requirements
                    value="SHALL contain exactly one [1..1] effectiveTime (CONF:1198-8715)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.effectiveTime"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/IVL-TS"/>
      </type>
    </element>
    <element id="Encounter.dischargeDispositionCode">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
        <valueUri value="urn:hl7-org:sdtc"/>
      </extension>
      <path value="Encounter.dischargeDispositionCode"/>
      <label
             value="The prefix sdtc: SHALL be bound to the namespace “urn:hl7-org:sdtc”. The use of the namespace provides a necessary extension to CDA R2 for the use of the dischargeDispositionCode element"/>
      <short
             value="The prefix sdtc: SHALL be bound to the namespace “urn:hl7-org:sdtc”. The use of the namespace provides a necessary extension to CDA R2 for the use of the dischargeDispositionCode element"/>
      <requirements
                    value="MAY contain zero or one [0..1] sdtc:dischargeDispositionCode (CONF:1198-32176)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.dischargeDispositionCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
      <constraint>
        <key value="1198-32177"/>
        <severity value="warning"/>
        <human
               value="This sdtc:dischargeDispositionCode **SHOULD** contain exactly [0..1] *code*, which **SHOULD** be selected from ValueSet 2.16.840.1.113883.3.88.12.80.33 NUBC UB-04 FL17-Patient Status (code system 2.16.840.1.113883.6.301.5) *DYNAMIC* or, if access to NUBC is unavailable, from CodeSystem 2.16.840.1.113883.12.112 HL7 Discharge Disposition (CONF:1198-32177)."/>
      </constraint>
      <constraint>
        <key value="1198-32377"/>
        <severity value="warning"/>
        <human
               value="This sdtc:dischargeDispositionCode **SHOULD** contain exactly [0..1] *codeSystem*, which **SHOULD** be either CodeSystem: NUBC 2.16.840.1.113883.6.301.5 *OR* CodeSystem: HL7 Discharge Disposition 2.16.840.1.113883.12.112 (CONF:1198-32377)."/>
      </constraint>
    </element>
    <element id="Encounter.priorityCode">
      <path value="Encounter.priorityCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.priorityCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
      <binding>
        <strength value="extensible"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActPriority"/>
      </binding>
    </element>
    <element id="Encounter.subject">
      <path value="Encounter.subject"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.subject"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
    </element>
    <element id="Encounter.subject.typeCode">
      <path value="Encounter.subject.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.subject.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="SBJ"/>
      <fixedCode value="SBJ"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ParticipationTargetSubject"/>
      </binding>
    </element>
    <element id="Encounter.subject.contextControlCode">
      <path value="Encounter.subject.contextControlCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.subject.contextControlCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="OP"/>
      <fixedCode value="OP"/>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ContextControl"/>
      </binding>
    </element>
    <element id="Encounter.subject.awarenessCode">
      <path value="Encounter.subject.awarenessCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.subject.awarenessCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
      <binding>
        <strength value="extensible"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-TargetAwareness"/>
      </binding>
    </element>
    <element id="Encounter.subject.relatedSubject">
      <path value="Encounter.subject.relatedSubject"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.subject.relatedSubject"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/RelatedSubject"/>
      </type>
    </element>
    <element id="Encounter.specimen">
      <path value="Encounter.specimen"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.specimen"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Specimen"/>
      </type>
    </element>
    <element id="Encounter.performer">
      <path value="Encounter.performer"/>
      <requirements
                    value="MAY contain zero or more [0..*] performer (CONF:1198-8725)."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.performer"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Performer2"/>
      </type>
    </element>
    <element id="Encounter.performer.nullFlavor">
      <path value="Encounter.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="Performer2.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Encounter.performer.typeCode">
      <path value="Encounter.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/fhir/cda/StructureDefinition/cs"/>
      </type>
      <fixedCode value="PRF"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ParticipationPhysicalPerformer"/>
      </binding>
    </element>
    <element id="Encounter.performer.realmCode">
      <path value="Encounter.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="Performer2.realmCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CS"/>
      </type>
    </element>
    <element id="Encounter.performer.typeId">
      <path value="Encounter.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="Performer2.typeId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.performer.templateId">
      <path value="Encounter.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="Performer2.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.performer.functionCode">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
        <valueUri value="urn:hl7-org:sdtc"/>
      </extension>
      <path value="Encounter.performer.functionCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Performer2.functionCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
    </element>
    <element id="Encounter.performer.time">
      <path value="Encounter.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/fhir/cda/StructureDefinition/IVL-TS"/>
      </type>
    </element>
    <element id="Encounter.performer.modeCode">
      <path value="Encounter.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/fhir/cda/StructureDefinition/CE"/>
      </type>
    </element>
    <element id="Encounter.performer.assignedEntity">
      <path value="Encounter.performer.assignedEntity"/>
      <requirements
                    value="The performer, if present, SHALL contain exactly one [1..1] assignedEntity (CONF:1198-8726)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Performer2.assignedEntity"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity"/>
      </type>
    </element>
    <element id="Encounter.performer.assignedEntity.classCode">
      <path value="Encounter.performer.assignedEntity.classCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="AssignedEntity.classCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="ASSIGNED"/>
      <fixedCode value="ASSIGNED"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-RoleClassAssignedEntity"/>
      </binding>
    </element>
    <element id="Encounter.performer.assignedEntity.templateId">
      <path value="Encounter.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="AssignedEntity.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.performer.assignedEntity.id">
      <path value="Encounter.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/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.performer.assignedEntity.sdtcIdentifiedBy">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
        <valueUri value="urn:hl7-org:sdtc"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
        <valueString value="identifiedBy"/>
      </extension>
      <path value="Encounter.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/fhir/cda/StructureDefinition/IdentifiedBy"/>
      </type>
    </element>
    <element id="Encounter.performer.assignedEntity.code">
      <path value="Encounter.performer.assignedEntity.code"/>
      <requirements
                    value="This assignedEntity MAY contain zero or one [0..1] code, which SHOULD be selected from ValueSet Healthcare Provider Taxonomy urn:oid:2.16.840.1.114222.4.11.1066 DYNAMIC (CONF:1198-8727)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="AssignedEntity.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
      <binding>
        <strength value="preferred"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.1066"/>
      </binding>
    </element>
    <element id="Encounter.performer.assignedEntity.addr">
      <path value="Encounter.performer.assignedEntity.addr"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="AssignedEntity.addr"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/AD"/>
      </type>
    </element>
    <element id="Encounter.performer.assignedEntity.telecom">
      <path value="Encounter.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/fhir/cda/StructureDefinition/TEL"/>
      </type>
    </element>
    <element id="Encounter.performer.assignedEntity.assignedPerson">
      <path value="Encounter.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/fhir/cda/StructureDefinition/Person"/>
      </type>
    </element>
    <element id="Encounter.performer.assignedEntity.representedOrganization">
      <path value="Encounter.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/fhir/cda/StructureDefinition/Organization"/>
      </type>
    </element>
    <element id="Encounter.author">
      <path value="Encounter.author"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.author"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Author"/>
      </type>
    </element>
    <element id="Encounter.informant">
      <path value="Encounter.informant"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.informant"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
    </element>
    <element id="Encounter.informant.typeCode">
      <path value="Encounter.informant.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.informant.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="INF"/>
      <fixedCode value="INF"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ParticipationInformationGenerator"/>
      </binding>
    </element>
    <element id="Encounter.informant.contextControlCode">
      <path value="Encounter.informant.contextControlCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.informant.contextControlCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="OP"/>
      <fixedCode value="OP"/>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ContextControl"/>
      </binding>
    </element>
    <element id="Encounter.informant.assignedEntity">
      <path value="Encounter.informant.assignedEntity"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.informant.assignedEntity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity"/>
      </type>
    </element>
    <element id="Encounter.informant.relatedEntity">
      <path value="Encounter.informant.relatedEntity"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.informant.relatedEntity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/RelatedEntity"/>
      </type>
    </element>
    <element id="Encounter.participant">
      <path value="Encounter.participant"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="participantRole"/>
        </discriminator>
        <discriminator>
          <type value="value"/>
          <path value="typeCode"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.participant"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Participant2"/>
      </type>
    </element>
    <element id="Encounter.participant:location">
      <path value="Encounter.participant"/>
      <sliceName value="location"/>
      <requirements
                    value="SHOULD contain zero or more [0..*] participant (CONF:1198-8738) such that it"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.participant"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Participant2"/>
      </type>
    </element>
    <element id="Encounter.participant:location.nullFlavor">
      <path value="Encounter.participant.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="Participant2.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Encounter.participant:location.typeCode">
      <path value="Encounter.participant.typeCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;LOC&quot; Location (CodeSystem: HL7ParticipationType urn:oid:2.16.840.1.113883.5.90 STATIC) (CONF:1198-8740)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Participant2.typeCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="LOC"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ParticipationType"/>
      </binding>
    </element>
    <element id="Encounter.participant:location.contextControlCode">
      <path value="Encounter.participant.contextControlCode"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Participant2.contextControlCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <fixedCode value="OP"/>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ContextControl"/>
      </binding>
    </element>
    <element id="Encounter.participant:location.realmCode">
      <path value="Encounter.participant.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="Participant2.realmCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CS"/>
      </type>
    </element>
    <element id="Encounter.participant:location.typeId">
      <path value="Encounter.participant.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="Participant2.typeId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.participant:location.templateId">
      <path value="Encounter.participant.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="Participant2.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Encounter.participant:location.sdtcFunctionCode">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
        <valueUri value="urn:hl7-org:sdtc"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
        <valueString value="functionCode"/>
      </extension>
      <path value="Encounter.participant.sdtcFunctionCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Participant2.sdtcFunctionCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
    </element>
    <element id="Encounter.participant:location.time">
      <path value="Encounter.participant.time"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Participant2.time"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/IVL-TS"/>
      </type>
    </element>
    <element id="Encounter.participant:location.awarenessCode">
      <path value="Encounter.participant.awarenessCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Participant2.awarenessCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
    </element>
    <element id="Encounter.participant:location.participantRole">
      <path value="Encounter.participant.participantRole"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Service Delivery Location (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.32) (CONF:1198-14903)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Participant2.participantRole"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ParticipantRole"/>
        <profile
                 value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.32"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="Encounter.entryRelationship">
      <path value="Encounter.entryRelationship"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="act"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="enc-er-1"/>
        <severity value="error"/>
        <human
               value="Only one of observation, regionOfInterest, observationMedia, substanceAdministration, supply, procedure, encounter, organizer, and act"/>
        <expression
                    value="(observation | regionOfInterest | observationMedia | substanceAdministration | supply | procedure | encounter | organizer | act).count() = 1"/>
        <source value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </constraint>
    </element>
    <element id="Encounter.entryRelationship.typeCode">
      <path value="Encounter.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.inversionInd">
      <path value="Encounter.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.contextConductionInd">
      <path value="Encounter.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.contextConductionInd"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element id="Encounter.entryRelationship.sequenceNumber">
      <path value="Encounter.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/INT"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.negationInd">
      <path value="Encounter.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.seperatableInd">
      <path value="Encounter.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.observation">
      <path value="Encounter.entryRelationship.observation"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.observation"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Observation"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.regionOfInterest">
      <path value="Encounter.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.observationMedia">
      <path value="Encounter.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.substanceAdministration">
      <path value="Encounter.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.supply">
      <path value="Encounter.entryRelationship.supply"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Supply"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.procedure">
      <path value="Encounter.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.encounter">
      <path value="Encounter.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.organizer">
      <path value="Encounter.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship.act">
      <path value="Encounter.entryRelationship.act"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Act"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication">
      <path value="Encounter.entryRelationship"/>
      <sliceName value="indication"/>
      <requirements
                    value="MAY contain zero or more [0..*] entryRelationship (CONF:1198-8722) such that it"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="enc-er-1"/>
        <severity value="error"/>
        <human
               value="Only one of observation, regionOfInterest, observationMedia, substanceAdministration, supply, procedure, encounter, organizer, and act"/>
        <expression
                    value="(observation | regionOfInterest | observationMedia | substanceAdministration | supply | procedure | encounter | organizer | act).count() = 1"/>
        <source value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </constraint>
    </element>
    <element id="Encounter.entryRelationship:indication.typeCode">
      <path value="Encounter.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;RSON&quot; Has Reason (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:1198-8723)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="RSON"/>
    </element>
    <element id="Encounter.entryRelationship:indication.inversionInd">
      <path value="Encounter.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.contextConductionInd">
      <path value="Encounter.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.contextConductionInd"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element id="Encounter.entryRelationship:indication.sequenceNumber">
      <path value="Encounter.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/INT"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.negationInd">
      <path value="Encounter.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.seperatableInd">
      <path value="Encounter.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.observation">
      <path value="Encounter.entryRelationship.observation"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Indication (V2) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.19:2014-06-09) (CONF:1198-14899)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.observation"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Observation"/>
        <profile
                 value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.19"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="Encounter.entryRelationship:indication.regionOfInterest">
      <path value="Encounter.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.observationMedia">
      <path value="Encounter.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.substanceAdministration">
      <path value="Encounter.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.supply">
      <path value="Encounter.entryRelationship.supply"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Supply"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.procedure">
      <path value="Encounter.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.encounter">
      <path value="Encounter.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.organizer">
      <path value="Encounter.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:indication.act">
      <path value="Encounter.entryRelationship.act"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Act"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis">
      <path value="Encounter.entryRelationship"/>
      <sliceName value="diagnosis"/>
      <requirements
                    value="MAY contain zero or more [0..*] entryRelationship (CONF:1198-15492) such that it"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="enc-er-1"/>
        <severity value="error"/>
        <human
               value="Only one of observation, regionOfInterest, observationMedia, substanceAdministration, supply, procedure, encounter, organizer, and act"/>
        <expression
                    value="(observation | regionOfInterest | observationMedia | substanceAdministration | supply | procedure | encounter | organizer | act).count() = 1"/>
        <source value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </constraint>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.typeCode">
      <path value="Encounter.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.inversionInd">
      <path value="Encounter.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.contextConductionInd">
      <path value="Encounter.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.contextConductionInd"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.sequenceNumber">
      <path value="Encounter.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/INT"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.negationInd">
      <path value="Encounter.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.seperatableInd">
      <path value="Encounter.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.observation">
      <path value="Encounter.entryRelationship.observation"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.observation"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Observation"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.regionOfInterest">
      <path value="Encounter.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.observationMedia">
      <path value="Encounter.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.substanceAdministration">
      <path value="Encounter.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.supply">
      <path value="Encounter.entryRelationship.supply"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Supply"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.procedure">
      <path value="Encounter.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.encounter">
      <path value="Encounter.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.organizer">
      <path value="Encounter.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Encounter.entryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.act">
      <path value="Encounter.entryRelationship.act"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Encounter Diagnosis (V3) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.80:2015-08-01) (CONF:1198-15973)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.entryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Act"/>
        <profile
                 value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.80"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="Encounter.reference">
      <path value="Encounter.reference"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.reference"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
    </element>
    <element id="Encounter.reference.typeCode">
      <path value="Encounter.reference.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Encounter.reference.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
    </element>
    <element id="Encounter.reference.seperatableInd">
      <path value="Encounter.reference.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.reference.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Encounter.reference.externalAct">
      <path value="Encounter.reference.externalAct"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.reference.externalAct"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ExternalAct"/>
      </type>
    </element>
    <element id="Encounter.reference.externalObservation">
      <path value="Encounter.reference.externalObservation"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.reference.externalObservation"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ExternalObservation"/>
      </type>
    </element>
    <element id="Encounter.reference.externalProcedure">
      <path value="Encounter.reference.externalProcedure"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.reference.externalProcedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ExternalProcedure"/>
      </type>
    </element>
    <element id="Encounter.reference.externalDocument">
      <path value="Encounter.reference.externalDocument"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Encounter.reference.externalDocument"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ExternalDocument"/>
      </type>
    </element>
    <element id="Encounter.precondition">
      <path value="Encounter.precondition"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Encounter.precondition"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Precondition"/>
      </type>
    </element>
  </snapshot>
  <differential>
    <element id="Encounter">
      <path value="Encounter"/>
    </element>
    <element id="Encounter.classCode">
      <path value="Encounter.classCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @classCode=&quot;ENC&quot; (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:1198-8710)."/>
      <min value="1"/>
      <max value="1"/>
      <patternCode value="ENC"/>
    </element>
    <element id="Encounter.moodCode">
      <path value="Encounter.moodCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @moodCode=&quot;EVN&quot; (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:1198-8711)."/>
      <min value="1"/>
      <max value="1"/>
      <patternCode value="EVN"/>
    </element>
    <element id="Encounter.templateId">
      <path value="Encounter.templateId"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="root"/>
        </discriminator>
        <discriminator>
          <type value="value"/>
          <path value="extension"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
    </element>
    <element id="Encounter.templateId:primary">
      <path value="Encounter.templateId"/>
      <sliceName value="primary"/>
      <requirements
                    value="SHALL contain exactly one [1..1] templateId (CONF:1198-8712) such that it"/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Encounter.templateId:primary.root">
      <path value="Encounter.templateId.root"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.10.20.22.4.49&quot; (CONF:1198-26353)."/>
      <min value="1"/>
      <max value="1"/>
      <patternString value="2.16.840.1.113883.10.20.22.4.49"/>
    </element>
    <element id="Encounter.templateId:primary.extension">
      <path value="Encounter.templateId.extension"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @extension=&quot;2015-08-01&quot; (CONF:1198-32546)."/>
      <min value="1"/>
      <max value="1"/>
      <patternString value="2015-08-01"/>
    </element>
    <element id="Encounter.id">
      <path value="Encounter.id"/>
      <requirements
                    value="SHALL contain at least one [1..*] id (CONF:1198-8713)."/>
      <min value="1"/>
      <max value="*"/>
    </element>
    <element id="Encounter.code">
      <path value="Encounter.code"/>
      <requirements
                    value="SHALL contain exactly one [1..1] code, which SHOULD be selected from ValueSet EncounterTypeCode urn:oid:2.16.840.1.113883.3.88.12.80.32 DYNAMIC (CONF:1198-8714)."/>
      <min value="1"/>
      <max value="1"/>
      <binding>
        <strength value="preferred"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.80.32"/>
      </binding>
    </element>
    <element id="Encounter.code.originalText">
      <path value="Encounter.code.originalText"/>
      <requirements
                    value="This code SHOULD contain zero or one [0..1] originalText (CONF:1198-8719)."/>
      <min value="0"/>
      <max value="1"/>
    </element>
    <element id="Encounter.code.originalText.reference">
      <path value="Encounter.code.originalText.reference"/>
      <requirements
                    value="The originalText, if present, SHOULD contain zero or one [0..1] reference (CONF:1198-15970)."/>
      <min value="0"/>
      <max value="1"/>
    </element>
    <element id="Encounter.code.originalText.reference.value">
      <path value="Encounter.code.originalText.reference.value"/>
      <requirements
                    value="The reference, if present, SHOULD contain zero or one [0..1] @value (CONF:1198-15971)."/>
      <min value="0"/>
      <max value="1"/>
      <constraint>
        <key value="1198-15972"/>
        <severity value="error"/>
        <human
               value="This reference/@value **SHALL** begin with a '#' and **SHALL** point to its corresponding narrative (using the approach defined in CDA Release 2, section 4.3.5.1) (CONF:1198-15972)."/>
      </constraint>
    </element>
    <element id="Encounter.code.translation">
      <path value="Encounter.code.translation"/>
      <short
             value="The translation may exist to map the code of EncounterTypeCode (2.16.840.1.113883.3.88.12.80.32) value set to the code of Encounter Planned (2.16.840.1.113883.11.20.9.52) value set."/>
      <requirements
                    value="This code MAY contain zero or one [0..1] translation (CONF:1198-32323)."/>
      <min value="0"/>
      <max value="1"/>
    </element>
    <element id="Encounter.effectiveTime">
      <path value="Encounter.effectiveTime"/>
      <requirements
                    value="SHALL contain exactly one [1..1] effectiveTime (CONF:1198-8715)."/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Encounter.dischargeDispositionCode">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
        <valueUri value="urn:hl7-org:sdtc"/>
      </extension>
      <path value="Encounter.dischargeDispositionCode"/>
      <label
             value="The prefix sdtc: SHALL be bound to the namespace “urn:hl7-org:sdtc”. The use of the namespace provides a necessary extension to CDA R2 for the use of the dischargeDispositionCode element"/>
      <short
             value="The prefix sdtc: SHALL be bound to the namespace “urn:hl7-org:sdtc”. The use of the namespace provides a necessary extension to CDA R2 for the use of the dischargeDispositionCode element"/>
      <requirements
                    value="MAY contain zero or one [0..1] sdtc:dischargeDispositionCode (CONF:1198-32176)."/>
      <min value="0"/>
      <max value="1"/>
      <constraint>
        <key value="1198-32177"/>
        <severity value="warning"/>
        <human
               value="This sdtc:dischargeDispositionCode **SHOULD** contain exactly [0..1] *code*, which **SHOULD** be selected from ValueSet 2.16.840.1.113883.3.88.12.80.33 NUBC UB-04 FL17-Patient Status (code system 2.16.840.1.113883.6.301.5) *DYNAMIC* or, if access to NUBC is unavailable, from CodeSystem 2.16.840.1.113883.12.112 HL7 Discharge Disposition (CONF:1198-32177)."/>
      </constraint>
      <constraint>
        <key value="1198-32377"/>
        <severity value="warning"/>
        <human
               value="This sdtc:dischargeDispositionCode **SHOULD** contain exactly [0..1] *codeSystem*, which **SHOULD** be either CodeSystem: NUBC 2.16.840.1.113883.6.301.5 *OR* CodeSystem: HL7 Discharge Disposition 2.16.840.1.113883.12.112 (CONF:1198-32377)."/>
      </constraint>
    </element>
    <element id="Encounter.performer">
      <path value="Encounter.performer"/>
      <requirements
                    value="MAY contain zero or more [0..*] performer (CONF:1198-8725)."/>
      <min value="0"/>
      <max value="*"/>
    </element>
    <element id="Encounter.performer.assignedEntity">
      <path value="Encounter.performer.assignedEntity"/>
      <requirements
                    value="The performer, if present, SHALL contain exactly one [1..1] assignedEntity (CONF:1198-8726)."/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Encounter.performer.assignedEntity.code">
      <path value="Encounter.performer.assignedEntity.code"/>
      <requirements
                    value="This assignedEntity MAY contain zero or one [0..1] code, which SHOULD be selected from ValueSet Healthcare Provider Taxonomy urn:oid:2.16.840.1.114222.4.11.1066 DYNAMIC (CONF:1198-8727)."/>
      <min value="0"/>
      <max value="1"/>
      <binding>
        <strength value="preferred"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.1066"/>
      </binding>
    </element>
    <element id="Encounter.participant">
      <path value="Encounter.participant"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="participantRole"/>
        </discriminator>
        <discriminator>
          <type value="value"/>
          <path value="typeCode"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
    </element>
    <element id="Encounter.participant:location">
      <path value="Encounter.participant"/>
      <sliceName value="location"/>
      <requirements
                    value="SHOULD contain zero or more [0..*] participant (CONF:1198-8738) such that it"/>
      <min value="0"/>
      <max value="*"/>
    </element>
    <element id="Encounter.participant:location.typeCode">
      <path value="Encounter.participant.typeCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;LOC&quot; Location (CodeSystem: HL7ParticipationType urn:oid:2.16.840.1.113883.5.90 STATIC) (CONF:1198-8740)."/>
      <min value="1"/>
      <max value="1"/>
      <patternCode value="LOC"/>
    </element>
    <element id="Encounter.participant:location.participantRole">
      <path value="Encounter.participant.participantRole"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Service Delivery Location (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.32) (CONF:1198-14903)."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ParticipantRole"/>
        <profile
                 value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.32"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship">
      <path value="Encounter.entryRelationship"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="act"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
    </element>
    <element id="Encounter.entryRelationship:indication">
      <path value="Encounter.entryRelationship"/>
      <sliceName value="indication"/>
      <requirements
                    value="MAY contain zero or more [0..*] entryRelationship (CONF:1198-8722) such that it"/>
      <min value="0"/>
      <max value="*"/>
    </element>
    <element id="Encounter.entryRelationship:indication.typeCode">
      <path value="Encounter.entryRelationship.typeCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;RSON&quot; Has Reason (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:1198-8723)."/>
      <min value="1"/>
      <max value="1"/>
      <patternCode value="RSON"/>
    </element>
    <element id="Encounter.entryRelationship:indication.observation">
      <path value="Encounter.entryRelationship.observation"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Indication (V2) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.19:2014-06-09) (CONF:1198-14899)."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Observation"/>
        <profile
                 value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.19"/>
      </type>
    </element>
    <element id="Encounter.entryRelationship:diagnosis">
      <path value="Encounter.entryRelationship"/>
      <sliceName value="diagnosis"/>
      <requirements
                    value="MAY contain zero or more [0..*] entryRelationship (CONF:1198-15492) such that it"/>
      <min value="0"/>
      <max value="*"/>
    </element>
    <element id="Encounter.entryRelationship:diagnosis.act">
      <path value="Encounter.entryRelationship.act"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Encounter Diagnosis (V3) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.80:2015-08-01) (CONF:1198-15973)."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Act"/>
        <profile
                 value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.80"/>
      </type>
    </element>
  </differential>
</StructureDefinition>