description: '### identifier\r\n\r\nAt least one patient identifier, **MUST** be provided. Where a traced NHS number is available for a patient this MUST be included. \r\n\r\nLocal identiers such as MRN **MUST** include a *system* which identifies NHS provider/assigning authority.' package_name: uk.nhsdigital.r4 derivation: constraint name: NHSDigital-Patient type: Patient elements: address: mustSupport: true index: 19 extensions: addressKey: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey', max: 1, type: Extension, index: 21} elements: extension: index: 20 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: addressKey: match: {url: null} schema: {type: Extension, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey', index: 21} max: 1 managingOrganization: elements: identifier: index: 29 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-organization-code'} index: 30 required: [identifier] name: mustSupport: true index: 10 elements: use: {index: 11} family: {mustSupport: true, index: 12} given: {mustSupport: true, index: 13} birthDate: {mustSupport: true, index: 18} extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: nominatedPharmacy: match: {url: null} schema: {type: Extension, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NominatedPharmacy', index: 1} nhsCommunication: match: {url: null} schema: {type: Extension, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSCommunication', index: 2} max: 1 deathNotificationStatus: match: {url: null} schema: {type: Extension, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeathNotificationStatus', index: 3} medicalApplianceSupplier: match: {url: null} schema: {type: Extension, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicalApplianceSupplier', index: 4} max: 1 preferredDispenserOrganization: match: {url: null} schema: {type: Extension, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PreferredDispenserOrganization', index: 5} max: 1 contactPreference: match: {url: null} schema: {type: Extension, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference', index: 6} identifier: mustSupport: true index: 7 slicing: slices: nhsNumber: match: {} schema: mustSupport: true _required: true index: 8 elements: system: {mustSupport: true, index: 9} telecom: mustSupport: true index: 14 elements: system: extensions: otherContactSystem: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem', max: 1, type: Extension, index: 16} elements: extension: index: 15 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: otherContactSystem: match: {url: null} schema: {type: Extension, url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem', index: 16} max: 1 generalPractitioner: constraint: nhsd-5: {human: generalPractitioner - a display name should be provided, severity: warning, expression: (display.exists())} mustSupport: true index: 23 elements: identifier: index: 24 elements: system: {index: 25} value: {index: 26} required: [value, system] required: [identifier] slicing: rules: openAtEnd discriminator: - {path: identifier.system, type: value} min: 1 max: 1 slices: registeredGPPractice: match: identifier: {system: 'https://fhir.nhs.uk/Id/ods-organization-code'} schema: _required: true index: 27 elements: identifier: elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-organization-code'} index: 28 gender: {mustSupport: false, index: 17} contact: {mustSupport: false, index: 22} package_version: 2.1.25-discovery extensions: nominatedPharmacy: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NominatedPharmacy', type: Extension, index: 1} nhsCommunication: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSCommunication', max: 1, type: Extension, index: 2} deathNotificationStatus: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DeathNotificationStatus', type: Extension, index: 3} medicalApplianceSupplier: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicalApplianceSupplier', max: 1, type: Extension, index: 4} preferredDispenserOrganization: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-PreferredDispenserOrganization', max: 1, type: Extension, index: 5} contactPreference: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference', type: Extension, index: 6} class: profile kind: resource url: https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient version: null required: [gender, name, address, identifier, birthDate, generalPractitioner]