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: AllergyIntoleranceObservation - XML Profile

Active as of 2022-05-13

XML representation of the 2.16.840.1.113883.10.20.22.4.7 resource profile.

Raw xml | Download



<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="2.16.840.1.113883.10.20.22.4.7"/>
  <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.7-definitions.html#Observation">Observation</a><a name="Observation"> </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="StructureDefinition-2.16.840.1.113883.10.20.24.3.90.html">SubstanceOrDeviceAllergyIntoleranceObservation</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.7-definitions.html#Observation.classCode">classCode</a><a name="Observation.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">OBS</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.7-definitions.html#Observation.moodCode">moodCode</a><a name="Observation.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_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.7-definitions.html#Observation.negationInd">negationInd</a><a name="Observation.negationInd"> </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="http://hl7.org/fhir/R4/datatypes.html#boolean">boolean</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Use negationInd=&quot;true&quot; to indicate that the allergy was not observed.</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.7-definitions.html#Observation.templateId">Slices for templateId</a><a name="Observation.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"><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-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"><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: #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.7-definitions.html#Observation.templateId:secondary" title="Slice secondary">templateId:secondary</a><a name="Observation.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">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-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_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.7-definitions.html#Observation.templateId:secondary.root">root</a><a name="Observation.templateId.root"> </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">2.16.840.1.113883.10.20.22.4.7</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_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Simple Extension" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.templateId:secondary.extension">extension</a><a name="Observation.templateId.extension"> </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">2014-06-09</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.7-definitions.html#Observation.id">id</a><a name="Observation.id"> </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..*</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_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.7-definitions.html#Observation.code">code</a><a name="Observation.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..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-CD.html">CD</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.code.code">code</a><a name="Observation.code.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..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">ASSERTION</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.code.codeSystem">codeSystem</a><a name="Observation.code.codeSystem"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..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.5.4</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.statusCode">statusCode</a><a name="Observation.statusCode"> </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-CS.html">CS</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.statusCode.code">code</a><a name="Observation.statusCode.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..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">completed</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.effectiveTime">effectiveTime</a><a name="Observation.effectiveTime"> </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-IVL-TS.html">IVL_TS</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">If the allergy/intolerance is known to be resolved, but the date of resolution is not known, then the high element SHALL be present, and the nullFlavor attribute SHALL be set to 'UNK'.</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_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.effectiveTime.low">low</a><a name="Observation.effectiveTime.low"> </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-TS.html">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">The effectiveTime/low (a.k.a. &quot;onset date&quot;) asserts when the allergy/intolerance became biologically active.</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.7-definitions.html#Observation.effectiveTime.high">high</a><a name="Observation.effectiveTime.high"> </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-TS.html">TS</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 effectiveTime/high (a.k.a. &quot;resolution date&quot;) asserts when the allergy/intolerance became biologically resolved.</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_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.7-definitions.html#Observation.value">value</a><a name="Observation.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"/><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="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-CD.html">CD</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">The consumable participant points to the precise allergen or substance of intolerance. Because the consumable and the reaction are more clinically relevant than a categorization of the allergy/adverse event type, many systems will simply assign a fixed value here (e.g., &quot;allergy to substance&quot;).<br/><span style="font-weight:bold">Binding: </span><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.88.12.3221.6.2/expansion">Allergy and Intolerance Type</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: 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_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.7-definitions.html#Observation.author">author</a><a name="Observation.author"> </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"><a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.119.html" title="http://hl7.org/fhir/cda/StructureDefinition/Author">AuthorParticipation</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_bck03.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.entryRelationship">Slices for entryRelationship</a><a name="Observation.entryRelationship"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">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"><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by profile:observation</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck025.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.entryRelationship:criticality" title="Slice criticality">entryRelationship:criticality</a><a name="Observation.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..1</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_bck0250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.entryRelationship:criticality.typeCode">typeCode</a><a name="Observation.entryRelationship.typeCode"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">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">SUBJ</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_bck0250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-2.16.840.1.113883.10.20.22.4.7-definitions.html#Observation.entryRelationship:criticality.inversionInd">inversionInd</a><a name="Observation.entryRelationship.inversionInd"> </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#boolean">boolean</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">true</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_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.7-definitions.html#Observation.entryRelationship:criticality.observation">observation</a><a name="Observation.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.145.html" title="http://hl7.org/fhir/cda/StructureDefinition/Observation">CriticalityObservation</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.7"/>
  <identifier>
    <value value="urn:hl7ii:2.16.840.1.113883.10.20.22.4.7:2014-06-09"/>
  </identifier>
  <version value="2.2"/>
  <name value="AllergyIntoleranceObservation"/>
  <title value="Allergy - Intolerance Observation"/>
  <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 template reflects a discrete observation about a patient's allergy or intolerance. Because it is a discrete observation, it will have a statusCode of &quot;completed&quot;. The effectiveTime, also referred to as the &quot;biologically relevant time&quot; is the time at which the observation holds for the patient. For a provider seeing a patient in the clinic today, observing a history of penicillin allergy that developed five years ago, the effectiveTime is five years ago. 

The effectiveTime of the Allergy - Intolerance Observation is the definitive indication of whether or not the underlying allergy/intolerance is resolved. If known to be resolved, then an effectiveTime/high would be present. If the date of resolution is not known, then effectiveTime/high will be present with a nullFlavor of &quot;UNK&quot;.

