description: null package_name: uk.nhsdigital.r4.test derivation: constraint name: NHSDigitalObservation type: Observation elements: category: binding: {strength: required, valueSet: 'https://fhir.nhs.uk/ValueSet/NHSDigital-Observation-category'} mustSupport: true index: 6 elements: coding: index: 7 elements: system: {mustSupport: true, index: 8} code: {mustSupport: true, index: 9} required: [system, code] required: [coding] slicing: rules: open discriminator: - {path: coding.system, type: value} min: null slices: COVID-TestPillar: match: coding: {system: 'https://fhir.nhs.uk/CodeSystem/covid-test-pillar'} schema: index: 10 elements: coding: elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/CodeSystem/covid-test-pillar'} index: 11 UKCoreCategory: match: coding: {system: 'http://terminology.hl7.org/CodeSystem/observation-category'} schema: index: 12 elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/observation-category'} index: 13 method: mustSupport: true index: 24 elements: coding: elements: system: {index: 25} code: {index: 26} display: {index: 27} required: [display, system, code] specimen: mustSupport: true index: 28 elements: identifier: elements: system: {index: 29} value: {index: 30} required: [value, system] value: mustSupport: true choices: [] index: 23 extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: 0 slices: covid19Testing: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://fhir.nhs.uk/StructureDefinition/Extension-COVID19-TestResult', index: 1} min: 0 max: 1 effectiveDateTime: {type: dateTime, mustSupport: true, choiceOf: effective, index: 20} status: {mustSupport: true, index: 5} effective: mustSupport: true choices: [effectiveDateTime] index: 19 code: {mustSupport: true, index: 14} identifier: mustSupport: true index: 2 elements: system: {index: 3} value: {index: 4} required: [value, system] device: mustSupport: true index: 31 elements: identifier: elements: system: {index: 32} value: {index: 33} required: [value, system] display: {index: 34} required: [display] subject: type: Reference constraint: patient-reference: {human: subject - An identifier reference or resource reference must be provided, severity: warning, expression: (reference.exists() or (identifier.exists()))} patient-nhs: {human: Length of the supplied NHS 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(''^([0-9]{10})$''))'} mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient-Minimal'] index: 15 elements: identifier: elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/nhs-number'} index: 16 value: {index: 17} required: [value, system] performer: type: Reference constraint: performer: {human: An identifier reference or resource reference must be provided, severity: error, expression: (reference.exists() or identifier.exists())} mustSupport: true refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-CareTeam', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Organization', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient', 'https://fhir.nhs.uk/StructureDefinition/NHSDigital-PractitionerRole-Minimal'] index: 21 package_version: 2.8.19-prerelease extensions: covid19Testing: {url: 'https://fhir.nhs.uk/StructureDefinition/Extension-COVID19-TestResult', min: 0, max: 1, type: Extension, mustSupport: true, index: 1} class: profile kind: resource url: https://fhir.nhs.uk/StructureDefinition/NHSDigital-Observation base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation version: null required: [effectiveDateTime, identifier, subject, effective]