Interface: BuildCcdaAllergy
An Allergy Concern for the Allergies section. Either an allergen (RxNorm at
ingredient level by default, or UNII / SNOMED CT) or noKnownAllergy: true (the negationInd "No Known Allergies" assertion) is required, the two
are never conflated. reaction, severity, and criticality are optional;
severity (of a reaction) and criticality (of the propensity) are distinct axes.
Example
import type { BuildCcdaAllergy } from "@cosyte/ccda";
const penicillin: BuildCcdaAllergy = {
allergen: { code: "7980", displayName: "Penicillin G" },
reaction: { code: "247472004", displayName: "Hives" },
criticality: { code: "CRITH", displayName: "High criticality" },
};
const nka: BuildCcdaAllergy = { noKnownAllergy: true };
Properties
allergen?
readonlyoptionalallergen?:BuildCode
The offending substance (RxNorm ingredient default, or UNII / SNOMED CT).
criticality?
readonlyoptionalcriticality?:BuildCode
The propensity criticality (HL7 ObservationValue by default), optional.
noKnownAllergy?
readonlyoptionalnoKnownAllergy?:boolean
Assert "No Known Allergies" (negationInd="true"), mutually exclusive with allergen.
onset?
readonlyoptionalonset?:string
Onset date as an HL7 date string, the Allergy Concern Act effectiveTime/low
(when the allergy became a tracked concern), optional. When omitted the SHALL
low is emitted as nullFlavor="UNK", never a fabricated date.
reaction?
readonlyoptionalreaction?:BuildCode
The reaction manifestation (SNOMED CT by default), optional.
resolution?
readonlyoptionalresolution?:string
Resolution date as an HL7 date string, the concern effectiveTime/high
(when the concern was completed). Requires status: "resolved", exactly as a
BuildCcdaProblem resolution does; buildCcda rejects a
resolution date on a non-resolved allergy. A resolved allergy whose date is
unknown still emits a nullFlavor="UNK" high.
severity?
readonlyoptionalseverity?:BuildCode
The reaction's severity (SNOMED CT by default), optional.
status?
readonlyoptionalstatus?:"active"|"resolved"|"inactive"
Active / resolved / inactive; defaults to "active".
type?
readonlyoptionaltype?:BuildCode
The propensity type, the Allergy-Intolerance Observation value (SNOMED
CT by default), from the C-CDA Allergy/Intolerance Type value set: e.g. drug
allergy 416098002, food allergy 414285001, environmental 426232007.
Defaults to the neutral 419199007 "Allergy to substance", the builder does
not guess "Drug allergy" for a non-drug allergen.