<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="location-ca-core" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="2" />
  </extension>
  <url value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/location-ca-core" />
  <version value="1.1.0" />
  <name value="LocationCACore" />
  <title value="Location (CA-Core)" />
  <status value="active" />
  <experimental value="false" />
  <date value="2025-02-24" />
  <publisher value="Canada Health Infoway" />
  <contact>
    <name value="National Standards Release Centre" />
    <telecom>
      <system value="url" />
      <value value="http://www.infoway-inforoute.ca" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="standards@infoway-inforoute.ca" />
    </telecom>
  </contact>
  <description value="This profile applies constraints to the Location resource for CA Core+ to support documentation of places where healthcare services may be provided." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="CA" />
    </coding>
  </jurisdiction>
  <copyright value="Copyright © 2025+ Canada Health Infoway. All rights reserved. [Terms of Use and License Agreements](https://ic.infoway-inforoute.ca/en/about/tou). [Privacy Policy](https://www.infoway-inforoute.ca/en/legal/privacy-policy)." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="CACDI" />
    <name value="Canadian Core Data for Interoperability (CACDI)" />
    <comment value="Mapping for LocationCACore to  Canadian Core Data for Interoperability (CACDI)." />
  </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.address.type">
      <path value="Location.address.type" />
      <mapping>
        <identity value="CACDI" />
        <map value="Address Type Code" />
      </mapping>
    </element>
    <element id="Location.address.line">
      <path value="Location.address.line" />
      <mapping>
        <identity value="CACDI" />
        <map value="Street Number" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Street Number Suffix" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Street Name" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Street Type Code" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Street Direction Code" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Suite Type Code" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Suite Number" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Address 2" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Address Additional Information Text" />
      </mapping>
    </element>
    <element id="Location.address.state">
      <path value="Location.address.state" />
      <mapping>
        <identity value="CACDI" />
        <map value="Province or Territory Code" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Province or Territory English Name" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Province or Territory French Name" />
      </mapping>
    </element>
    <element id="Location.address.postalCode">
      <path value="Location.address.postalCode" />
      <mapping>
        <identity value="CACDI" />
        <map value="Non-Canadian Postal Code Value" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Canadian Postal Code Value" />
      </mapping>
    </element>
    <element id="Location.address.country">
      <path value="Location.address.country" />
      <mapping>
        <identity value="CACDI" />
        <map value="Country Code" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Country English Name" />
      </mapping>
      <mapping>
        <identity value="CACDI" />
        <map value="Country French Name" />
      </mapping>
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/organization-ca-core" />
      </type>
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy">
          <valueBoolean value="true" />
        </extension>
        <code value="Reference" />
        <targetProfile value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/location-ca-core" />
      </type>
    </element>
  </differential>
</StructureDefinition>