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: index: 15 extensions: addressKey: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AddressKey', max: 1, type: Extension, index: 17} elements: extension: index: 16 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: 17} max: 1 managingOrganization: elements: identifier: index: 24 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-organization-code'} index: 25 required: [identifier] name: index: 9 elements: use: {index: 10} birthDate: {index: 14} 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: index: 7 slicing: slices: nhsNumber: match: {} schema: {_required: true, index: 8} min: 1 telecom: elements: system: extensions: otherContactSystem: {url: 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem', max: 1, type: Extension, index: 12} elements: extension: index: 11 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: 12} max: 1 generalPractitioner: index: 18 elements: identifier: index: 19 elements: system: {index: 20} value: {index: 21} 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: 22 elements: identifier: elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/ods-organization-code'} index: 23 gender: {index: 13} package_version: 2.1.2-dev 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]