Function: extractClinical()
extractClinical(
structuredBody,ctx):ClinicalEntries
Extract the reconciliation triad from a structuredBody element. Walks every
section, runs each triad extractor, and flags misplaced entries. Never
throws; an unstructured document (no structuredBody) is handled by the
caller and never reaches here.
Parameters
structuredBody
Element
ctx
Returns
Example
import { extractClinical } from "@cosyte/ccda";
const entries = extractClinical(structuredBodyEl, ctx);
console.log(entries.problems.length);