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