Function: extractAllergies()
extractAllergies(
sectionEl,narrativeById,ctx): readonlyAllergyConcern[]
Extract every Allergy Concern Act from an Allergies <section> element. Each
<entry> whose act carries the Allergy Concern Act template becomes an
AllergyConcern; the nested Allergy-Intolerance Observations become
Allergys (including the "No Known Allergies" negated form). Never
throws.
Parameters
sectionEl
Element
narrativeById
ReadonlyMap<string, string>
ctx
Returns
readonly AllergyConcern[]
Example
import { extractAllergies } from "@cosyte/ccda";
const concerns = extractAllergies(sectionEl, section.narrativeById, ctx);