Skip to main content
Version: v0.0.3

Function: children()

children(el, localName): readonly Element[]

Return all direct child elements in the HL7 v3 namespace with the given local name, in document order. Empty array when none match.

Parameters

el

Element

localName

string

Returns

readonly Element[]

Example

import { children } from "@cosyte/ccda";
for (const comp of children(bodyEl, "component")) {
// ...
}