Skip to main content
Version: v0.0.3

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?

readonly optional code?: CD


key?

readonly optional key?: string


narrativeById

readonly narrativeById: ReadonlyMap<string, string>


narrativeText?

readonly optional narrativeText?: string


recognizedBy?

readonly optional recognizedBy?: "templateId" | "loinc"


subsections

readonly subsections: readonly CcdaSection[]


templateIds

readonly templateIds: readonly II[]


title?

readonly optional title?: string