The agent responsible for an allergy or adverse reaction is not always a manufactured material (for example, food allergies), nor is it necessarily consumed. The following constraints reflect limitations in the base CDA R2 specification, and should be used to represent any type of responsible agent, i.e., use playingEntity classCode = &quot;MMAT&quot; for all agents, manufactured or not."/>
  <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="Observation"/>
  <baseDefinition
                  value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.24.3.90"/>
  <derivation value="constraint"/>
  <snapshot>
    <element id="Observation">
      <path value="Observation"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Base"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <isModifier value="false"/>
    </element>
    <element id="Observation.classCode">
      <path value="Observation.classCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @classCode=&quot;OBS&quot; Observation (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:1098-7379)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.classCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="OBS"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ActClassObservation"/>
      </binding>
    </element>
    <element id="Observation.moodCode">
      <path value="Observation.moodCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @moodCode=&quot;EVN&quot; Event (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:1098-7380)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.moodCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="EVN"/>
    </element>
    <element id="Observation.negationInd">
      <path value="Observation.negationInd"/>
      <representation value="xmlAttr"/>
      <label
             value="Use negationInd=&quot;true&quot; to indicate that the allergy was not observed."/>
      <short
             value="Use negationInd=&quot;true&quot; to indicate that the allergy was not observed."/>
      <requirements
                    value="MAY contain zero or one [0..1] @negationInd (CONF:1098-31526)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Observation.realmCode">
      <path value="Observation.realmCode"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.realmCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CS"/>
      </type>
    </element>
    <element id="Observation.typeId">
      <path value="Observation.typeId"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.typeId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.templateId">
      <path value="Observation.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="Observation.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.templateId:primary">
      <path value="Observation.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:1098-16305) such that it"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.templateId:primary.nullFlavor">
      <path value="Observation.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="Observation.templateId:primary.assigningAuthorityName">
      <path value="Observation.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="Observation.templateId:primary.displayable">
      <path value="Observation.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="Observation.templateId:primary.root">
      <path value="Observation.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.24.3.90&quot; (CONF:1098-16306)."/>
      <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.24.3.90"/>
    </element>
    <element id="Observation.templateId:primary.extension">
      <path value="Observation.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;2014-06-09&quot; (CONF:1098-32527)."/>
      <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="2014-06-09"/>
    </element>
    <element id="Observation.templateId:secondary">
      <path value="Observation.templateId"/>
      <sliceName value="secondary"/>
      <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:1098-7381) such that it"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.templateId:secondary.nullFlavor">
      <path value="Observation.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="Observation.templateId:secondary.assigningAuthorityName">
      <path value="Observation.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="Observation.templateId:secondary.displayable">
      <path value="Observation.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="Observation.templateId:secondary.root">
      <path value="Observation.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.7&quot; (CONF:1098-10488)."/>
      <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.7"/>
    </element>
    <element id="Observation.templateId:secondary.extension">
      <path value="Observation.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;2014-06-09&quot; (CONF:1098-32526)."/>
      <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="2014-06-09"/>
    </element>
    <element id="Observation.id">
      <path value="Observation.id"/>
      <requirements
                    value="SHALL contain at least one [1..*] id (CONF:1098-7382)."/>
      <min value="1"/>
      <max value="*"/>
      <base>
        <path value="Observation.id"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.code">
      <path value="Observation.code"/>
      <representation value="typeAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] code (CONF:1098-15947)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.code"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
      <binding>
        <strength value="extensible"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ObservationType"/>
      </binding>
    </element>
    <element id="Observation.code.nullFlavor">
      <path value="Observation.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="Observation.code.code">
      <path value="Observation.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."/>
      <requirements
                    value="This code SHALL contain exactly one [1..1] @code=&quot;ASSERTION&quot; Assertion (CONF:1098-15948)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CD.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <patternString value="ASSERTION"/>
    </element>
    <element id="Observation.code.codeSystem">
      <path value="Observation.code.codeSystem"/>
      <representation value="xmlAttr"/>
      <label value="Code System"/>
      <definition value="Specifies the code system that defines the code."/>
      <requirements
                    value="This code SHALL contain exactly one [1..1] @codeSystem=&quot;2.16.840.1.113883.5.4&quot; (CodeSystem: HL7ActCode urn:oid:2.16.840.1.113883.5.4) (CONF:1098-32153)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CD.codeSystem"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <patternString value="2.16.840.1.113883.5.4"/>
    </element>
    <element id="Observation.code.codeSystemName">
      <path value="Observation.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="Observation.code.codeSystemVersion">
      <path value="Observation.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="Observation.code.displayName">
      <path value="Observation.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="Observation.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="Observation.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="Observation.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="Observation.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="Observation.code.originalText">
      <path value="Observation.code.originalText"/>
      <label value="Original Text"/>
      <definition value="The text or phrase used as the basis for the coding."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.originalText"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ED"/>
      </type>
    </element>
    <element id="Observation.code.qualifier">
      <path value="Observation.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="Observation.code.translation">
      <path value="Observation.code.translation"/>
      <representation value="typeAttr"/>
      <label value="Translation"/>
      <definition
                  value="A set of other concept descriptors that translate this concept descriptor into other code systems."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CD.translation"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
    </element>
    <element id="Observation.derivationExpr">
      <path value="Observation.derivationExpr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.derivationExpr"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ST"/>
      </type>
    </element>
    <element id="Observation.text">
      <path value="Observation.text"/>
      <representation value="typeAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ED"/>
      </type>
    </element>
    <element id="Observation.statusCode">
      <path value="Observation.statusCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] statusCode (CONF:1098-19084)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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="Observation.statusCode.nullFlavor">
      <path value="Observation.statusCode.nullFlavor"/>
      <representation value="xmlAttr"/>
      <label value="Exceptional Value Detail"/>
      <definition
                  value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ANY.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Observation.statusCode.code">
      <path value="Observation.statusCode.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."/>
      <requirements
                    value="This statusCode SHALL contain exactly one [1..1] @code=&quot;completed&quot; Completed (CodeSystem: HL7ActStatus urn:oid:2.16.840.1.113883.5.14 STATIC) (CONF:1098-19085)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CD.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <patternString value="completed"/>
    </element>
    <element id="Observation.statusCode.codeSystem">
      <path value="Observation.statusCode.codeSystem"/>
      <representation value="xmlAttr"/>
      <label value="Code System"/>
      <definition value="Specifies the code system that defines the code."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="CD.codeSystem"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Observation.statusCode.codeSystemName">
      <path value="Observation.statusCode.codeSystemName"/>
      <representation value="xmlAttr"/>
      <label value="Code System Name"/>
      <definition value="The common name of the coding system."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="CD.codeSystemName"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Observation.statusCode.codeSystemVersion">
      <path value="Observation.statusCode.codeSystemVersion"/>
      <representation value="xmlAttr"/>
      <label value="Code System Version"/>
      <definition
                  value="If applicable, a version descriptor defined specifically for the given code system."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="CD.codeSystemVersion"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Observation.statusCode.displayName">
      <path value="Observation.statusCode.displayName"/>
      <representation value="xmlAttr"/>
      <label value="Display Name"/>
      <definition
                  value="A name or title for the code, under which the sending system shows the code value to its users."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="CD.displayName"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Observation.statusCode.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="Observation.statusCode.sdtcValueSet"/>
      <representation value="xmlAttr"/>
      <definition
                  value="The valueSet extension adds an attribute for elements with a CD dataType which indicates the particular value set constraining the coded concept."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.valueSet"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Observation.statusCode.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="Observation.statusCode.sdtcValueSetVersion"/>
      <representation value="xmlAttr"/>
      <definition
                  value="The valueSetVersion extension adds an attribute for elements with a CD dataType which indicates the version of the particular value set constraining the coded concept."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.sdtcValueSetVersion"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="Observation.statusCode.originalText">
      <path value="Observation.statusCode.originalText"/>
      <label value="Original Text"/>
      <definition value="The text or phrase used as the basis for the coding."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="CD.originalText"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ED"/>
      </type>
    </element>
    <element id="Observation.statusCode.qualifier">
      <path value="Observation.statusCode.qualifier"/>
      <label value="Qualifier"/>
      <definition
                  value="Specifies additional codes that increase the specificity of the the primary code."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="CD.qualifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CR"/>
      </type>
    </element>
    <element id="Observation.statusCode.translation">
      <path value="Observation.statusCode.translation"/>
      <representation value="typeAttr"/>
      <label value="Translation"/>
      <definition
                  value="A set of other concept descriptors that translate this concept descriptor into other code systems."/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="CD.translation"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
    </element>
    <element id="Observation.effectiveTime">
      <path value="Observation.effectiveTime"/>
      <label
             value="If the allergy/intolerance is known to be resolved, but the date of resolution is not known, then the high element SHALL be present, and the nullFlavor attribute SHALL be set to 'UNK'."/>
      <short
             value="If the allergy/intolerance is known to be resolved, but the date of resolution is not known, then the high element SHALL be present, and the nullFlavor attribute SHALL be set to 'UNK'."/>
      <requirements
                    value="SHALL contain exactly one [1..1] effectiveTime (CONF:1098-7387)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.effectiveTime"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/IVL-TS"/>
      </type>
    </element>
    <element id="Observation.effectiveTime.nullFlavor">
      <path value="Observation.effectiveTime.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="Observation.effectiveTime.value">
      <extension
                 url="http://www.healthintersections.com.au/fhir/StructureDefinition/elementdefinition-dateformat">
        <valueString value="v3"/>
      </extension>
      <path value="Observation.effectiveTime.value"/>
      <representation value="xmlAttr"/>
      <definition
                  value="A quantity specifying a point on the axis of natural time. A point in time is most often represented as a calendar expression."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TS.value"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
    </element>
    <element id="Observation.effectiveTime.inclusive">
      <path value="Observation.effectiveTime.inclusive"/>
      <representation value="xmlAttr"/>
      <definition
                  value="Specifies whether the limit is included in the interval (interval is closed) or excluded from the interval (interval is open)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="TS.inclusive"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Observation.effectiveTime.operator">
      <path value="Observation.effectiveTime.operator"/>
      <representation value="xmlAttr"/>
      <definition
                  value="A code specifying whether the set component is included (union) or excluded (set-difference) from the set, or other set operations with the current set component and the set as constructed from the representation stream up to the current point."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="SXCM_TS.operator"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
    </element>
    <element id="Observation.effectiveTime.low">
      <path value="Observation.effectiveTime.low"/>
      <label
             value="The effectiveTime/low (a.k.a. &quot;onset date&quot;) asserts when the allergy/intolerance became biologically active."/>
      <short
             value="The effectiveTime/low (a.k.a. &quot;onset date&quot;) asserts when the allergy/intolerance became biologically active."/>
      <definition value="This is the low limit of the interval."/>
      <requirements
                    value="This effectiveTime SHALL contain exactly one [1..1] low (CONF:1098-31538)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="IVL_TS.low"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/TS"/>
      </type>
    </element>
    <element id="Observation.effectiveTime.high">
      <path value="Observation.effectiveTime.high"/>
      <label
             value="The effectiveTime/high (a.k.a. &quot;resolution date&quot;) asserts when the allergy/intolerance became biologically resolved."/>
      <short
             value="The effectiveTime/high (a.k.a. &quot;resolution date&quot;) asserts when the allergy/intolerance became biologically resolved."/>
      <definition value="This is the high limit of the interval."/>
      <requirements
                    value="This effectiveTime MAY contain zero or one [0..1] high (CONF:1098-31539)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="IVL_TS.high"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/TS"/>
      </type>
    </element>
    <element id="Observation.effectiveTime.width">
      <path value="Observation.effectiveTime.width"/>
      <label value="Width"/>
      <definition
                  value="The difference between high and low boundary. The purpose of distinguishing a width property is to handle all cases of incomplete information symmetrically. In any interval representation only two of the three properties high, low, and width need to be stated and the third can be derived."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="IVL_TS.width"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/PQ"/>
      </type>
    </element>
    <element id="Observation.effectiveTime.center">
      <path value="Observation.effectiveTime.center"/>
      <label value="Central Value"/>
      <definition
                  value="The arithmetic mean of the interval (low plus high divided by 2). The purpose of distinguishing the center as a semantic property is for conversions of intervals from and to point values."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="IVL_TS.center"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/TS"/>
      </type>
    </element>
    <element id="Observation.priorityCode">
      <path value="Observation.priorityCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.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="Observation.repeatNumber">
      <path value="Observation.repeatNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.repeatNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/IVL-INT"/>
      </type>
    </element>
    <element id="Observation.languageCode">
      <path value="Observation.languageCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.languageCode"/>
        <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-HumanLanguage"/>
      </binding>
    </element>
    <element id="Observation.value">
      <path value="Observation.value"/>
      <representation value="typeAttr"/>
      <label
             value="The consumable participant points to the precise allergen or substance of intolerance. Because the consumable and the reaction are more clinically relevant than a categorization of the allergy/adverse event type, many systems will simply assign a fixed value here (e.g., &quot;allergy to substance&quot;)."/>
      <short
             value="The consumable participant points to the precise allergen or substance of intolerance. Because the consumable and the reaction are more clinically relevant than a categorization of the allergy/adverse event type, many systems will simply assign a fixed value here (e.g., &quot;allergy to substance&quot;)."/>
      <requirements
                    value="SHALL contain exactly one [1..1] value with @xsi:type=&quot;CD&quot;, where the code SHALL be selected from ValueSet Allergy and Intolerance Type urn:oid:2.16.840.1.113883.3.88.12.3221.6.2 DYNAMIC (CONF:1098-7390)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.value"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.3221.6.2"/>
      </binding>
    </element>
    <element id="Observation.value.nullFlavor">
      <path value="Observation.value.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="Observation.value.code">
      <path value="Observation.value.code"/>
      <representation value="xmlAttr"/>
      <label
             value="Many systems will simply assign a fixed value here (e.g., &quot;allergy to substance&quot;)."/>
      <short
             value="Many systems will simply assign a fixed value here (e.g., &quot;allergy to substance&quot;)."/>
      <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."/>
      <requirements
                    value="This value SHALL contain exactly one [1..1] @code, which SHALL be selected from ValueSet Allergy and Intolerance Type urn:oid:2.16.840.1.113883.3.88.12.3221.6.2 DYNAMIC (CONF:1098-16317)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CD.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.3221.6.2"/>
      </binding>
    </element>
    <element id="Observation.value.codeSystem">
      <path value="Observation.value.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="Observation.value.codeSystemName">
      <path value="Observation.value.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="Observation.value.codeSystemVersion">
      <path value="Observation.value.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="Observation.value.displayName">
      <path value="Observation.value.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="Observation.value.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="Observation.value.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="Observation.value.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="Observation.value.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="Observation.value.originalText">
      <path value="Observation.value.originalText"/>
      <label value="Original Text"/>
      <definition value="The text or phrase used as the basis for the coding."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.originalText"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ED"/>
      </type>
    </element>
    <element id="Observation.value.qualifier">
      <path value="Observation.value.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="Observation.value.translation">
      <path value="Observation.value.translation"/>
      <representation value="typeAttr"/>
      <label value="Translation"/>
      <definition
                  value="A set of other concept descriptors that translate this concept descriptor into other code systems."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="CD.translation"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
    </element>
    <element id="Observation.interpretationCode">
      <path value="Observation.interpretationCode"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.interpretationCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ObservationInterpretation"/>
      </binding>
    </element>
    <element id="Observation.methodCode">
      <path value="Observation.methodCode"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.methodCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
      <binding>
        <strength value="extensible"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ObservationMethod"/>
      </binding>
    </element>
    <element id="Observation.targetSiteCode">
      <path value="Observation.targetSiteCode"/>
      <definition value="Drawn from concept domain ActSite"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.targetSiteCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.subject"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
    </element>
    <element id="Observation.subject.typeCode">
      <path value="Observation.subject.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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="Observation.subject.contextControlCode">
      <path value="Observation.subject.contextControlCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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="Observation.subject.awarenessCode">
      <path value="Observation.subject.awarenessCode"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.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="Observation.subject.relatedSubject">
      <path value="Observation.subject.relatedSubject"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.subject.relatedSubject"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/RelatedSubject"/>
      </type>
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.specimen"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Specimen"/>
      </type>
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.performer"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Performer2"/>
      </type>
    </element>
    <element id="Observation.author">
      <path value="Observation.author"/>
      <requirements
                    value="SHOULD contain zero or more [0..*] Author Participation (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.119) (CONF:1098-31143)."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.author"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Author"/>
        <profile
                 value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.119"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="Observation.informant">
      <path value="Observation.informant"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.informant"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
    </element>
    <element id="Observation.informant.typeCode">
      <path value="Observation.informant.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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="Observation.informant.contextControlCode">
      <path value="Observation.informant.contextControlCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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="Observation.informant.assignedEntity">
      <path value="Observation.informant.assignedEntity"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.informant.assignedEntity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity"/>
      </type>
    </element>
    <element id="Observation.informant.relatedEntity">
      <path value="Observation.informant.relatedEntity"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.informant.relatedEntity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/RelatedEntity"/>
      </type>
    </element>
    <element id="Observation.participant">
      <path value="Observation.participant"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="typeCode"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.participant"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Participant2"/>
      </type>
    </element>
    <element id="Observation.participant:participant1">
      <path value="Observation.participant"/>
      <sliceName value="participant1"/>
      <requirements
                    value="SHOULD contain zero or more [0..*] participant (CONF:1098-16318) such that it"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.participant"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Participant2"/>
      </type>
    </element>
    <element id="Observation.participant:participant1.nullFlavor">
      <path value="Observation.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="Observation.participant:participant1.typeCode">
      <path value="Observation.participant.typeCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;CSM&quot; Consumable (CodeSystem: HL7ParticipationType urn:oid:2.16.840.1.113883.5.90 STATIC) (CONF:1098-16319)."/>
      <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="CSM"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ParticipationType"/>
      </binding>
    </element>
    <element id="Observation.participant:participant1.contextControlCode">
      <path value="Observation.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="Observation.participant:participant1.realmCode">
      <path value="Observation.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="Observation.participant:participant1.typeId">
      <path value="Observation.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="Observation.participant:participant1.templateId">
      <path value="Observation.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="Observation.participant:participant1.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="Observation.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="Observation.participant:participant1.time">
      <path value="Observation.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="Observation.participant:participant1.awarenessCode">
      <path value="Observation.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="Observation.participant:participant1.participantRole">
      <path value="Observation.participant.participantRole"/>
      <requirements
                    value="SHALL contain exactly one [1..1] participantRole (CONF:1098-16320)."/>
      <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"/>
      </type>
    </element>
    <element id="Observation.participant:participant1.participantRole.classCode">
      <path value="Observation.participant.participantRole.classCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="This participantRole SHALL contain exactly one [1..1] @classCode=&quot;MANU&quot; Manufactured Product (CodeSystem: HL7RoleClass urn:oid:2.16.840.1.113883.5.110 STATIC) (CONF:1098-16321)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ParticipantRole.classCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="ROL"/>
      <patternCode value="MANU"/>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-RoleClassRoot"/>
      </binding>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.templateId">
      <path value="Observation.participant.participantRole.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="ParticipantRole.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.participant:participant1.participantRole.id">
      <path value="Observation.participant.participantRole.id"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ParticipantRole.id"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.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="Observation.participant.participantRole.sdtcIdentifiedBy"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ParticipantRole.sdtcIdentifiedBy"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/IdentifiedBy"/>
      </type>
    </element>
    <element id="Observation.participant:participant1.participantRole.code">
      <path value="Observation.participant.participantRole.code"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ParticipantRole.code"/>
        <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-RoleCode"/>
      </binding>
    </element>
    <element id="Observation.participant:participant1.participantRole.addr">
      <path value="Observation.participant.participantRole.addr"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ParticipantRole.addr"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/AD"/>
      </type>
    </element>
    <element id="Observation.participant:participant1.participantRole.telecom">
      <path value="Observation.participant.participantRole.telecom"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ParticipantRole.telecom"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/TEL"/>
      </type>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingDevice">
      <path value="Observation.participant.participantRole.playingDevice"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ParticipantRole.playingDevice"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Device"/>
      </type>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingEntity">
      <path value="Observation.participant.participantRole.playingEntity"/>
      <requirements
                    value="This participantRole SHALL contain exactly one [1..1] playingEntity (CONF:1098-16322)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ParticipantRole.playingEntity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/PlayingEntity"/>
      </type>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingEntity.classCode">
      <path
            value="Observation.participant.participantRole.playingEntity.classCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="This playingEntity SHALL contain exactly one [1..1] @classCode=&quot;MMAT&quot; Manufactured Material (CodeSystem: HL7EntityClass urn:oid:2.16.840.1.113883.5.41 STATIC) (CONF:1098-16323)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="PlayingEntity.classCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="ENT"/>
      <patternCode value="MMAT"/>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-EntityClassRoot"/>
      </binding>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingEntity.determinerCode">
      <path
            value="Observation.participant.participantRole.playingEntity.determinerCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="PlayingEntity.determinerCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="INSTANCE"/>
      <fixedCode value="INSTANCE"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-EntityDeterminer"/>
      </binding>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingEntity.templateId">
      <path
            value="Observation.participant.participantRole.playingEntity.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="PlayingEntity.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/II"/>
      </type>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingEntity.code">
      <path value="Observation.participant.participantRole.playingEntity.code"/>
      <requirements
                    value="This playingEntity SHALL contain exactly one [1..1] code, which MAY be selected from ValueSet Substance Reactant for Intolerance urn:oid:2.16.840.1.113762.1.4.1010.1 DYNAMIC (CONF:1098-16324)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="PlayingEntity.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CE"/>
      </type>
      <binding>
        <strength value="example"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1010.1"/>
      </binding>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingEntity.quantity">
      <path
            value="Observation.participant.participantRole.playingEntity.quantity"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="PlayingEntity.quantity"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/PQ"/>
      </type>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingEntity.name">
      <path value="Observation.participant.participantRole.playingEntity.name"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="PlayingEntity.name"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/EN"/>
      </type>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.playingEntity.desc">
      <path value="Observation.participant.participantRole.playingEntity.desc"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="PlayingEntity.desc"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ED"/>
      </type>
    </element>
    <element
             id="Observation.participant:participant1.participantRole.scopingEntity">
      <path value="Observation.participant.participantRole.scopingEntity"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ParticipantRole.scopingEntity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Entity"/>
      </type>
    </element>
    <element id="Observation.entryRelationship">
      <path value="Observation.entryRelationship"/>
      <slicing>
        <discriminator>
          <type value="profile"/>
          <path value="observation"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="obs-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/Observation"/>
      </constraint>
    </element>
    <element id="Observation.entryRelationship:allergyStatus">
      <path value="Observation.entryRelationship"/>
      <sliceName value="allergyStatus"/>
      <requirements
                    value="MAY contain zero or one [0..1] entryRelationship (CONF:1098-16333) such that it"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="obs-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/Observation"/>
      </constraint>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.typeCode">
      <path value="Observation.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;SUBJ&quot; Has subject (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:1098-16335)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="SUBJ"/>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.inversionInd">
      <path value="Observation.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @inversionInd=&quot;true&quot; True (CONF:1098-16334)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <patternBoolean value="true"/>
    </element>
    <element
             id="Observation.entryRelationship:allergyStatus.contextConductionInd">
      <path value="Observation.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.contextConductionInd"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.sequenceNumber">
      <path value="Observation.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/INT"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.negationInd">
      <path value="Observation.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.seperatableInd">
      <path value="Observation.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.observation">
      <path value="Observation.entryRelationship.observation"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Allergy Status Observation (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.28:2019-06-20) (CONF:1098-16336)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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.28"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.regionOfInterest">
      <path value="Observation.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.observationMedia">
      <path value="Observation.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:allergyStatus.substanceAdministration">
      <path value="Observation.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.supply">
      <path value="Observation.entryRelationship.supply"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Supply"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.procedure">
      <path value="Observation.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.encounter">
      <path value="Observation.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.organizer">
      <path value="Observation.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:allergyStatus.act">
      <path value="Observation.entryRelationship.act"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Act"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction">
      <path value="Observation.entryRelationship"/>
      <sliceName value="reaction"/>
      <requirements
                    value="SHOULD contain zero or more [0..*] entryRelationship (CONF:1098-16337) such that it"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="obs-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/Observation"/>
      </constraint>
    </element>
    <element id="Observation.entryRelationship:reaction.typeCode">
      <path value="Observation.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;MFST&quot; Is Manifestation of (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:1098-16339)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="MFST"/>
    </element>
    <element id="Observation.entryRelationship:reaction.inversionInd">
      <path value="Observation.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @inversionInd=&quot;true&quot; True (CONF:1098-16338)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <patternBoolean value="true"/>
    </element>
    <element id="Observation.entryRelationship:reaction.contextConductionInd">
      <path value="Observation.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.contextConductionInd"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element id="Observation.entryRelationship:reaction.sequenceNumber">
      <path value="Observation.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/INT"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.negationInd">
      <path value="Observation.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.seperatableInd">
      <path value="Observation.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.observation">
      <path value="Observation.entryRelationship.observation"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Reaction Observation (V2) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.9:2014-06-09) (CONF:1098-16340)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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.9"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="Observation.entryRelationship:reaction.regionOfInterest">
      <path value="Observation.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.observationMedia">
      <path value="Observation.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.substanceAdministration">
      <path value="Observation.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.supply">
      <path value="Observation.entryRelationship.supply"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Supply"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.procedure">
      <path value="Observation.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.encounter">
      <path value="Observation.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.organizer">
      <path value="Observation.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:reaction.act">
      <path value="Observation.entryRelationship.act"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Act"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity">
      <path value="Observation.entryRelationship"/>
      <sliceName value="severity"/>
      <requirements
                    value="SHOULD NOT contain zero or one [0..1] entryRelationship (CONF:1098-16341) such that it"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="obs-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/Observation"/>
      </constraint>
    </element>
    <element id="Observation.entryRelationship:severity.typeCode">
      <path value="Observation.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;SUBJ&quot; Has Subject (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002 STATIC) (CONF:1098-16342)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="SUBJ"/>
    </element>
    <element id="Observation.entryRelationship:severity.inversionInd">
      <path value="Observation.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @inversionInd=&quot;true&quot; True (CONF:1098-16343)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <patternBoolean value="true"/>
    </element>
    <element id="Observation.entryRelationship:severity.contextConductionInd">
      <path value="Observation.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.contextConductionInd"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element id="Observation.entryRelationship:severity.sequenceNumber">
      <path value="Observation.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/INT"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.negationInd">
      <path value="Observation.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.seperatableInd">
      <path value="Observation.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.observation">
      <path value="Observation.entryRelationship.observation"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Severity Observation (V2) (identifier: urn:hl7ii:2.16.840.1.113883.10.20.22.4.8:2014-06-09) (CONF:1098-16344)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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.8"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="Observation.entryRelationship:severity.regionOfInterest">
      <path value="Observation.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.observationMedia">
      <path value="Observation.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.substanceAdministration">
      <path value="Observation.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.supply">
      <path value="Observation.entryRelationship.supply"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Supply"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.procedure">
      <path value="Observation.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.encounter">
      <path value="Observation.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.organizer">
      <path value="Observation.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:severity.act">
      <path value="Observation.entryRelationship.act"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Act"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality">
      <path value="Observation.entryRelationship"/>
      <sliceName value="criticality"/>
      <requirements
                    value="SHOULD contain zero or one [0..1] entryRelationship (CONF:1098-32910) such that it"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
      <constraint>
        <key value="obs-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/Observation"/>
      </constraint>
    </element>
    <element id="Observation.entryRelationship:criticality.typeCode">
      <path value="Observation.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;SUBJ&quot; Has Subject (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002) (CONF:1098-32911)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <patternCode value="SUBJ"/>
    </element>
    <element id="Observation.entryRelationship:criticality.inversionInd">
      <path value="Observation.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @inversionInd=&quot;true&quot; True (CONF:1098-32912)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <patternBoolean value="true"/>
    </element>
    <element id="Observation.entryRelationship:criticality.contextConductionInd">
      <path value="Observation.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.contextConductionInd"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element id="Observation.entryRelationship:criticality.sequenceNumber">
      <path value="Observation.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/INT"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.negationInd">
      <path value="Observation.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.seperatableInd">
      <path value="Observation.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.entryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.observation">
      <path value="Observation.entryRelationship.observation"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Criticality Observation  (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.145) (CONF:1098-32913)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.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.145"/>
      </type>
      <isModifier value="false"/>
    </element>
    <element id="Observation.entryRelationship:criticality.regionOfInterest">
      <path value="Observation.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.observationMedia">
      <path value="Observation.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:criticality.substanceAdministration">
      <path value="Observation.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.supply">
      <path value="Observation.entryRelationship.supply"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Supply"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.procedure">
      <path value="Observation.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.encounter">
      <path value="Observation.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.organizer">
      <path value="Observation.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element id="Observation.entryRelationship:criticality.act">
      <path value="Observation.entryRelationship.act"/>
      <min value="0"/>
      <max value="0"/>
      <base>
        <path value="Observation.entryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Act"/>
      </type>
    </element>
    <element id="Observation.reference">
      <path value="Observation.reference"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.reference"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
    </element>
    <element id="Observation.reference.typeCode">
      <path value="Observation.reference.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.reference.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
    </element>
    <element id="Observation.reference.seperatableInd">
      <path value="Observation.reference.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.reference.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/BL"/>
      </type>
    </element>
    <element id="Observation.reference.externalAct">
      <path value="Observation.reference.externalAct"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.reference.externalAct"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/ExternalAct"/>
      </type>
    </element>
    <element id="Observation.reference.externalObservation">
      <path value="Observation.reference.externalObservation"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.reference.externalObservation"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ExternalObservation"/>
      </type>
    </element>
    <element id="Observation.reference.externalProcedure">
      <path value="Observation.reference.externalProcedure"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.reference.externalProcedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ExternalProcedure"/>
      </type>
    </element>
    <element id="Observation.reference.externalDocument">
      <path value="Observation.reference.externalDocument"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.reference.externalDocument"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ExternalDocument"/>
      </type>
    </element>
    <element id="Observation.precondition">
      <path value="Observation.precondition"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.precondition"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Precondition"/>
      </type>
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.referenceRange"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Element"/>
      </type>
    </element>
    <element id="Observation.referenceRange.typeCode">
      <path value="Observation.referenceRange.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.referenceRange.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <defaultValueCode value="REFV"/>
      <fixedCode value="REFV"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-ActRelationshipPertains"/>
      </binding>
    </element>
    <element id="Observation.referenceRange.observationRange">
      <path value="Observation.referenceRange.observationRange"/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.referenceRange.observationRange"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/fhir/cda/StructureDefinition/ObservationRange"/>
      </type>
    </element>
  </snapshot>
  <differential>
    <element id="Observation">
      <path value="Observation"/>
    </element>
    <element id="Observation.classCode">
      <path value="Observation.classCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @classCode=&quot;OBS&quot; Observation (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:1098-7379)."/>
      <min value="1"/>
      <max value="1"/>
      <patternCode value="OBS"/>
    </element>
    <element id="Observation.moodCode">
      <path value="Observation.moodCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @moodCode=&quot;EVN&quot; Event (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:1098-7380)."/>
      <min value="1"/>
      <max value="1"/>
      <patternCode value="EVN"/>
    </element>
    <element id="Observation.negationInd">
      <path value="Observation.negationInd"/>
      <label
             value="Use negationInd=&quot;true&quot; to indicate that the allergy was not observed."/>
      <short
             value="Use negationInd=&quot;true&quot; to indicate that the allergy was not observed."/>
      <requirements
                    value="MAY contain zero or one [0..1] @negationInd (CONF:1098-31526)."/>
      <min value="0"/>
      <max value="1"/>
    </element>
    <element id="Observation.templateId">
      <path value="Observation.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="Observation.templateId:secondary">
      <path value="Observation.templateId"/>
      <sliceName value="secondary"/>
      <requirements
                    value="SHALL contain exactly one [1..1] templateId (CONF:1098-7381) such that it"/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Observation.templateId:secondary.root">
      <path value="Observation.templateId.root"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.10.20.22.4.7&quot; (CONF:1098-10488)."/>
      <min value="1"/>
      <max value="1"/>
      <patternString value="2.16.840.1.113883.10.20.22.4.7"/>
    </element>
    <element id="Observation.templateId:secondary.extension">
      <path value="Observation.templateId.extension"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @extension=&quot;2014-06-09&quot; (CONF:1098-32526)."/>
      <min value="1"/>
      <max value="1"/>
      <patternString value="2014-06-09"/>
    </element>
    <element id="Observation.id">
      <path value="Observation.id"/>
      <requirements
                    value="SHALL contain at least one [1..*] id (CONF:1098-7382)."/>
      <min value="1"/>
      <max value="*"/>
    </element>
    <element id="Observation.code">
      <path value="Observation.code"/>
      <requirements
                    value="SHALL contain exactly one [1..1] code (CONF:1098-15947)."/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Observation.code.code">
      <path value="Observation.code.code"/>
      <requirements
                    value="This code SHALL contain exactly one [1..1] @code=&quot;ASSERTION&quot; Assertion (CONF:1098-15948)."/>
      <min value="1"/>
      <max value="1"/>
      <patternString value="ASSERTION"/>
    </element>
    <element id="Observation.code.codeSystem">
      <path value="Observation.code.codeSystem"/>
      <requirements
                    value="This code SHALL contain exactly one [1..1] @codeSystem=&quot;2.16.840.1.113883.5.4&quot; (CodeSystem: HL7ActCode urn:oid:2.16.840.1.113883.5.4) (CONF:1098-32153)."/>
      <min value="1"/>
      <max value="1"/>
      <patternString value="2.16.840.1.113883.5.4"/>
    </element>
    <element id="Observation.statusCode">
      <path value="Observation.statusCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] statusCode (CONF:1098-19084)."/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Observation.statusCode.code">
      <path value="Observation.statusCode.code"/>
      <requirements
                    value="This statusCode SHALL contain exactly one [1..1] @code=&quot;completed&quot; Completed (CodeSystem: HL7ActStatus urn:oid:2.16.840.1.113883.5.14 STATIC) (CONF:1098-19085)."/>
      <min value="1"/>
      <max value="1"/>
      <patternString value="completed"/>
    </element>
    <element id="Observation.effectiveTime">
      <path value="Observation.effectiveTime"/>
      <label
             value="If the allergy/intolerance is known to be resolved, but the date of resolution is not known, then the high element SHALL be present, and the nullFlavor attribute SHALL be set to 'UNK'."/>
      <short
             value="If the allergy/intolerance is known to be resolved, but the date of resolution is not known, then the high element SHALL be present, and the nullFlavor attribute SHALL be set to 'UNK'."/>
      <requirements
                    value="SHALL contain exactly one [1..1] effectiveTime (CONF:1098-7387)."/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Observation.effectiveTime.low">
      <path value="Observation.effectiveTime.low"/>
      <label
             value="The effectiveTime/low (a.k.a. &quot;onset date&quot;) asserts when the allergy/intolerance became biologically active."/>
      <short
             value="The effectiveTime/low (a.k.a. &quot;onset date&quot;) asserts when the allergy/intolerance became biologically active."/>
      <requirements
                    value="This effectiveTime SHALL contain exactly one [1..1] low (CONF:1098-31538)."/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Observation.effectiveTime.high">
      <path value="Observation.effectiveTime.high"/>
      <label
             value="The effectiveTime/high (a.k.a. &quot;resolution date&quot;) asserts when the allergy/intolerance became biologically resolved."/>
      <short
             value="The effectiveTime/high (a.k.a. &quot;resolution date&quot;) asserts when the allergy/intolerance became biologically resolved."/>
      <requirements
                    value="This effectiveTime MAY contain zero or one [0..1] high (CONF:1098-31539)."/>
      <min value="0"/>
      <max value="1"/>
    </element>
    <element id="Observation.value">
      <path value="Observation.value"/>
      <label
             value="The consumable participant points to the precise allergen or substance of intolerance. Because the consumable and the reaction are more clinically relevant than a categorization of the allergy/adverse event type, many systems will simply assign a fixed value here (e.g., &quot;allergy to substance&quot;)."/>
      <short
             value="The consumable participant points to the precise allergen or substance of intolerance. Because the consumable and the reaction are more clinically relevant than a categorization of the allergy/adverse event type, many systems will simply assign a fixed value here (e.g., &quot;allergy to substance&quot;)."/>
      <requirements
                    value="SHALL contain exactly one [1..1] value with @xsi:type=&quot;CD&quot;, where the code SHALL be selected from ValueSet Allergy and Intolerance Type urn:oid:2.16.840.1.113883.3.88.12.3221.6.2 DYNAMIC (CONF:1098-7390)."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/CD"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.3221.6.2"/>
      </binding>
    </element>
    <element id="Observation.author">
      <path value="Observation.author"/>
      <requirements
                    value="SHOULD contain zero or more [0..*] Author Participation (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.119) (CONF:1098-31143)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="http://hl7.org/fhir/cda/StructureDefinition/Author"/>
        <profile
                 value="http://hl7.org/fhir/cda/ccda/StructureDefinition/2.16.840.1.113883.10.20.22.4.119"/>
      </type>
    </element>
    <element id="Observation.entryRelationship">
      <path value="Observation.entryRelationship"/>
      <slicing>
        <discriminator>
          <type value="profile"/>
          <path value="observation"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
    </element>
    <element id="Observation.entryRelationship:criticality">
      <path value="Observation.entryRelationship"/>
      <sliceName value="criticality"/>
      <requirements
                    value="SHOULD contain zero or one [0..1] entryRelationship (CONF:1098-32910) such that it"/>
      <min value="0"/>
      <max value="1"/>
    </element>
    <element id="Observation.entryRelationship:criticality.typeCode">
      <path value="Observation.entryRelationship.typeCode"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @typeCode=&quot;SUBJ&quot; Has Subject (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002) (CONF:1098-32911)."/>
      <min value="1"/>
      <max value="1"/>
      <patternCode value="SUBJ"/>
    </element>
    <element id="Observation.entryRelationship:criticality.inversionInd">
      <path value="Observation.entryRelationship.inversionInd"/>
      <requirements
                    value="SHALL contain exactly one [1..1] @inversionInd=&quot;true&quot; True (CONF:1098-32912)."/>
      <min value="1"/>
      <max value="1"/>
      <patternBoolean value="true"/>
    </element>
    <element id="Observation.entryRelationship:criticality.observation">
      <path value="Observation.entryRelationship.observation"/>
      <requirements
                    value="SHALL contain exactly one [1..1] Criticality Observation  (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.145) (CONF:1098-32913)."/>
      <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.145"/>
      </type>
    </element>
  </differential>
</StructureDefinition>