Function: extractPastMedicalHistory()
extractPastMedicalHistory(
sectionEl,narrativeById,ctx): readonlyProblem[]
Extract every bare Problem Observation from a Past Medical History <section>
element. Each <entry> whose direct observation carries the Problem
Observation template becomes a Problem. Never throws.
Parameters
sectionEl
Element
narrativeById
ReadonlyMap<string, string>
ctx
Returns
readonly Problem[]
Example
import { extractPastMedicalHistory } from "@cosyte/ccda";
const history = extractPastMedicalHistory(sectionEl, section.narrativeById, ctx);