description: This template reflects a discrete observation about a patient's allergy or intolerance. Because it is a discrete observation, it will have a statusCode of \"completed\". The effectiveTime, also referred to as the \"biologically relevant time\" is the time at which the observation holds for the patient. For a provider seeing a patient in the clinic today, observing a history of penicillin allergy that developed five years ago, the effectiveTime is five years ago. \n\nThe effectiveTime of the Allergy - Intolerance Observation is the definitive indication of whether or not the underlying allergy/intolerance is resolved. If known to be resolved, then an effectiveTime/high would be present. If the date of resolution is not known, then effectiveTime/high will be present with a nullFlavor of \"UNK\".\n\nThe agent responsible for an allergy or adverse reaction is not always a manufactured material (for example, food allergies), nor is it necessarily consumed. The following constraints reflect limitations in the base CDA R2 specification, and should be used to represent any type of responsible agent, i.e., use playingEntity classCode = \"MMAT\" for all agents, manufactured or not. package_name: hl7.cda.us.ccda derivation: constraint name: AllergyIntoleranceObservation type: http://hl7.org/cda/stds/core/StructureDefinition/Observation elements: templateId: array: true min: 2 index: 0 slicing: slices: allergy: match: {} schema: _required: true index: 1 elements: root: pattern: {type: String, value: 2.16.840.1.113883.10.20.22.4.7} index: 2 extension: pattern: {type: String, value: '2014-06-09'} index: 3 required: [root, extension] extensions: {} negationInd: {short: Use negationInd="true" to indicate that the allergy was not observed., index: 4} effectiveTime: {short: 'If the allergy/intolerance is known to be resolved, but the date of resolution is not known, then the high element SHALL be present, and the nullFlavor attribute SHALL be set to ''UNK''.', index: 5} participant: index: 6 slicing: slices: participant1: match: {} schema: index: 6 elements: participantRole: elements: playingEntity: elements: code: short: (USCDI) Substance binding: {strength: preferred, valueSet: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1186.8'} index: 7 package_version: 3.0.0-ballot class: logical kind: logical url: http://hl7.org/cda/us/ccda/StructureDefinition/AllergyIntoleranceObservation base: http://hl7.org/cda/us/ccda/StructureDefinition/SubstanceOrDeviceAllergyIntoleranceObservation version: 3.0.0-ballot