Interface: CcdaSection
A framed C-CDA section. key/title carry the recognized identity (when the
section matched the catalog); code and templateIds are the raw signals;
narrativeText is the human-readable <text> block and narrativeById
indexes its ID-bearing nodes; subsections holds nested
<component><section> children.
Example
import type { CcdaSection } from "@cosyte/ccda";
function summarize(s: CcdaSection): string {
return `${s.key ?? "unknown"}: ${s.narrativeText ?? "(no narrative)"}`;
}
Properties
code?
readonlyoptionalcode?:CD
key?
readonlyoptionalkey?:string
narrativeById
readonlynarrativeById:ReadonlyMap<string,string>
narrativeText?
readonlyoptionalnarrativeText?:string
recognizedBy?
readonlyoptionalrecognizedBy?:"templateId"|"loinc"
subsections
readonlysubsections: readonlyCcdaSection[]
templateIds
readonlytemplateIds: readonlyII[]
title?
readonlyoptionaltitle?:string