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: index: 0 slicing: slices: patientInterpreterRequired: match: {} schema: {index: 7} max: 0 contactPreference: match: {} schema: {index: 4} max: 0 patFetalStatus: match: {} schema: type: Extension 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()} url: http://hl7.org/fhir/StructureDefinition/patient-fetalStatus index: 9 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: 8 deathNotificationStatus: match: {} schema: {index: 5} max: 0 birthPlace: match: {} schema: {index: 1} max: 0 birthSex: match: {} schema: {index: 2} 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: 10 slicing: slices: nhsNumber: match: {} schema: index: 11 elements: assigner: {index: 12} maritalStatus: {index: 13} photo: {index: 14} communication: {index: 15} generalPractitioner: {index: 16} link: {index: 17} package_version: 0.6.9 extensions: patientInterpreterRequired: {url: null, max: 0, index: 7} contactPreference: {url: null, max: 0, index: 4} patFetalStatus: url: http://hl7.org/fhir/StructureDefinition/patient-fetalStatus type: Extension 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: 9 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: 8 deathNotificationStatus: {url: null, max: 0, index: 5} birthPlace: {url: null, max: 0, index: 1} birthSex: {url: null, index: 2} class: profile kind: resource url: https://fhir.nhs.uk/StructureDefinition/NHSEngland-Patient-Genomics base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient version: 0.4.0 required: [extension, identifier]