Consolidated CDA Release 2.1 StructureDefinition Publication
2.1 - CI Build United States of America flag

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

Logical Model: SexualOrientationObservation - XML Profile

Draft as of 2023-09-29

XML representation of the SexualOrientationObservation logical model.

Raw xml | Download



<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="SexualOrientationObservation"/>
  <meta>
    <versionId value="5"/>
    <lastUpdated value="2023-07-11T23:41:51.564Z"/>
  </meta>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-SexualOrientationObservation-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-SocialHistoryObservation.html">SocialHistoryObservation</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">XML Namespace: </span>urn:hl7-org:v3<br/>Elements defined in Ancestors: <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">@classCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">@moodCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">@negationInd</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">realmCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">typeId</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html" title="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question">templateId</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">id</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">code</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">derivationExpr</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">text</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">statusCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">effectiveTime</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">priorityCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">repeatNumber</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">languageCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">value</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">interpretationCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">methodCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html" title="Drawn from concept domain ActSite">targetSiteCode</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">subject</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">specimen</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">performer</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">author</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">informant</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">participant</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">entryRelationship</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">reference</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html">precondition</a>, <a href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-Observation.html" title="Relates an Observation to the ObservationRange class, where the expected range of values for a particular observation can be specified.">referenceRange</a>, <a href="StructureDefinition-SocialHistoryObservation.html">classCode</a>, <a href="StructureDefinition-SocialHistoryObservation.html">moodCode</a>, <a href="StructureDefinition-SocialHistoryObservation.html">templateId</a>, <a href="StructureDefinition-SocialHistoryObservation.html">templateId</a>, <a href="StructureDefinition-SocialHistoryObservation.html">id</a>, <a href="StructureDefinition-SocialHistoryObservation.html">code</a>, <a href="StructureDefinition-SocialHistoryObservation.html">statusCode</a>, <a href="StructureDefinition-SocialHistoryObservation.html">effectiveTime</a>, <a href="StructureDefinition-SocialHistoryObservation.html">value</a>, <a href="StructureDefinition-SocialHistoryObservation.html">author</a>, <a href="StructureDefinition-SocialHistoryObservation.html">entryRelationship</a>, <a href="StructureDefinition-SocialHistoryObservation.html">entryRelationship</a>, <a href="StructureDefinition-SocialHistoryObservation.html">entryRelationship</a><br/><span style="opacity: 0.5">Base for all types and resources</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_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-SexualOrientationObservation-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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-SexualOrientationObservation-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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></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-SexualOrientationObservation-definitions.html#Observation.templateId">templateId</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">2..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="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_bck15.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_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-SexualOrientationObservation-definitions.html#Observation.templateId:templateId1" title="Slice templateId1">templateId:templateId1</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">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-II.html">II</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">templateId</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_bck150.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_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-SexualOrientationObservation-definitions.html#Observation.templateId:templateId1.root">root</a><a name="Observation.templateId.root"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-oid.html" title="string">oid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-uuid.html" title="string">uuid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-ruid.html" title="string">ruid</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">2.16.840.1.113883.10.20.22.4.501</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_bck140.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_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: white; background-color: inherit" title="Simple Extension" class="hierarchy"/> <a href="StructureDefinition-SexualOrientationObservation-definitions.html#Observation.templateId:templateId1.extension">extension</a><a name="Observation.templateId.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-st-simple.html" title="string">st</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">2023-05-01</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_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-SexualOrientationObservation-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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-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-SexualOrientationObservation-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..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">76690-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_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-SexualOrientationObservation-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..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-oid.html" title="string">oid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-uuid.html" title="string">uuid</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-ruid.html" title="string">ruid</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">2.16.840.1.113883.6.1</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-SexualOrientationObservation-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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-CS.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-SexualOrientationObservation-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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_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-SexualOrientationObservation-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"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-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"/></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-SexualOrientationObservation-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..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-IVXB-TS.html">IVXB_TS</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_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-SexualOrientationObservation-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"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-IVXB-TS.html">IVXB_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"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-SexualOrientationObservation-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..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="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"><span style="font-weight:bold">Binding: </span><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1021.33/expansion">Sexual Orientation</a> (<a href="http://hl7.org/fhir/R5/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: 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_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-SexualOrientationObservation-definitions.html#Observation.value.nullFlavor">nullFlavor</a><a name="Observation.value.nullFlavor"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="https://build.fhir.org/ig/HL7/CDA-core-2.0//StructureDefinition-cs-simple.html" title="code">cs</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-weight:bold">Binding: </span><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1021.103/expansion">Other or unknown or refused to answer</a> (<a href="http://hl7.org/fhir/R5/terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.">preferred</a>)</td></tr>
