Function: parseBlAttr()
parseBlAttr(
el,name):boolean|undefined
Read a named BL-valued attribute (e.g. negationInd) off an element,
returning the parsed boolean or undefined when absent or non-boolean. This
is the distinct path for attributes like @negationInd that are booleans on
an element rather than a child BL element.
Parameters
el
Element
name
string
Returns
boolean | undefined
Example
import { parseBlAttr } from "@cosyte/ccda";
const negated = parseBlAttr(observationEl, "negationInd"); // boolean | undefined