description: null package_name: uk.nhsdigital.r4.test derivation: constraint name: NHSDigitalServiceRequest type: ServiceRequest elements: performerType: short: Requested Specialty Name mustSupport: true index: 39 elements: coding: binding: {strength: example, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-CareSettingType'} index: 40 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: treatmentFunctionCodes: match: {system: 'https://fhir.nhs.uk/CodeSystem/NHSDataModelAndDictionary-treatment-function'} schema: binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDataModelAndDictionary-treatment-function'} mustSupport: true index: 41 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/NHSDataModelAndDictionary-treatment-function'} index: 42 eRSSpecialty: match: {system: 'https://fhir.nhs.uk/CodeSystem/eRS-Specialty'} schema: binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-eRS-Specialty'} index: 43 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/eRS-Specialty'} index: 44 category: mustSupport: true index: 16 elements: coding: index: 17 elements: system: {index: 18} code: {index: 19} required: [system, code] slicing: rules: open discriminator: - {path: system, type: value} min: 1 slices: BARSCategory: match: {system: 'https://fhir.nhs.uk/CodeSystem/message-category-servicerequest'} schema: binding: {strength: preferred, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-BARS-message-category'} index: 20 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/message-category-servicerequest'} index: 21 NHSDigitalServiceRequestCategory: match: {system: 'http://snomed.info/sct'} schema: binding: {strength: preferred, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-ServiceRequest-category'} index: 22 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 23 required: [coding] supportingInfo: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Resource', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-DocumentReference'] index: 50 encounter: type: Reference refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-Encounter'] index: 36 reasonCode: {mustSupport: true, index: 49} authoredOn: {short: Referral Initiated Date, mustSupport: true, index: 37} note: {mustSupport: true, index: 51} extension: index: 1 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: ERSAdviceAndGuidance: match: {url: null} schema: {type: Extension, short: ERS Advice and Guidance, mustSupport: true, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-ERS-Referral', index: 2} min: 0 ERSServiceRequestState: match: {url: null} schema: {type: Extension, short: Request Status, mustSupport: true, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-eRS-ServiceRequest-State', index: 3} min: 0 portalLink: match: {url: null} schema: {short: Portal Link, type: Extension, mustSupport: true, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-Portal-Link', index: 4} min: 0 max: 1 serviceRequestPriority: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-ServiceRequest-Priority', index: 5} min: 0 max: 1 requester: type: Reference mustSupport: true refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole-Minimal'] index: 38 priority: {mustSupport: true, index: 24} id: {short: Local Referral ID, index: 0} code: mustSupport: true index: 25 elements: coding: index: 26 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: SNOMEDProcedureCode: match: {system: 'http://snomed.info/sct'} schema: index: 27 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 28 code: {index: 29} required: [system, code] ServiceRequestCode: match: {system: 'https://fhir.nhs.uk/CodeSystem/ServiceRequest-Code'} schema: index: 30 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/ServiceRequest-Code'} index: 31 code: {index: 32} required: [system, code] identifier: mustSupport: true index: 6 elements: value: {index: 7} required: [value] slicing: rules: open discriminator: - {path: system, type: value} min: 1 slices: UBRN: match: {system: 'https://fhir.nhs.uk/Id/UBRN'} schema: short: Unique Booking Reference Numbe mustSupport: true index: 8 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/UBRN'} index: 9 value: {index: 10} required: [value, system] intent: {index: 15} basedOn: type: Reference mustSupport: true refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-CarePlan', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-MedicationRequest', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-ServiceRequest'] index: 11 elements: identifier: mustSupport: true index: 12 elements: system: {index: 13} value: {index: 14} required: [value, system] subject: type: Reference constraint: patient-reference: {human: An identifier reference or resource reference must be provided, 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., 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 refers: ['https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient'] index: 33 elements: identifier: elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/nhs-number'} index: 34 value: {index: 35} required: [value, system] performer: mustSupport: true index: 45 elements: identifier: mustSupport: true index: 46 elements: system: {index: 47} value: {index: 48} required: [value, system] package_version: 2.8.10-prerelease extensions: ERSAdviceAndGuidance: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-ERS-Referral', min: 0, type: Extension, short: ERS Advice and Guidance, mustSupport: true, index: 2} ERSServiceRequestState: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-eRS-ServiceRequest-State', min: 0, type: Extension, short: Request Status, mustSupport: true, index: 3} portalLink: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-Portal-Link', min: 0, max: 1, short: Portal Link, type: Extension, mustSupport: true, index: 4} serviceRequestPriority: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-ServiceRequest-Priority', min: 0, max: 1, type: Extension, mustSupport: true, index: 5} class: profile kind: resource url: https://fhir.nhs.uk/StructureDefinition/NHSDigital-ServiceRequest base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-ServiceRequest version: null required: [identifier, category]