<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-Patient" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" />
  <version value="2.4.0" />
  <name value="UKCorePatient" />
  <title value="UK Core Patient" />
  <status value="active" />
  <date value="2023-04-28" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the UK constraints and extensions on the International FHIR resource [Patient](https://hl7.org/fhir/R4/Patient.html)." />
  <purpose value="This profile allows exchange of demographics and other administrative information about an individual receiving care or other health-related services." />
  <copyright value="Copyright © 2021+ HL7 UK 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  http://www.apache.org/licenses/LICENSE-2.0 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. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="cda" />
    <uri value="http://hl7.org/v3/cda" />
    <name value="CDA (R2)" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="loinc" />
    <uri value="http://loinc.org" />
    <name value="LOINC code for the element" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient.extension">
      <path value="Patient.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.extension:birthPlace">
      <path value="Patient.extension" />
      <sliceName value="birthPlace" />
      <short value="The registered place of birth of the patient." />
      <definition value="The registered place of birth of the patient." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthPlace" />
      </type>
    </element>
    <element id="Patient.extension:birthPlace.value[x]">
      <path value="Patient.extension.value[x]" />
      <short value="The registered place of birth of the patient." />
    </element>
    <element id="Patient.extension:birthSex">
      <path value="Patient.extension" />
      <sliceName value="birthSex" />
      <short value="The patient's phenotypic sex at birth." />
      <definition value="The patient's phenotypic sex at birth." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex" />
      </type>
    </element>
    <element id="Patient.extension:cadavericDonor">
      <path value="Patient.extension" />
      <sliceName value="cadavericDonor" />
      <short value="Post-mortem donor status." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-cadavericDonor" />
      </type>
    </element>
    <element id="Patient.extension:cadavericDonor.value[x]">
      <path value="Patient.extension.value[x]" />
      <short value="Post-mortem donor status." />
      <definition value="Flag indicating whether the patient authorized the donation of body parts after death." />
    </element>
    <element id="Patient.extension:contactPreference">
      <path value="Patient.extension" />
      <sliceName value="contactPreference" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference" />
      </type>
    </element>
    <element id="Patient.extension:deathNotificationStatus">
      <path value="Patient.extension" />
      <sliceName value="deathNotificationStatus" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeathNotificationStatus" />
      </type>
    </element>
    <element id="Patient.extension:ethnicCategory">
      <path value="Patient.extension" />
      <sliceName value="ethnicCategory" />
      <short value="The ethnicity of the subject" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-EthnicCategory" />
      </type>
    </element>
    <element id="Patient.extension:residentialStatus">
      <path value="Patient.extension" />
      <sliceName value="residentialStatus" />
      <short value="The residential status of the patient." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ResidentialStatus" />
      </type>
    </element>
    <element id="Patient.extension:patientInterpreterRequired">
      <path value="Patient.extension" />
      <sliceName value="patientInterpreterRequired" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-interpreterRequired" />
      </type>
    </element>
    <element id="Patient.extension:patientInterpreterRequired.value[x]">
      <path value="Patient.extension.value[x]" />
      <short value="Indicator showing whether the patient needs an interpreter" />
      <definition value="Indicator showing if this Patient requires an interpreter to communicate healthcare information to the practitioner." />
    </element>
    <element id="Patient.extension:nhsNumberUnavailableReason">
      <path value="Patient.extension" />
      <sliceName value="nhsNumberUnavailableReason" />
      <short value="Reason why this Patient does not include an NHS Number identifier" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberUnavailableReason" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.identifier:nhsNumber">
      <path value="Patient.identifier" />
      <sliceName value="nhsNumber" />
      <short value="The patient's NHS number" />
      <max value="1" />
    </element>
    <element id="Patient.identifier:nhsNumber.extension">
      <path value="Patient.identifier.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.identifier:nhsNumber.extension:nhsNumberVerificationStatus">
      <path value="Patient.identifier.extension" />
      <sliceName value="nhsNumberVerificationStatus" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus" />
      </type>
    </element>
    <element id="Patient.identifier:nhsNumber.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Patient.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.nhs.uk/Id/nhs-number" />
    </element>
    <element id="Patient.identifier:nhsNumber.value">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Patient.identifier.value" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:nhsNumber.assigner">
      <path value="Patient.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Patient.telecom.system.extension">
      <path value="Patient.telecom.system.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.telecom.system.extension:otherContactSystem">
      <path value="Patient.telecom.system.extension" />
      <sliceName value="otherContactSystem" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem" />
      </type>
    </element>
    <element id="Patient.birthDate.extension">
      <path value="Patient.birthDate.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.birthDate.extension:birthTime">
      <path value="Patient.birthDate.extension" />
      <sliceName value="birthTime" />
      <short value="Time of day of birth." />
      <definition value="The time of day that the patient was born. This includes the date to ensure that the timezone information can be communicated effectively." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime" />
      </type>
    </element>
    <element id="Patient.birthDate.extension:birthTime.value[x]">
      <path value="Patient.birthDate.extension.value[x]" />
      <short value="Time of day of birth." />
      <definition value="The time of day that the patient was born. This includes the date to ensure that the timezone information can be communicated effectively." />
    </element>
    <element id="Patient.address">
      <path value="Patient.address" />
      <definition value="An address for the individual" />
    </element>
    <element id="Patient.address.extension">
      <path value="Patient.address.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.address.extension:addressKey">
      <path value="Patient.address.extension" />
      <sliceName value="addressKey" />
      <short value="A patient's address key and type" />
      <definition value="A patient's address key and type." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey" />
      </type>
    </element>
    <element id="Patient.maritalStatus">
      <path value="Patient.maritalStatus" />
      <binding>
        <strength value="extensible" />
        <description value="An indicator to identify the legal marital status of a person" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-PersonMaritalStatusCode" />
      </binding>
    </element>
    <element id="Patient.contact.extension">
      <path value="Patient.contact.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.contact.extension:contactRank">
      <path value="Patient.contact.extension" />
      <sliceName value="contactRank" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactRank" />
      </type>
    </element>
    <element id="Patient.contact.extension:copyCorrespondenceIndicator">
      <path value="Patient.contact.extension" />
      <sliceName value="copyCorrespondenceIndicator" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-CopyCorrespondenceIndicator" />
      </type>
    </element>
    <element id="Patient.contact.relationship">
      <path value="Patient.contact.relationship" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-PersonRelationshipType" />
      </binding>
    </element>
    <element id="Patient.contact.telecom.system.extension">
      <path value="Patient.contact.telecom.system.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.contact.telecom.system.extension:otherContactSystem">
      <path value="Patient.contact.telecom.system.extension" />
      <sliceName value="otherContactSystem" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem" />
      </type>
    </element>
    <element id="Patient.contact.organization">
      <path value="Patient.contact.organization" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Patient.contact.organization.identifier.assigner">
      <path value="Patient.contact.organization.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Patient.communication.extension">
      <path value="Patient.communication.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.communication.extension:proficiency">
      <path value="Patient.communication.extension" />
      <sliceName value="proficiency" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-proficiency" />
      </type>
    </element>
    <element id="Patient.communication.extension:proficiency.extension">
      <path value="Patient.communication.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.communication.extension:proficiency.extension:level">
      <path value="Patient.communication.extension.extension" />
      <sliceName value="level" />
      <min value="0" />
    </element>
    <element id="Patient.communication.extension:proficiency.extension:level.value[x]">
      <path value="Patient.communication.extension.extension.value[x]" />
      <short value="The proficiency level for the communication" />
      <definition value="The proficiency level for the communication." />
    </element>
    <element id="Patient.communication.extension:proficiency.extension:type">
      <path value="Patient.communication.extension.extension" />
      <sliceName value="type" />
      <min value="0" />
    </element>
    <element id="Patient.communication.extension:proficiency.extension:type.value[x]">
      <path value="Patient.communication.extension.extension.value[x]" />
      <short value="The proficiency type for the communication" />
      <definition value="The proficiency type for the communication." />
    </element>
    <element id="Patient.communication.language">
      <path value="Patient.communication.language" />
      <short value="A ValueSet that identifies the language used by a person." />
      <definition value="A ValueSet that identifies the language used by a person." />
      <binding>
        <strength value="extensible" />
        <description value="A ValueSet that identifies the language used by a person." />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-HumanLanguage" />
      </binding>
    </element>
    <element id="Patient.generalPractitioner">
      <path value="Patient.generalPractitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole" />
      </type>
    </element>
    <element id="Patient.generalPractitioner.identifier.assigner">
      <path value="Patient.generalPractitioner.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Patient.managingOrganization">
      <path value="Patient.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Patient.managingOrganization.identifier.assigner">
      <path value="Patient.managingOrganization.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Patient.link.other">
      <path value="Patient.link.other" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson" />
      </type>
    </element>
    <element id="Patient.link.other.identifier.assigner">
      <path value="Patient.link.other.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
  </differential>
</StructureDefinition>