description: This AllergyIntolerance resource records the risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance, with further constraints applied to support the Digital Child Health project. package_name: NHSD.Assets.STU3 derivation: constraint name: CareConnect-DCH-AllergyIntolerance-2 type: AllergyIntolerance elements: extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: encounter: match: {url: null} schema: type: Extension url: h index: 1 elements: valueReference: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1'] index: 2 slicing: slices: valueReference: match: {} schema: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1'] index: 2 elements: reference: {index: 3} required: [reference] allergyEnd: match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1'} schema: type: Extension url: h index: 4 elements: url: pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1'} index: 5 evidence: match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1'} schema: type: Extension url: h index: 6 elements: url: pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1'} index: 7 code: elements: coding: extensions: snomedCTDescriptionID: {url: h, min: 0, type: Extension, index: 9} elements: extension: index: 8 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: snomedCTDescriptionID: match: {url: null} schema: {type: Extension, url: h, index: 9} min: 0 patient: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1'] index: 10 elements: reference: {index: 11} required: [reference] assertedDate: {index: 12} reaction: elements: substance: index: 13 elements: coding: index: 14 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 15 required: [coding] manifestation: {index: 16} onset: {index: 17} exposureRoute: index: 18 elements: coding: index: 19 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: snomedCT: match: {system: 'http://snomed.info/sct'} schema: index: 20 extensions: snomedCTDescriptionID: url: h type: Extension index: 22 elements: url: pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'} index: 23 elements: extension: index: 21 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: snomedCTDescriptionID: match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'} schema: type: Extension url: h index: 22 elements: url: pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'} index: 23 system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 24 version: {index: 25} code: {index: 26} display: {index: 27} required: [display, system, code] note: elements: author: choices: [authorReference, authorReference, authorReference, authorString] index: 29 authorReference: type: Reference choiceOf: author refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Practitioner-1'] index: 30 authorString: {type: string, choiceOf: author, index: 33} package_version: 1.0.0 extensions: encounter: url: h type: Extension index: 1 elements: valueReference: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1'] index: 2 slicing: slices: valueReference: match: {} schema: type: Reference refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1'] index: 2 elements: reference: {index: 3} required: [reference] allergyEnd: url: h type: Extension index: 4 elements: url: pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1'} index: 5 evidence: url: h type: Extension index: 6 elements: url: pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1'} index: 7 class: profile kind: resource url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-AllergyIntolerance-2 base: http://hl7.org/fhir/StructureDefinition/AllergyIntolerance version: 2.2.0 required: [assertedDate]