description: This QuestionnaireResponse resource is constrained to represent the responses given to an Educational History questionnaire, to support the Digital Child Health project. package_name: NHSD.Assets.STU3 derivation: constraint name: DCH-EducationalHistory-QuestionnaireResponse-1 type: QuestionnaireResponse elements: questionnaire: {index: 7} parent: {index: 6} item: array: true min: 1 max: 6 index: 17 slicing: rules: closed ordered: true discriminator: - {path: text, type: value} min: 1 max: 6 slices: educationalEstablishment: match: {text: Educational Establishment} schema: short: Educational establishment _required: true index: 18 elements: linkId: pattern: {type: String, value: educationalEstablishment} index: 19 definition: {index: 20} text: pattern: {type: String, value: Educational Establishment} index: 21 subject: {index: 22} answer: index: 23 elements: valueReference: type: Reference refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1'] index: 24 slicing: slices: valueReference: match: {} schema: type: Reference refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1'] _required: true index: 24 min: 1 item: {index: 25} required: [valueReference] item: {index: 26} required: [text, answer] educationalEstablishmentType: match: {text: Type of Educational establishment} schema: short: Educational establishment attended _required: true index: 27 elements: linkId: pattern: {type: String, value: educationalEstablishmentType} index: 28 definition: {index: 29} text: pattern: {type: String, value: Type of Educational establishment} index: 30 subject: {index: 31} answer: index: 32 elements: valueCoding: type: Coding index: 33 slicing: slices: valueCoding: match: {} schema: type: Coding _required: true index: 33 elements: system: pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/DCH-EducationalEstablishmentType-1'} index: 34 version: {index: 35} code: {index: 36} display: {index: 37} userSelected: {index: 38} required: [display, system, code] item: {index: 39} required: [valueCoding] item: {index: 40} required: [text, answer] educationalEstablishmentStart: match: {text: Year From} schema: short: The Year the child attended the school from _required: true index: 41 elements: linkId: pattern: {type: String, value: educationalEstablishmentStart} index: 42 definition: {index: 43} text: pattern: {type: String, value: Year From} index: 44 subject: {index: 45} answer: index: 46 elements: valueDate: type: date index: 47 slicing: slices: valueDate: match: {} schema: {type: date, _required: true, index: 47} min: 1 item: {index: 48} required: [valueDate] item: {index: 49} required: [text, answer] educationalEstablishmentEnd: match: {text: Year To} schema: short: The year the child left the school _required: true index: 50 elements: linkId: pattern: {type: String, value: educationalEstablishmentEnd} index: 51 definition: {index: 52} text: pattern: {type: String, value: Year To} index: 53 subject: {index: 54} answer: index: 55 elements: valueDate: type: date index: 56 slicing: slices: valueDate: match: {} schema: {type: date, _required: true, index: 56} min: 1 item: {index: 57} required: [valueDate] item: {index: 58} required: [text, answer] educationalAssessmentOutcome: match: {text: Educational Assessment} schema: short: The outcome of an educational assessment index: 59 elements: linkId: pattern: {type: String, value: educationalAssessmentOutcome} index: 60 definition: {index: 61} text: pattern: {type: String, value: Educational Assessment} index: 62 subject: {index: 63} answer: index: 64 elements: valueCoding: type: Coding index: 65 slicing: slices: valueCoding: match: {} schema: type: Coding _required: true index: 65 extensions: snomedCTDescriptionID: {url: h, min: 0, type: Extension, index: 67} elements: extension: index: 66 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: snomedCTDescriptionID: match: {url: null} schema: {type: Extension, url: h, index: 67} min: 0 system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 68 version: {index: 69} code: {index: 70} display: {index: 71} userSelected: {index: 72} required: [display, system, code] item: {index: 73} required: [valueCoding] item: {index: 74} required: [text, answer] specialEducationalNeedType: match: {text: Type of Special Educational Need} schema: short: The type of special educational need that the child has index: 75 elements: linkId: pattern: {type: String, value: specialEducationalNeedType} index: 76 definition: {index: 77} text: pattern: {type: String, value: Type of Special Educational Need} index: 78 subject: {index: 79} answer: index: 80 elements: valueCoding: type: Coding index: 81 slicing: slices: valueCoding: match: {} schema: type: Coding _required: true index: 81 extensions: snomedCTDescriptionID: {url: h, min: 0, type: Extension, index: 83} elements: extension: index: 82 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: snomedCTDescriptionID: match: {url: null} schema: {type: Extension, url: h, index: 83} min: 0 system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 84 version: {index: 85} code: {index: 86} display: {index: 87} userSelected: {index: 88} required: [display, system, code] item: {index: 89} required: [valueCoding] item: {index: 90} required: [text, answer] source: {index: 16} author: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Practitioner-1'] index: 14 elements: reference: {index: 15} required: [reference] status: pattern: {type: Code, value: completed} index: 8 identifier: elements: use: {index: 0} type: {index: 1} value: {index: 2} period: {index: 3} assigner: {index: 4} required: [value] context: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1'] index: 11 elements: reference: {index: 12} required: [reference] basedOn: {index: 5} authored: {index: 13} subject: type: Reference short: The subject of the Educational History questions refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1'] index: 9 elements: reference: {index: 10} required: [reference] package_version: 1.0.0 class: profile kind: resource url: https://fhir.nhs.uk/STU3/StructureDefinition/DCH-EducationalHistory-QuestionnaireResponse-1 base: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse version: 1.2.0 required: [context, item, subject]