Skip to main content
Version: v0.0.3

Function: requiredSectionKeys()

requiredSectionKeys(documentType): readonly string[]

The catalog section keys a DocumentType SHALL contain, in a stable order. Returns an empty array when no unconditional in-catalog SHALL section is asserted for that type (see the module note, empty ≠ "no requirements").

Parameters

documentType

DocumentType

Returns

readonly string[]

Example

import { requiredSectionKeys } from "@cosyte/ccda";
requiredSectionKeys("ccd"); // ["allergies", "medications", "problems", "results"]
requiredSectionKeys("progressNote"); // []