Function: extractImmunizations()
extractImmunizations(
sectionEl,narrativeById,ctx): readonlyImmunization[]
Extract every Immunization Activity from an Immunizations <section> element.
Each <entry> whose substanceAdministration carries the Immunization
Activity template becomes an Immunization. A negationInd record is
flagged IMMUNIZATION_REFUSED. Never throws.
Parameters
sectionEl
Element
narrativeById
ReadonlyMap<string, string>
ctx
Returns
readonly Immunization[]
Example
import { extractImmunizations } from "@cosyte/ccda";
const shots = extractImmunizations(sectionEl, section.narrativeById, ctx);