{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-11-22T10:28:21.647+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    }
  ],
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Location-1",
  "version": "1.3.0",
  "name": "CareConnect-GPC-Location-1",
  "status": "active",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "publisher": "HL7 UK",
  "description": "The Location resource provides information and details on the physical location and the services provided.",
  "copyright": "Copyright © 2019 HL7 UK\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\r\n\r\nHL7® FHIR® standard Copyright © 2011+ HL7\r\n\r\nThe HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r\n\r\nhttps://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "openAtEnd"
        }
      },
      {
        "id": "Location.identifier:odsSiteCode",
        "path": "Location.identifier",
        "sliceName": "odsSiteCode",
        "short": "ODS Site code to identify the organisation at site level",
        "definition": "ODS Site code to identify the organisation at site level.",
        "max": "1"
      },
      {
        "id": "Location.identifier:odsSiteCode.use",
        "path": "Location.identifier.use",
        "max": "0"
      },
      {
        "id": "Location.identifier:odsSiteCode.type",
        "path": "Location.identifier.type",
        "max": "0"
      },
      {
        "id": "Location.identifier:odsSiteCode.system",
        "path": "Location.identifier.system",
        "short": "ODS Code",
        "min": 1,
        "fixedUri": "https://fhir.nhs.uk/Id/ods-site-code"
      },
      {
        "id": "Location.identifier:odsSiteCode.value",
        "path": "Location.identifier.value",
        "short": "The ODS Site code name, to reflect the code used",
        "min": 1
      },
      {
        "id": "Location.identifier:odsSiteCode.period",
        "path": "Location.identifier.period",
        "max": "0"
      },
      {
        "id": "Location.identifier:odsSiteCode.assigner",
        "path": "Location.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Location.name",
        "path": "Location.name",
        "mustSupport": true
      },
      {
        "id": "Location.mode",
        "path": "Location.mode",
        "max": "0"
      },
      {
        "id": "Location.telecom",
        "path": "Location.telecom",
        "mustSupport": true
      },
      {
        "id": "Location.address",
        "path": "Location.address",
        "mustSupport": true
      },
      {
        "id": "Location.address.state",
        "path": "Location.address.state",
        "max": "0"
      },
      {
        "id": "Location.physicalType.coding",
        "path": "Location.physicalType.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": true,
          "rules": "closed"
        }
      },
      {
        "id": "Location.physicalType.coding:snomedCT",
        "path": "Location.physicalType.coding",
        "sliceName": "snomedCT"
      },
      {
        "id": "Location.physicalType.coding:snomedCT.system",
        "path": "Location.physicalType.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Location.physicalType.coding:snomedCT.version",
        "path": "Location.physicalType.coding.version",
        "max": "0"
      },
      {
        "id": "Location.physicalType.coding:snomedCT.code",
        "path": "Location.physicalType.coding.code",
        "min": 1
      },
      {
        "id": "Location.physicalType.coding:snomedCT.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Location.physicalType.coding.display",
        "min": 1
      },
      {
        "id": "Location.physicalType.coding:snomedCT.userSelected",
        "path": "Location.physicalType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Location.physicalType.coding:readV2",
        "path": "Location.physicalType.coding",
        "sliceName": "readV2"
      },
      {
        "id": "Location.physicalType.coding:readV2.system",
        "path": "Location.physicalType.coding.system",
        "min": 1,
        "fixedUri": "http://read.info/readv2"
      },
      {
        "id": "Location.physicalType.coding:readV2.version",
        "path": "Location.physicalType.coding.version",
        "max": "0"
      },
      {
        "id": "Location.physicalType.coding:readV2.code",
        "path": "Location.physicalType.coding.code",
        "min": 1
      },
      {
        "id": "Location.physicalType.coding:readV2.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Location.physicalType.coding.display",
        "min": 1
      },
      {
        "id": "Location.physicalType.coding:readV2.userSelected",
        "path": "Location.physicalType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Location.physicalType.coding:readCTV3",
        "path": "Location.physicalType.coding",
        "sliceName": "readCTV3"
      },
      {
        "id": "Location.physicalType.coding:readCTV3.system",
        "path": "Location.physicalType.coding.system",
        "min": 1,
        "fixedUri": "http://read.info/ctv3"
      },
      {
        "id": "Location.physicalType.coding:readCTV3.version",
        "path": "Location.physicalType.coding.version",
        "max": "0"
      },
      {
        "id": "Location.physicalType.coding:readCTV3.code",
        "path": "Location.physicalType.coding.code",
        "min": 1
      },
      {
        "id": "Location.physicalType.coding:readCTV3.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Location.physicalType.coding.display",
        "min": 1
      },
      {
        "id": "Location.physicalType.coding:readCTV3.userSelected",
        "path": "Location.physicalType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.partOf",
        "path": "Location.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Location-1"
          }
        ]
      }
    ]
  }
}