<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-entity-BodySite" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR BodySite Profile</b>
      </p>
      <p>A location or structure in the body, including tissues, regions, cavities, and spaces, for example, right elbow, or left ventricle of the heart.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.entity.BodySite maps to BodySite:
  CodeableConcept maps to code
  Laterality maps to qualifier (slice on = coding.code)
  Directionality maps to qualifier
  PortionTotality maps to qualifier
  Details maps to description	
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-BodySite" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.entity.BodySite" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR BodySite Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="A location or structure in the body, including tissues, regions, cavities, and spaces, for example, right elbow, or left ventricle of the heart." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="openehr" />
    <uri value="http://openehr.org" />
    <name value="Open EHR Archetype Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="BodySite" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/BodySite" />
  <derivation value="constraint" />
  <differential>
    <element id="BodySite:shr-entity-BodySite">
      <path value="BodySite" />
      <short value="SHR BodySite Profile" />
      <definition value="A location or structure in the body, including tissues, regions, cavities, and spaces, for example, right elbow, or left ventricle of the heart." />
    </element>
    <element id="BodySite:shr-entity-BodySite.extension:relatedencounter">
      <path value="BodySite.extension" />
      <sliceName value="relatedencounter" />
      <definition value="If content was generated during a patient encounter, related encounter is the encounter where the information was gained." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension" />
      </type>
    </element>
    <element id="BodySite:shr-entity-BodySite.extension:author">
      <path value="BodySite.extension" />
      <sliceName value="author" />
      <definition value="The person or organization who created the entry and is responsible for (and may certify) the content." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension" />
      </type>
    </element>
    <element id="BodySite:shr-entity-BodySite.extension:informant">
      <path value="BodySite.extension" />
      <sliceName value="informant" />
      <definition value="The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension" />
      </type>
    </element>
    <element id="BodySite:shr-entity-BodySite.extension:type">
      <path value="BodySite.extension" />
      <sliceName value="type" />
      <definition value="The most specific code (lowest level term) describing the kind or sort of thing being represented." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Type-extension" />
      </type>
    </element>
    <element id="BodySite:shr-entity-BodySite.extension:clockdirection">
      <path value="BodySite.extension" />
      <sliceName value="clockdirection" />
      <definition value="A direction indicated by an angle relative to 12 o'clock." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-ClockDirection-extension" />
      </type>
    </element>
    <element id="BodySite:shr-entity-BodySite.extension:distance">
      <path value="BodySite.extension" />
      <sliceName value="distance" />
      <definition value="The measure of space separating two objects or points." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Distance-extension" />
      </type>
    </element>
    <element id="BodySite:shr-entity-BodySite.extension:bodysitemarker">
      <path value="BodySite.extension" />
      <sliceName value="bodysitemarker" />
      <definition value="A marker surgically placed at the site, often during a biopsy procedure, to pinpoint the location. The marker is typically a metal clip or radioactive seed." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-BodySiteMarker-extension" />
      </type>
    </element>
    <element id="BodySite:shr-entity-BodySite.code">
      <path value="BodySite.code" />
      <min value="1" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/core/vs/BodySiteVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="BodySite:shr-entity-BodySite.qualifier">
      <path value="BodySite.qualifier" />
      <slicing id="39">
        <discriminator>
          <type value="value" />
          <path value="coding.code" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="BodySite:shr-entity-BodySite.qualifier:shr-entity-Laterality">
      <path value="BodySite.qualifier" />
      <sliceName value="shr-entity-Laterality" />
      <min value="0" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/core/vs/LateralityVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="BodySite:shr-entity-BodySite.qualifier:shr-entity-Directionality">
      <path value="BodySite.qualifier" />
      <sliceName value="shr-entity-Directionality" />
      <min value="0" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/core/vs/DirectionalityVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="BodySite:shr-entity-BodySite.qualifier:shr-entity-PortionTotality">
      <path value="BodySite.qualifier" />
      <sliceName value="shr-entity-PortionTotality" />
      <min value="0" />
      <max value="1" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/core/vs/PortionTotalityVS" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>