description: This profile defines the Genomics constraints and extensions on the UK Core FHIR resource [Patient](https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient). package_name: uk.nhsengland.genomics.r4 derivation: constraint name: NHSEngland_Patient_Genomics type: Patient elements: extension: array: true min: 2 index: 0 slicing: slices: patientInterpreterRequired: match: {} schema: {index: 9} max: 0 contactPreference: match: {} schema: {index: 4} max: 0 residentialStatus: match: {} schema: {_required: true, index: 8} min: 1 cadavericDonor: match: {} schema: {index: 3} max: 0 ethnicCategory: match: {} schema: {_required: true, index: 6} min: 1 nhsNumberUnavailableReason: match: {} schema: constraint: gen-2: {human: Reason must be provided if NHS number is not provided, severity: error, expression: (Patient.extension(nhsNumberUnavailableReason).exists() and Patient.identifier(nhsNumber).notExists()) or Patient.identifier(nhsNumber).exists()} index: 10 deathNotificationStatus: match: {} schema: {index: 5} max: 0 birthPlace: match: {} schema: {index: 1} max: 0 birthSex: match: {} schema: {index: 2} fetalStatus: match: {} schema: constraint: gen-3: {human: 'fetalStatus SHOULD be provided if a birthDate is not present, indicating the patient resource is likely for a fetus.', severity: warning, expression: (Patient.extension(fetalStatus).exists() and Patient.birthDate.notExists()) or Patient.birthDate.exists()} index: 7 identifier: constraint: gen-4: {human: Identifiers which are not NHS Numbers SHALL have an assigner, severity: error, expression: 'identifier.where(system != ''https://fhir.nhs.uk/Id/nhs-number'').all(assigner.exists())'} index: 11 slicing: slices: nhsNumber: match: {} schema: index: 12 elements: assigner: {index: 13} name: index: 14 elements: family: {index: 15} given: {index: 16} required: [given, family] maritalStatus: {index: 17} photo: {index: 18} communication: {index: 19} generalPractitioner: {index: 20} link: {index: 21} package_version: 0.6.4-pre-release extensions: patientInterpreterRequired: {url: null, max: 0, index: 9} contactPreference: {url: null, max: 0, index: 4} residentialStatus: {url: null, min: 1, _required: true, index: 8} cadavericDonor: {url: null, max: 0, index: 3} ethnicCategory: {url: null, min: 1, _required: true, index: 6} nhsNumberUnavailableReason: url: null constraint: gen-2: {human: Reason must be provided if NHS number is not provided, severity: error, expression: (Patient.extension(nhsNumberUnavailableReason).exists() and Patient.identifier(nhsNumber).notExists()) or Patient.identifier(nhsNumber).exists()} index: 10 deathNotificationStatus: {url: null, max: 0, index: 5} birthPlace: {url: null, max: 0, index: 1} birthSex: {url: null, index: 2} fetalStatus: url: null constraint: gen-3: {human: 'fetalStatus SHOULD be provided if a birthDate is not present, indicating the patient resource is likely for a fetus.', severity: warning, expression: (Patient.extension(fetalStatus).exists() and Patient.birthDate.notExists()) or Patient.birthDate.exists()} index: 7 class: profile kind: resource url: https://fhir.nhs.uk/StructureDefinition/NHSEngland-Patient-Genomics base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient version: 0.3.1 required: [name, identifier]