Function: children()
children(
el,localName): readonlyElement[]
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")) {
// ...
}