Function: xsiType()
xsiType(
el):string|undefined
Read the xsi:type attribute (namespace-qualified) that selects a concrete
HL7 v3 datatype for a polymorphic element. Returns undefined when absent.
A leading namespace prefix (e.g. hl7:PQ) is stripped to the local type
name.
Parameters
el
Element
Returns
string | undefined
Example
import { xsiType } from "@cosyte/ccda";
xsiType(valueEl); // "PQ" | "CD" | ... | undefined