<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ca-on-seris-profile-Location" />
  <url value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Location" />
  <version value="1.0.1" />
  <name value="Location" />
  <title value="Location" />
  <status value="draft" />
  <date value="2023-02-28" />
  <publisher value="Ontario Health" />
  <contact>
    <name value="Ontario Health" />
    <telecom>
      <system value="url" />
      <value value="http://ontariohealth.ca/fhir/" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="some.email@ontariohealth.ca" />
    </telecom>
  </contact>
  <description value="Details and position information for a physical place where surgical procedures are performed." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="SERIS-MDS-Mapping" />
    <name value="SERIS MDS Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Location" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Location" />
  <derivation value="constraint" />
  <differential>
    <element id="Location.meta">
      <path value="Location.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.meta.profile">
      <path value="Location.meta.profile" />
      <comment value="#### **_` FOR SERIS USAGE: The meta.profile = http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-profile-Location|1.0.1 `_**&#xD;&#xA;&#xD;&#xA;It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.meta.security">
      <path value="Location.meta.security" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.meta.security.system">
      <path value="Location.meta.security.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v3-ActReason" />
      <mustSupport value="true" />
    </element>
    <element id="Location.meta.security.code">
      <path value="Location.meta.security.code" />
      <fixedCode value="HTEST" />
      <mustSupport value="true" />
    </element>
    <element id="Location.meta.tag">
      <path value="Location.meta.tag" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.meta.tag.system">
      <path value="Location.meta.tag.system" />
      <min value="1" />
      <fixedUri value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-health-care-facility-id" />
      <mustSupport value="true" />
    </element>
    <element id="Location.meta.tag.code">
      <path value="Location.meta.tag.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:ORClosureReason">
      <path value="Location.extension" />
      <sliceName value="ORClosureReason" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-or-closure-reason" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="Planned/Unplanned OR Closure Reason" />
      </mapping>
    </element>
    <element id="Location.extension:MISFunctionalCentre">
      <path value="Location.extension" />
      <sliceName value="MISFunctionalCentre" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-mis-functional-centre" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="OR MIS Functional Center" />
      </mapping>
    </element>
    <element id="Location.extension:ORUnit">
      <path value="Location.extension" />
      <sliceName value="ORUnit" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-or-unit" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="OR Unit" />
      </mapping>
    </element>
    <element id="Location.extension:functionalCentre">
      <path value="Location.extension" />
      <sliceName value="functionalCentre" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ontariohealth.ca/fhir/StructureDefinition/ca-on-seris-ext-functional-centre" />
      </type>
      <isModifier value="false" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="Functional Center" />
      </mapping>
    </element>
    <element id="Location.identifier">
      <path value="Location.identifier" />
      <short value="OR Room Identifier" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="Actual Room ID" />
      </mapping>
    </element>
    <element id="Location.identifier.system">
      <path value="Location.identifier.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.identifier.value">
      <path value="Location.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.status">
      <path value="Location.status" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="OR room status" />
      </mapping>
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <short value="OR Room name" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="Actual Room Name" />
      </mapping>
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <max value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="OR Room Type" />
      </mapping>
    </element>
    <element id="Location.type.coding">
      <path value="Location.type.coding" />
      <definition value="A reference to a code defined by a terminology system." />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <description value="A role of a place that further classifies the setting (e.g., accident site, road side, work site, community location) in which services are delivered." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" />
      </binding>
    </element>
    <element id="Location.type.coding.system">
      <path value="Location.type.coding.system" />
      <short value="For SERIS usage, only &quot;Emergency Room&quot; value code will be used" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
      <mustSupport value="true" />
    </element>
    <element id="Location.type.coding.code">
      <path value="Location.type.coding.code" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <description value="A role of a place that further classifies the setting (e.g., accident site, road side, work site, community location) in which services are delivered." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" />
      </binding>
    </element>
    <element id="Location.type.coding.display">
      <path value="Location.type.coding.display" />
      <mustSupport value="true" />
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <short value="captures the identifer of the Site" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="SERIS-MDS-Mapping" />
        <map value="Site" />
      </mapping>
    </element>
    <element id="Location.partOf.identifier">
      <path value="Location.partOf.identifier" />
      <short value="Site Identifier" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.partOf.identifier.system">
      <path value="Location.partOf.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-health-care-facility-id" />
      <mustSupport value="true" />
    </element>
    <element id="Location.partOf.identifier.value">
      <path value="Location.partOf.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>