<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NHSEngland-Patient-Genomics" />
  <url value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Patient-Genomics" />
  <version value="0.3.0" />
  <name value="NHSEngland_Patient_Genomics" />
  <title value="NHSEngland Patient Genomics" />
  <status value="active" />
  <date value="2026-04-16" />
  <publisher value="NHS England" />
  <contact>
    <name value="NHS England" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the Genomics constraints and extensions on the UK Core FHIR resource [Patient](https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient)." />
  <purpose value="The focal resource for recording who a test order and genomic report are for.&#xD;&#xA;&#xD;&#xA;It is expected that client's will need to post Patient resources to the central GMS as some demographic information specific to Genomics will not have been captured within other systems such as PDS.&#xD;&#xA;&#xD;&#xA;For patients included within PDS, it is expected source systems SHOULD only send genomic specific information not recorded against PDS, e.g. extensions, such as birthSex, genomic specific identifiers and a link to the PDS record, as well as the NHS number identifier. (NOTE: examples provided for patient resources are fully expanded to illustrate how information should be structured but any infomation already recorded by PDS SHOULD NOT be duplicated within the genomic order management services). Querying patient demographic information, will be supported using the search parameters provided by the Genomic Order Management Service, whch will pass through parameters to PDS where demographics are stored against this system. Client systems will then be required to follow the PDS link within the Genomics-Patient record to retrieve the PDS patient.&#xD;&#xA;&#xD;&#xA;It is a requirement on source systems that patient NHS numbers are traced and verified with PDS, if the patient is registered with PDS, before creation of patient resources on the Genomic Order Management broker.&#xD;&#xA;&#xD;&#xA;For patients not included on PDS, e.g. private/overseas patients or fetal records, the requester SHOULD send all information necessary to facilitate testing and interpretation of the request. Where this patient is later registered on PDS, identified through assignment of an NHS number, demographic details SHALL be stripped from the genomic record to avoid data duplication.&#xD;&#xA;&#xD;&#xA;Alternatively, systems MAY opt to include pointers to the Patient resource on their local system, though the mechanism preferred by the NHS England Genomics Unit has yet to be decided.&#xD;&#xA;&#xD;&#xA;Restricted Patients: PDS guidance on managing the data of sensitive patient shall be followed. Some patients are tagged as restricted and are sometimes known as sensitive patients. Restricted patients can be retrieved; however, location-sensitive fields such as address, telecom and generalPractitioner are removed.&#xD;&#xA;&#xD;&#xA;The restricted flag can be found in the data under meta/security on the patient resource. See in Example: Patient-SensitivePatient-Example" />
  <copyright value="Copyright © 2026+ NHS England 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" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient.extension">
      <path value="Patient.extension" />
      <min value="2" />
    </element>
    <element id="Patient.extension:birthPlace">
      <path value="Patient.extension" />
      <sliceName value="birthPlace" />
      <max value="0" />
    </element>
    <element id="Patient.extension:birthSex">
      <path value="Patient.extension" />
      <sliceName value="birthSex" />
      <definition value="Extension used for recording the phenotypic sex of the patient, as recorded at birth." />
    </element>
    <element id="Patient.extension:cadavericDonor">
      <path value="Patient.extension" />
      <sliceName value="cadavericDonor" />
      <max value="0" />
    </element>
    <element id="Patient.extension:contactPreference">
      <path value="Patient.extension" />
      <sliceName value="contactPreference" />
      <max value="0" />
    </element>
    <element id="Patient.extension:deathNotificationStatus">
      <path value="Patient.extension" />
      <sliceName value="deathNotificationStatus" />
      <max value="0" />
    </element>
    <element id="Patient.extension:ethnicCategory">
      <path value="Patient.extension" />
      <sliceName value="ethnicCategory" />
      <min value="1" />
    </element>
    <element id="Patient.extension:fetalStatus">
      <path value="Patient.extension" />
      <sliceName value="fetalStatus" />
      <definition value="Extension used for determining the life status of the fetus. SHOULD always be present for a fetal patient record to help with identification." />
    </element>
    <element id="Patient.extension:residentialStatus">
      <path value="Patient.extension" />
      <sliceName value="residentialStatus" />
      <min value="1" />
    </element>
    <element id="Patient.extension:patientInterpreterRequired">
      <path value="Patient.extension" />
      <sliceName value="patientInterpreterRequired" />
      <max value="0" />
    </element>
    <element id="Patient.extension:nhsNumberUnavailableReason">
      <path value="Patient.extension" />
      <sliceName value="nhsNumberUnavailableReason" />
      <constraint>
        <key value="gen-2" />
        <severity value="error" />
        <human value="Reason must be provided if NHS number is not provided" />
        <expression value="(Patient.extension(nhsNumberUnavailableReason).exists() and Patient.identifier(nhsNumber).notExists()) or Patient.identifier(nhsNumber).exists()" />
      </constraint>
    </element>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <slicing>
        <rules value="open" />
      </slicing>
      <definition value="SHALL be present for Patients within the Genomic Order Management ecosystem. It is preferred that all patients with an NHS number have this included within the Patient resource upon submission of a test order. Patient who do not have an NHS number SHOULD have a temporary one registered/assigned with PDS.&#xD;&#xA;For patient records where the NHS number has been traced from PDS, the trace status SHOULD be provided within the NHS Number identifier slice.&#xD;&#xA;&#xD;&#xA;Additional identifiers SHOULD include an appropriate naming system scheme which clearly identifies the assigner (to disambiguate the identifier from other resources where these are not nationally unique). Alternatively, the OID for local identifier MAY be used, with the 'assigner' organization explicitly referenced." />
      <min value="1" />
    </element>
    <element id="Patient.identifier:nhsNumber">
      <path value="Patient.identifier" />
      <sliceName value="nhsNumber" />
    </element>
    <element id="Patient.identifier:nhsNumber.assigner">
      <path value="Patient.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Organization-Genomics" />
      </type>
    </element>
    <element id="Patient.identifier:localIdentifier">
      <path value="Patient.identifier" />
      <sliceName value="localIdentifier" />
    </element>
    <element id="Patient.identifier:localIdentifier.assigner">
      <path value="Patient.identifier.assigner" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:localIdentifier.assigner.identifier">
      <path value="Patient.identifier.assigner.identifier" />
      <min value="1" />
      <fixedIdentifier>
        <system value="https://fhir.nhs.uk/Id/ods-organization-code" />
      </fixedIdentifier>
    </element>
    <element id="Patient.name">
      <path value="Patient.name" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Patient.name.family">
      <path value="Patient.name.family" />
      <min value="1" />
    </element>
    <element id="Patient.name.given">
      <path value="Patient.name.given" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Patient.maritalStatus">
      <path value="Patient.maritalStatus" />
      <max value="0" />
    </element>
    <element id="Patient.photo">
      <path value="Patient.photo" />
      <max value="0" />
    </element>
    <element id="Patient.communication">
      <path value="Patient.communication" />
      <max value="0" />
    </element>
    <element id="Patient.generalPractitioner">
      <path value="Patient.generalPractitioner" />
      <max value="0" />
    </element>
    <element id="Patient.link">
      <path value="Patient.link" />
      <definition value="For patient records where additional information exists elsewhere, for example, within PDS or the source system EHR, this MAY be referenced through the link field, specifying the url through which the related patient information can be accessed." />
    </element>
  </differential>
</StructureDefinition>