<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2017-11-22T10:28:21.647+00:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pa" />
  </extension>
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Location-1" />
  <version value="1.3.0" />
  <name value="CareConnect-GPC-Location-1" />
  <status value="active" />
  <date value="2024-01-22T11:39:06.3872207+00:00" />
  <publisher value="HL7 UK" />
  <description value="The Location resource provides information and details on the physical location and the services provided." />
  <copyright value="Copyright © 2019 HL7 UK&#xD;&#xA;&#xD;&#xA;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at&#xD;&#xA;&#xD;&#xA;http://www.apache.org/licenses/LICENSE-2.0&#xD;&#xA;&#xD;&#xA;Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; 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.&#xD;&#xA;&#xD;&#xA;HL7® FHIR® standard Copyright © 2011+ HL7&#xD;&#xA;&#xD;&#xA;The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at&#xD;&#xA;&#xD;&#xA;https://www.hl7.org/fhir/license.html" />
  <fhirVersion value="3.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.identifier">
      <path value="Location.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <ordered value="false" />
        <rules value="openAtEnd" />
      </slicing>
    </element>
    <element id="Location.identifier:odsSiteCode">
      <path value="Location.identifier" />
      <sliceName value="odsSiteCode" />
      <short value="ODS Site code to identify the organisation at site level" />
      <definition value="ODS Site code to identify the organisation at site level." />
      <max value="1" />
    </element>
    <element id="Location.identifier:odsSiteCode.use">
      <path value="Location.identifier.use" />
      <max value="0" />
    </element>
    <element id="Location.identifier:odsSiteCode.type">
      <path value="Location.identifier.type" />
      <max value="0" />
    </element>
    <element id="Location.identifier:odsSiteCode.system">
      <path value="Location.identifier.system" />
      <short value="ODS Code" />
      <min value="1" />
      <fixedUri value="https://fhir.nhs.uk/Id/ods-site-code" />
    </element>
    <element id="Location.identifier:odsSiteCode.value">
      <path value="Location.identifier.value" />
      <short value="The ODS Site code name, to reflect the code used" />
      <min value="1" />
    </element>
    <element id="Location.identifier:odsSiteCode.period">
      <path value="Location.identifier.period" />
      <max value="0" />
    </element>
    <element id="Location.identifier:odsSiteCode.assigner">
      <path value="Location.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <mustSupport value="true" />
    </element>
    <element id="Location.mode">
      <path value="Location.mode" />
      <max value="0" />
    </element>
    <element id="Location.telecom">
      <path value="Location.telecom" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address.state">
      <path value="Location.address.state" />
      <max value="0" />
    </element>
    <element id="Location.physicalType.coding">
      <path value="Location.physicalType.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <ordered value="true" />
        <rules value="closed" />
      </slicing>
    </element>
    <element id="Location.physicalType.coding:snomedCT">
      <path value="Location.physicalType.coding" />
      <sliceName value="snomedCT" />
    </element>
    <element id="Location.physicalType.coding:snomedCT.system">
      <path value="Location.physicalType.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Location.physicalType.coding:snomedCT.version">
      <path value="Location.physicalType.coding.version" />
      <max value="0" />
    </element>
    <element id="Location.physicalType.coding:snomedCT.code">
      <path value="Location.physicalType.coding.code" />
      <min value="1" />
    </element>
    <element id="Location.physicalType.coding:snomedCT.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Location.physicalType.coding.display" />
      <min value="1" />
    </element>
    <element id="Location.physicalType.coding:snomedCT.userSelected">
      <path value="Location.physicalType.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Location.physicalType.coding:readV2">
      <path value="Location.physicalType.coding" />
      <sliceName value="readV2" />
    </element>
    <element id="Location.physicalType.coding:readV2.system">
      <path value="Location.physicalType.coding.system" />
      <min value="1" />
      <fixedUri value="http://read.info/readv2" />
    </element>
    <element id="Location.physicalType.coding:readV2.version">
      <path value="Location.physicalType.coding.version" />
      <max value="0" />
    </element>
    <element id="Location.physicalType.coding:readV2.code">
      <path value="Location.physicalType.coding.code" />
      <min value="1" />
    </element>
    <element id="Location.physicalType.coding:readV2.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Location.physicalType.coding.display" />
      <min value="1" />
    </element>
    <element id="Location.physicalType.coding:readV2.userSelected">
      <path value="Location.physicalType.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Location.physicalType.coding:readCTV3">
      <path value="Location.physicalType.coding" />
      <sliceName value="readCTV3" />
    </element>
    <element id="Location.physicalType.coding:readCTV3.system">
      <path value="Location.physicalType.coding.system" />
      <min value="1" />
      <fixedUri value="http://read.info/ctv3" />
    </element>
    <element id="Location.physicalType.coding:readCTV3.version">
      <path value="Location.physicalType.coding.version" />
      <max value="0" />
    </element>
    <element id="Location.physicalType.coding:readCTV3.code">
      <path value="Location.physicalType.coding.code" />
      <min value="1" />
    </element>
    <element id="Location.physicalType.coding:readCTV3.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Location.physicalType.coding.display" />
      <min value="1" />
    </element>
    <element id="Location.physicalType.coding:readCTV3.userSelected">
      <path value="Location.physicalType.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Location-1" />
      </type>
    </element>
  </differential>
</StructureDefinition>