description: null package_name: uk.nhsdigital.r4 derivation: constraint name: NHSDigitalTask type: Task elements: restriction: mustSupport: true index: 30 elements: period: elements: end: {mustSupport: true, index: 31} reasonCode: mustSupport: true index: 22 elements: coding: index: 23 elements: system: {index: 24} code: {index: 25} display: {index: 26} required: [display, system, code] slicing: rules: open discriminator: - {path: system, type: value} min: null slices: SNOMED: match: {system: 'http://snomed.info/sct'} schema: index: 27 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 28 statusReason: {index: 7} authoredOn: {mustSupport: true, index: 15} note: {mustSupport: true, index: 29} extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: agent: match: {url: null} schema: {short: Provenance of the resource, type: Extension, mustSupport: true, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent', index: 1} min: 0 max: 1 prescription: match: {url: null} schema: {short: EPS Patient Tracker extension, type: Extension, mustSupport: true, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-EPS-Prescription', index: 2} min: 0 max: 1 repeatInformation: match: {url: null} schema: {short: Used in the EPS Prescription Tracker, type: Extension, mustSupport: true, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation', index: 3} min: 0 max: 1 for: constraint: patient-reference: {human: An identifier reference or resource reference must be provided, source: 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task', severity: error, expression: (reference.exists() or identifier.exists())} patient-nhs: {human: NHS Number must be in the English and Welsh NHS Number range or length of the number is wrong., source: 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Claim', severity: error, expression: 'identifier.where(system=''https://fhir.nhs.uk/Id/nhs-number'').exists().not() or (identifier.where(system=''https://fhir.nhs.uk/Id/nhs-number'').exists() and identifier.where(system=''https://fhir.nhs.uk/Id/nhs-number'').value.matches(''^([456789]{1}[0-9]{9})$''))'} mustSupport: true index: 11 elements: identifier: index: 12 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/nhs-number'} index: 13 value: {index: 14} required: [value, system] required: [identifier] requester: type: Reference mustSupport: true refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole-Minimal'] index: 16 elements: identifier: elements: system: {index: 17} value: {index: 18} required: [value, system] status: {mustSupport: true, index: 6} groupIdentifier: {mustSupport: true, index: 5} code: binding: {strength: extensible, valueSet: 'https://fhir.nhs.uk/ValueSet/England-task-code'} mustSupport: true index: 9 identifier: {mustSupport: true, index: 4} intent: {mustSupport: true, index: 8} focus: type: Reference constraint: nhsd-taskfocus: {human: focus - An identifier reference or resource reference must be provided, source: 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task', severity: error, expression: (reference.exists() or identifier.exists())} mustSupport: true refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationRequest', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Bundle-FHIRMessage', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-ServiceRequest'] index: 10 input: {mustSupport: true, index: 32} owner: type: Reference short: Responsible organisation mustSupport: true refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole'] index: 19 elements: identifier: elements: system: {index: 20} value: {index: 21} required: [value, system] package_version: 2.4.7 extensions: agent: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-Provenance-agent', min: 0, max: 1, short: Provenance of the resource, type: Extension, mustSupport: true, index: 1} prescription: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-EPS-Prescription', min: 0, max: 1, short: EPS Patient Tracker extension, type: Extension, mustSupport: true, index: 2} repeatInformation: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-EPS-RepeatInformation', min: 0, max: 1, short: Used in the EPS Prescription Tracker, type: Extension, mustSupport: true, index: 3} class: profile kind: resource url: https://fhir.nhs.uk/StructureDefinition/NHSDigital-Task base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task version: null required: [for, code]