<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
  </text>
  <extension
             url="http://hl7.org/fhir/tools/StructureDefinition/logical-target">
    <valueBoolean>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
        <valueCode value="not-applicable"/>
      </extension>
    </valueBoolean>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace">
    <valueUri value="urn:hl7-org:v3"/>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/elementdefinition-xml-name">
    <valueUri value="observation"/>
  </extension>
  <url
       value="http://hl7.org/cda/us/ccda/StructureDefinition/SexualOrientationObservation"/>
  <identifier>
    <value value="urn:hl7ii:2.16.840.1.113883.10.20.22.4.501:2023-05-01"/>
  </identifier>
  <version value="2.1"/>
  <name value="SexualOrientationObservation"/>
  <title value="Sexual Orientation Observation"/>
  <status value="draft"/>
  <date value="2023-09-29T16:20:44+00:00"/>
  <publisher value="Health Level Seven"/>
  <contact>
    <name value="HL7 International - Structured Documents"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/structure"/>
    </telecom>
  </contact>
  <description
               value="This observation represents the sexual orientation of the patient, defined as:

&gt; A persons identification of their emotional, romantic, sexual, or affectional attraction to another person.

This template was informed by the HL7 Gender Harmony project.

This observation is not appropriate for recording patient gender (administrativeGender), Gender Identity (Gender Identity Observation), or birth sex (Birth Sex Observation)."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
    </coding>
  </jurisdiction>
  <fhirVersion value="5.0.0"/>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <kind value="logical"/>
  <abstract value="false"/>
  <type value="http://hl7.org/cda/stds/core/StructureDefinition/Observation"/>
  <baseDefinition
                  value="http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation"/>
  <derivation value="constraint"/>
  <snapshot>
    <element id="Observation">
      <path value="Observation"/>
      <short value="Base for all types and resources"/>
      <definition
                  value="Base definition for all types defined in FHIR type system."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Base"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <isModifier value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="Observation.classCode">
      <path value="Observation.classCode"/>
      <representation value="xmlAttr"/>
      <comment
               value="SHALL contain exactly one [1..1] @classCode=&quot;OBS&quot; (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:4537-193)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.classCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <fixedCode value="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"/>
      <comment
               value="SHALL contain exactly one [1..1] @moodCode=&quot;EVN&quot; (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:4537-194)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.moodCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <fixedCode value="EVN"/>
    </element>
    <element id="Observation.negationInd">
      <path value="Observation.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
    </element>
    <element id="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/cda/stds/core/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/cda/stds/core/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"/>
      <comment
               value="SHALL contain exactly one [1..1] templateId (CONF:4537-185) such that it"/>
      <min value="2"/>
      <max value="*"/>
      <base>
        <path value="Observation.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.templateId:social-history-obs">
      <path value="Observation.templateId"/>
      <sliceName value="social-history-obs"/>
      <short value="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"/>
      <comment
               value="SHALL contain exactly one [1..1] templateId (CONF:4515-8550) 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/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.templateId:social-history-obs.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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element
             id="Observation.templateId:social-history-obs.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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </type>
    </element>
    <element id="Observation.templateId:social-history-obs.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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
    </element>
    <element id="Observation.templateId:social-history-obs.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."/>
      <comment
               value="SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.10.20.22.4.38&quot; (CONF:4515-10526)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="II.root"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/uuid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/ruid"/>
      </type>
      <patternString value="2.16.840.1.113883.10.20.22.4.38"/>
    </element>
    <element id="Observation.templateId:social-history-obs.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."/>
      <comment
               value="SHALL contain exactly one [1..1] @extension=&quot;2022-06-01&quot; (CONF:4515-32495)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="II.extension"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </type>
      <patternString value="2022-06-01"/>
    </element>
    <element id="Observation.templateId:templateId1">
      <path value="Observation.templateId"/>
      <sliceName value="templateId1"/>
      <short value="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="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.templateId:templateId1.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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Observation.templateId:templateId1.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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </type>
    </element>
    <element id="Observation.templateId:templateId1.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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
    </element>
    <element id="Observation.templateId:templateId1.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."/>
      <comment
               value="SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.10.20.22.4.501&quot; (CONF:4537-188)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="II.root"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/uuid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/ruid"/>
      </type>
      <patternString value="2.16.840.1.113883.10.20.22.4.501"/>
    </element>
    <element id="Observation.templateId:templateId1.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."/>
      <comment
               value="SHALL contain exactly one [1..1] @extension=&quot;2023-05-01&quot; (CONF:4537-189)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="II.extension"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </type>
      <patternString value="2023-05-01"/>
    </element>
    <element id="Observation.id">
      <path value="Observation.id"/>
      <comment
               value="SHALL contain at least one [1..*] id (CONF:4515-8551)."/>
      <min value="1"/>
      <max value="*"/>
      <base>
        <path value="Observation.id"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.code">
      <path value="Observation.code"/>
      <representation value="typeAttr"/>
      <comment
               value="SHALL contain exactly one [1..1] code (CONF:4537-186)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.code"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/CD"/>
      </type>
      <constraint>
        <key value="4515-32956"/>
        <severity value="error"/>
        <human
               value="If @codeSystem is not LOINC, then this code **SHALL** contain at least one [1..*] translation, which **SHOULD** be selected from CodeSystem LOINC (urn:oid:2.16.840.1.113883.6.1) (CONF:4515-32956)."/>
        <source
                value="http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation"/>
      </constraint>
      <binding>
        <strength value="preferred"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.80.60"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="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."/>
      <comment
               value="This code SHALL contain exactly one [1..1] @code=&quot;76690-7&quot; Sexual Orientation (CONF:4537-190)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CD.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <patternCode value="76690-7"/>
    </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."/>
      <comment
               value="This code SHALL contain exactly one [1..1] @codeSystem=&quot;2.16.840.1.113883.6.1&quot; (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1 STATIC) (CONF:4537-191)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CD.codeSystem"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/uuid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/ruid"/>
      </type>
      <patternString value="2.16.840.1.113883.6.1"/>
    </element>
    <element id="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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/StructureDefinition/ED"/>
      </type>
    </element>
    <element id="Observation.statusCode">
      <path value="Observation.statusCode"/>
      <comment
               value="SHALL contain exactly one [1..1] statusCode (CONF:4537-32881)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.statusCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/CS"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActStatus"/>
      </binding>
    </element>
    <element id="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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="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."/>
      <comment
               value="This statusCode SHALL contain exactly one [1..1] @code=&quot;completed&quot; (CodeSystem: HL7ActStatus urn:oid:2.16.840.1.113883.5.14) (CONF:4537-33073)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="CD.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <fixedCode value="completed"/>
    </element>
    <element id="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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/uuid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/ruid"/>
      </type>
    </element>
    <element id="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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/StructureDefinition/CD"/>
      </type>
    </element>
    <element id="Observation.effectiveTime">
      <path value="Observation.effectiveTime"/>
      <comment
               value="SHALL contain exactly one [1..1] effectiveTime (CONF:4537-33072)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.effectiveTime"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Observation.effectiveTime.value">
      <extension
                 url="http://hl7.org/fhir/tools/StructureDefinition/elementdefinition-date-format">
        <valueString value="YYYYMMDDHHMMSS.UUUU[+|-ZZzz]"/>
      </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="string"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/ts-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <defaultValueCode value="I"/>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-SetOperator"/>
      </binding>
    </element>
    <element id="Observation.effectiveTime.low">
      <path value="Observation.effectiveTime.low"/>
      <label value="Low Boundary"/>
      <definition value="This is the low limit of the interval."/>
      <comment
               value="This effectiveTime SHALL contain exactly one [1..1] low (CONF:4537-33074)."/>
      <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/cda/stds/core/StructureDefinition/IVXB-TS"/>
      </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/cda/stds/core/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/cda/stds/core/StructureDefinition/PQ"/>
      </type>
    </element>
    <element id="Observation.effectiveTime.high">
      <path value="Observation.effectiveTime.high"/>
      <label value="High Boundary"/>
      <definition value="This is the high limit of the interval."/>
      <comment
               value="This effectiveTime MAY contain zero or one [0..1] high (CONF:4537-33075)."/>
      <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/cda/stds/core/StructureDefinition/IVXB-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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/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"/>
      <comment
               value="SHALL contain exactly one [1..1] value with @xsi:type=&quot;CD&quot;, where the code SHALL be selected from ValueSet Sexual Orientation urn:oid:2.16.840.1.113762.1.4.1021.33 DYNAMIC (CONF:4537-187)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Observation.value"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/CD"/>
      </type>
      <constraint>
        <key value="4515-8555"/>
        <severity value="error"/>
        <human
               value="If Observation/value is a physical quantity (xsi:type=&quot;PQ&quot;): This value SHALL contain exactly one [1..1] @unit, which SHOULD be selected from ValueSet UnitsOfMeasureCaseSensitive urn:oid:2.16.840.1.113883.1.11.12839 DYNAMIC. Note: Base CDA requires that all @unit values SHALL be drawn from UCUM."/>
        <source
                value="http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation"/>
      </constraint>
      <constraint>
        <key value="4515-32957"/>
        <severity value="error"/>
        <human
               value="If the Social History Observation is a Social Determinant of Health Observation, the observation/value code **SHOULD** be selected from ValueSet [Social Determinant of Health Conditions 2.16.840.1.113762.1.4.1196.788](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1196.788/expansion) **DYNAMIC** (CONF:4515-32957)."/>
        <source
                value="http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation"/>
      </constraint>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1021.33"/>
      </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."/>
      <comment
               value="This value MAY contain zero or one [0..1] @nullFlavor, which SHOULD be selected from ValueSet Other or unknown or refused to answer urn:oid:2.16.840.1.113762.1.4.1021.103 DYNAMIC (CONF:4537-192)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ANY.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="preferred"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1021.103"/>
      </binding>
    </element>
    <element id="Observation.value.code">
      <path value="Observation.value.code"/>
      <representation value="xmlAttr"/>
      <label value="Code"/>
      <definition
                  value="The plain code symbol defined by the code system. For example, &quot;784.0&quot; is the code symbol of the ICD-9 code &quot;784.0&quot; for headache."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="CD.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
    </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/uuid"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/ruid"/>
      </type>
    </element>
    <element id="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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/oid"/>
      </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"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/st-simple"/>
      </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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/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/cda/stds/core/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="http://hl7.org/cda/stds/core/StructureDefinition/Subject"/>
      </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/cda/stds/core/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/cda/stds/core/StructureDefinition/Performer2"/>
      </type>
    </element>
    <element id="Observation.author">
      <path value="Observation.author"/>
      <short value="Base for all types and resources"/>
      <definition
                  value="Base definition for all types defined in FHIR type system."/>
      <comment
               value="SHOULD contain zero or more [0..*] Author Participation (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.119) (CONF:4515-31869)."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.author"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Author"/>
        <profile
                 value="http://hl7.org/cda/us/ccda/StructureDefinition/AuthorParticipation"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <isModifier value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </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="http://hl7.org/cda/stds/core/StructureDefinition/Informant"/>
      </type>
    </element>
    <element id="Observation.participant">
      <path value="Observation.participant"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.participant"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Participant2"/>
      </type>
    </element>
    <element id="Observation.entryRelationship">
      <path value="Observation.entryRelationship"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="act"/>
        </discriminator>
        <discriminator>
          <type value="value"/>
          <path value="observation"/>
        </discriminator>
        <discriminator>
          <type value="value"/>
          <path value="typeCode"/>
        </discriminator>
        <rules value="open"/>
      </slicing>
      <comment
               value="MAY contain zero or more [0..*] entryRelationship (CONF:4515-32969) such that it"/>
      <min value="1"/>
      <max value="*"/>
      <base>
        <path value="Observation.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs">
      <path value="Observation.entryRelationship"/>
      <sliceName value="social-history-entry-sprt-obs"/>
      <short value="entryRelationship"/>
      <comment
               value="MAY contain zero or more [0..*] entryRelationship (CONF:4515-32958) such that it"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.nullFlavor">
      <path value="Observation.entryRelationship.nullFlavor"/>
      <representation value="xmlAttr"/>
      <label value="Exceptional Value Detail"/>
      <definition
                  value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ANY.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.realmCode">
      <path value="Observation.entryRelationship.realmCode"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="InfrastructureRoot.realmCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/CS"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.typeId">
      <path value="Observation.entryRelationship.typeId"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="InfrastructureRoot.typeId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.templateId">
      <path value="Observation.entryRelationship.templateId"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="InfrastructureRoot.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.typeCode">
      <path value="Observation.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <comment
               value="SHALL contain exactly one [1..1] @typeCode=&quot;SPRT&quot; Has support (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002) (CONF:4515-32960)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <fixedCode value="SPRT"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-xActRelationshipEntryRelationship"/>
      </binding>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.inversionInd">
      <path value="Observation.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <definition
                  value="The entryRelationship.inversionInd can be set to &quot;true&quot; to indicate that the relationship should be interpreted as if the roles of the source and target entries were reversed."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.contextConductionInd">
      <path value="Observation.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <definition
                  value="The entryRelationship.contextConductionInd differs from the otherwise common use of this attribute in that in all other cases where this attribute is used, the value is fixed at &quot;true&quot;, whereas here the value is defaulted to &quot;true&quot;, and can be changed to &quot;false&quot; when referencing an entry in the same document. Setting the context conduction to false when referencing an entry in the same document keeps clear the fact that the referenced object retains its original context."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.contextConductionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.negationInd">
      <path value="Observation.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.sequenceNumber">
      <path value="Observation.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/INT"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.seperatableInd">
      <path value="Observation.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/BL"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.act">
      <path value="Observation.entryRelationship.act"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/Act"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.encounter">
      <path value="Observation.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.observation">
      <path value="Observation.entryRelationship.observation"/>
      <short value="Base for all types and resources"/>
      <definition
                  value="Base definition for all types defined in FHIR type system."/>
      <comment
               value="SHALL contain exactly one [1..1] Assessment Scale Observation (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.69) (CONF:4515-32959)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.observation"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Observation"/>
        <profile
                 value="http://hl7.org/cda/us/ccda/StructureDefinition/AssessmentScaleObservation"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <isModifier value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.observationMedia">
      <path value="Observation.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.organizer">
      <path value="Observation.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.procedure">
      <path value="Observation.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.regionOfInterest">
      <path value="Observation.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.substanceAdministration">
      <path value="Observation.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-obs.supply">
      <path value="Observation.entryRelationship.supply"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Supply"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act">
      <path value="Observation.entryRelationship"/>
      <sliceName value="social-history-entry-sprt-act"/>
      <short value="entryRelationship"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.entryRelationship"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.nullFlavor">
      <path value="Observation.entryRelationship.nullFlavor"/>
      <representation value="xmlAttr"/>
      <label value="Exceptional Value Detail"/>
      <definition
                  value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ANY.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.realmCode">
      <path value="Observation.entryRelationship.realmCode"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="InfrastructureRoot.realmCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/CS"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.typeId">
      <path value="Observation.entryRelationship.typeId"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="InfrastructureRoot.typeId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.templateId">
      <path value="Observation.entryRelationship.templateId"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="InfrastructureRoot.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.typeCode">
      <path value="Observation.entryRelationship.typeCode"/>
      <representation value="xmlAttr"/>
      <comment
               value="SHALL contain exactly one [1..1] @typeCode=&quot;SPRT&quot; Has support (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002) (CONF:4515-32971)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.typeCode"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <fixedCode value="SPRT"/>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://terminology.hl7.org/ValueSet/v3-xActRelationshipEntryRelationship"/>
      </binding>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.inversionInd">
      <path value="Observation.entryRelationship.inversionInd"/>
      <representation value="xmlAttr"/>
      <definition
                  value="The entryRelationship.inversionInd can be set to &quot;true&quot; to indicate that the relationship should be interpreted as if the roles of the source and target entries were reversed."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.inversionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.contextConductionInd">
      <path value="Observation.entryRelationship.contextConductionInd"/>
      <representation value="xmlAttr"/>
      <definition
                  value="The entryRelationship.contextConductionInd differs from the otherwise common use of this attribute in that in all other cases where this attribute is used, the value is fixed at &quot;true&quot;, whereas here the value is defaulted to &quot;true&quot;, and can be changed to &quot;false&quot; when referencing an entry in the same document. Setting the context conduction to false when referencing an entry in the same document keeps clear the fact that the referenced object retains its original context."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.contextConductionInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
      <defaultValueBoolean value="true"/>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.negationInd">
      <path value="Observation.entryRelationship.negationInd"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.negationInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/bl-simple"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.sequenceNumber">
      <path value="Observation.entryRelationship.sequenceNumber"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.sequenceNumber"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/INT"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.seperatableInd">
      <path value="Observation.entryRelationship.seperatableInd"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.seperatableInd"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/BL"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.act">
      <path value="Observation.entryRelationship.act"/>
      <short value="Base for all types and resources"/>
      <definition
                  value="Base definition for all types defined in FHIR type system."/>
      <comment
               value="SHALL contain exactly one [1..1] Entry Reference (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.122) (CONF:4515-32970)."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.act"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/Act"/>
        <profile
                 value="http://hl7.org/cda/us/ccda/StructureDefinition/EntryReference"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <isModifier value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.encounter">
      <path value="Observation.entryRelationship.encounter"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.encounter"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.observation">
      <path value="Observation.entryRelationship.observation"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.observation"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Observation"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.observationMedia">
      <path value="Observation.entryRelationship.observationMedia"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.observationMedia"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/ObservationMedia"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.organizer">
      <path value="Observation.entryRelationship.organizer"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.organizer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Organizer"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.procedure">
      <path value="Observation.entryRelationship.procedure"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.procedure"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Procedure"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.regionOfInterest">
      <path value="Observation.entryRelationship.regionOfInterest"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.regionOfInterest"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/RegionOfInterest"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.substanceAdministration">
      <path value="Observation.entryRelationship.substanceAdministration"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.substanceAdministration"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/SubstanceAdministration"/>
      </type>
    </element>
    <element
             id="Observation.entryRelationship:social-history-entry-sprt-act.supply">
      <path value="Observation.entryRelationship.supply"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="EntryRelationship.supply"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/Supply"/>
      </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="http://hl7.org/cda/stds/core/StructureDefinition/Reference"/>
      </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/cda/stds/core/StructureDefinition/Precondition"/>
      </type>
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange"/>
      <definition
                  value="Relates an Observation to the ObservationRange class, where the expected range of values for a particular observation can be specified."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Observation.referenceRange"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code
              value="http://hl7.org/cda/stds/core/StructureDefinition/InfrastructureRoot"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression
                    value="hasValue() or (children().count() &gt; id.count())"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="Observation.referenceRange.nullFlavor">
      <path value="Observation.referenceRange.nullFlavor"/>
      <representation value="xmlAttr"/>
      <label value="Exceptional Value Detail"/>
      <definition
                  value="If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ANY.nullFlavor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-NullFlavor"/>
      </binding>
    </element>
    <element id="Observation.referenceRange.realmCode">
      <path value="Observation.referenceRange.realmCode"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="InfrastructureRoot.realmCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/CS"/>
      </type>
    </element>
    <element id="Observation.referenceRange.typeId">
      <path value="Observation.referenceRange.typeId"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="InfrastructureRoot.typeId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.referenceRange.templateId">
      <path value="Observation.referenceRange.templateId"/>
      <definition
                  value="When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="InfrastructureRoot.templateId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/II"/>
      </type>
    </element>
    <element id="Observation.referenceRange.typeCode">
      <path value="Observation.referenceRange.typeCode"/>
      <representation value="xmlAttr"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Observation.referenceRange.typeCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
        <profile
                 value="http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"/>
      </type>
      <fixedCode value="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/cda/stds/core/StructureDefinition/ObservationRange"/>
      </type>
    </element>
  </snapshot>
  <differential>
    <element id="Observation">
      <path value="Observation"/>
    </element>
    <element id="Observation.classCode">
      <path value="Observation.classCode"/>
      <comment
               value="SHALL contain exactly one [1..1] @classCode=&quot;OBS&quot; (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:4537-193)."/>
    </element>
    <element id="Observation.moodCode">
      <path value="Observation.moodCode"/>
      <comment
               value="SHALL contain exactly one [1..1] @moodCode=&quot;EVN&quot; (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:4537-194)."/>
    </element>
    <element id="Observation.templateId">
      <path value="Observation.templateId"/>
      <comment
               value="SHALL contain exactly one [1..1] templateId (CONF:4537-185) such that it"/>
      <min value="2"/>
    </element>
    <element id="Observation.templateId:templateId1">
      <path value="Observation.templateId"/>
      <sliceName value="templateId1"/>
      <short value="templateId"/>
      <min value="1"/>
      <max value="1"/>
    </element>
    <element id="Observation.templateId:templateId1.root">
      <path value="Observation.templateId.root"/>
      <comment
               value="SHALL contain exactly one [1..1] @root=&quot;2.16.840.1.113883.10.20.22.4.501&quot; (CONF:4537-188)."/>
      <min value="1"/>
      <patternString value="2.16.840.1.113883.10.20.22.4.501"/>
    </element>
    <element id="Observation.templateId:templateId1.extension">
      <path value="Observation.templateId.extension"/>
      <comment
               value="SHALL contain exactly one [1..1] @extension=&quot;2023-05-01&quot; (CONF:4537-189)."/>
      <min value="1"/>
      <patternString value="2023-05-01"/>
    </element>
    <element id="Observation.code">
      <path value="Observation.code"/>
      <comment
               value="SHALL contain exactly one [1..1] code (CONF:4537-186)."/>
    </element>
    <element id="Observation.code.code">
      <path value="Observation.code.code"/>
      <comment
               value="This code SHALL contain exactly one [1..1] @code=&quot;76690-7&quot; Sexual Orientation (CONF:4537-190)."/>
      <min value="1"/>
      <patternCode value="76690-7"/>
    </element>
    <element id="Observation.code.codeSystem">
      <path value="Observation.code.codeSystem"/>
      <comment
               value="This code SHALL contain exactly one [1..1] @codeSystem=&quot;2.16.840.1.113883.6.1&quot; (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1 STATIC) (CONF:4537-191)."/>
      <min value="1"/>
      <patternString value="2.16.840.1.113883.6.1"/>
    </element>
    <element id="Observation.statusCode">
      <path value="Observation.statusCode"/>
      <comment
               value="SHALL contain exactly one [1..1] statusCode (CONF:4537-32881)."/>
    </element>
    <element id="Observation.statusCode.code">
      <path value="Observation.statusCode.code"/>
      <comment
               value="This statusCode SHALL contain exactly one [1..1] @code=&quot;completed&quot; (CodeSystem: HL7ActStatus urn:oid:2.16.840.1.113883.5.14) (CONF:4537-33073)."/>
    </element>
    <element id="Observation.effectiveTime">
      <path value="Observation.effectiveTime"/>
      <comment
               value="SHALL contain exactly one [1..1] effectiveTime (CONF:4537-33072)."/>
    </element>
    <element id="Observation.effectiveTime.low">
      <path value="Observation.effectiveTime.low"/>
      <comment
               value="This effectiveTime SHALL contain exactly one [1..1] low (CONF:4537-33074)."/>
      <min value="1"/>
    </element>
    <element id="Observation.effectiveTime.high">
      <path value="Observation.effectiveTime.high"/>
      <comment
               value="This effectiveTime MAY contain zero or one [0..1] high (CONF:4537-33075)."/>
    </element>
    <element id="Observation.value">
      <path value="Observation.value"/>
      <comment
               value="SHALL contain exactly one [1..1] value with @xsi:type=&quot;CD&quot;, where the code SHALL be selected from ValueSet Sexual Orientation urn:oid:2.16.840.1.113762.1.4.1021.33 DYNAMIC (CONF:4537-187)."/>
      <min value="1"/>
      <type>
        <code value="http://hl7.org/cda/stds/core/StructureDefinition/CD"/>
      </type>
      <binding>
        <strength value="required"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1021.33"/>
      </binding>
    </element>
    <element id="Observation.value.nullFlavor">
      <path value="Observation.value.nullFlavor"/>
      <comment
               value="This value MAY contain zero or one [0..1] @nullFlavor, which SHOULD be selected from ValueSet Other or unknown or refused to answer urn:oid:2.16.840.1.113762.1.4.1021.103 DYNAMIC (CONF:4537-192)."/>
      <binding>
        <strength value="preferred"/>
        <valueSet
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1021.103"/>
      </binding>
    </element>
  </differential>
</StructureDefinition>