PackagesCanonicalsLogsProblems
    Packages
    uk.nhsdigital.r4@2.4.7
    https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient
description: This profile is designed around Patient Demographics Services and PDS may be used as the source of this data. \r\nUse of PDS is not mandatory for Patient resources, Patient Administration Systems (PAS) and Master Patient Index (MPI) may be used instead. Only traced NHS Number SHOULD be used with this resource unless explicitly stated. Within NHS Trusts the inclusion of MRN (Medical Record Numbers) identifiers is highly recommended.
package_name: uk.nhsdigital.r4
derivation: constraint
name: NHSDigitalPatient
type: Patient
elements:
  address:
    mustSupport: true
    index: 16
    extensions:
      addressKey: {url: null, min: 0, max: 1, mustSupport: true, index: 18}
    elements:
      extension:
        index: 17
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            addressKey:
              match: {url: null}
              schema: {mustSupport: true, index: 18}
              min: 0
              max: 1
      use: {short: 'The following values are allowed: home, work, temp, billing', index: 19}
      line: {index: 20}
  managingOrganization:
    elements:
      identifier:
        index: 33
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-organization-code'}
            index: 34
    required: [identifier]
  name:
    mustSupport: true
    index: 7
    elements:
      use: {short: 'The following values are allowed:  usual, temp, nickname, old, maiden', index: 8}
      family: {mustSupport: true, index: 9}
      given: {mustSupport: true, array: true, max: 5, index: 10}
  birthDate: {mustSupport: true, index: 13}
  multipleBirth:
    choices: []
    index: 22
  deceased:
    mustSupport: true
    choices: []
    index: 15
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        medicalApplianceSupplier:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicalApplianceSupplier', index: 1}
          min: 0
          max: 1
        nominatedPharmacy:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NominatedPharmacy', index: 2}
          min: 0
        preferredDispenserOrganization:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PreferredDispenserOrganization', index: 3}
          min: 0
          max: 1
  communication: {mustSupport: true, index: 24}
  identifier:
    short: The patient's NHS number. The primary identifier of a patient, unique within NHS England and Wales. Always 10 digits and must be a valid NHS number.
    mustSupport: true
    index: 4
    slicing:
      slices:
        nhsNumber:
          match: {}
          schema:
            mustSupport: true
            index: 5
            elements:
              system: {mustSupport: true, index: 6}
  telecom: {mustSupport: true, index: 11}
  generalPractitioner:
    constraint:
      nhsd-5: {human: generalPractitioner - a display name should be provided, source: 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient', severity: warning, expression: (display.exists())}
    refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Practitioner', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole']
    type: Reference
    mustSupport: true
    index: 25
    elements:
      identifier:
        index: 26
        elements:
          system: {index: 27}
          value: {index: 28}
        required: [value, system]
    required: [identifier]
    slicing:
      rules: openAtEnd
      discriminator:
      - {path: identifier.system, type: value}
      min: null
      slices:
        registeredGPPractice:
          match:
            identifier: {system: 'https://fhir.nhs.uk/Id/ods-organization-code'}
          schema:
            index: 29
            elements:
              identifier:
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-organization-code'}
                    index: 30
        registeredGeneralMedicalPractitioner:
          match:
            identifier: {system: 'https://fhir.nhs.uk/Id/gmp-number'}
          schema:
            short: Patient registered GP
            index: 31
            elements:
              identifier:
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/gmp-number'}
                    index: 32
  gender: {mustSupport: true, index: 12}
  contact: {mustSupport: true, index: 23}
package_version: 2.4.7
extensions:
  medicalApplianceSupplier: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicalApplianceSupplier', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
  nominatedPharmacy: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NominatedPharmacy', min: 0, type: Extension, mustSupport: true, index: 2}
  preferredDispenserOrganization: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PreferredDispenserOrganization', min: 0, max: 1, type: Extension, mustSupport: true, index: 3}
class: profile
kind: resource
url: https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient
base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient
version: null