<StructureDefinition xmlns="http://hl7.org/fhir">
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml" />
  </text>
  <url value="http://ehealthontario.ca/fhir/StructureDefinition/ca-on-cms-profile-Location" />
  <name value="CMSLocation" />
  <title value="CMSLocation" />
  <status value="draft" />
  <description value="Please see &lt;a href=&quot;https://simplifier.net/guide/OntarioContextManagement/ConformanceRules&quot; target=&quot;_blank&quot;&gt;Conformance Rules &lt;/a&gt; for the expected behavior of MustSupport." />
  <fhirVersion value="4.0.1" />
  <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 CMS USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-cms-profile-Location|1.0.0 `_**&#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.identifier">
      <path value="Location.identifier" />
      <mustSupport value="true" />
    </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.name">
      <path value="Location.name" />
      <definition value="#### **_` FOR CMS USAGE: Provide the legal name of the location. `_**&#xD;&#xA;Name of the location as used by humans. Does not need to be unique." />
      <mustSupport value="true" />
    </element>
    <element id="Location.alias">
      <path value="Location.alias" />
      <mustSupport value="true" />
    </element>
    <element id="Location.alias.extension">
      <path value="Location.alias.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.alias.extension:HumanLanguage">
      <path value="Location.alias.extension" />
      <sliceName value="HumanLanguage" />
      <definition value="#### **_` FOR CMS USAGE: The extension is to specify the language of the non-english equivalent of the Organization name. `_**" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://ehealthontario.ca/fhir/StructureDefinition/cms-ext-human-language" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.alias.extension:OrganizationNameType">
      <path value="Location.alias.extension" />
      <sliceName value="OrganizationNameType" />
      <definition value="#### **_` FOR CMS USAGE: The extension is to support the non-english name equivalent of the Organization name. `_**" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://ehealthontario.ca/fhir/StructureDefinition/cms-ext-organization-name-type" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <mustSupport value="true" />
    </element>
    <element id="Location.type.coding">
      <path value="Location.type.coding" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" />
      </binding>
    </element>
    <element id="Location.type.coding.system">
      <path value="Location.type.coding.system" />
      <min value="1" />
      <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" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.type.coding.display">
      <path value="Location.type.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.telecom">
      <path value="Location.telecom" />
      <mustSupport value="true" />
    </element>
    <element id="Location.telecom.system">
      <path value="Location.telecom.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.telecom.value">
      <path value="Location.telecom.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address.use">
      <path value="Location.address.use" />
      <fixedCode value="work" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address.type">
      <path value="Location.address.type" />
      <fixedCode value="physical" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address.line">
      <path value="Location.address.line" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address.city">
      <path value="Location.address.city" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address.state">
      <path value="Location.address.state" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address.postalCode">
      <path value="Location.address.postalCode" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address.country">
      <path value="Location.address.country" />
      <mustSupport value="true" />
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://simplifier.net/ontariocontextmanagement/cmsorganization" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>