Skip to content
A

code

function code<P>(at?, opts?): CodeProducer<Coded | null, P>;

Defined in: src/core/producer.ts:290

A BRO coded value ({ code, codeSpace } | null). Reads the element’s text and its codeSpace attribute; absent/nil (no text) → null. A first-class leaf, so presence (optional/required/omit) and array-item handling apply as they do to text / number.

Type ParameterDefault type
P extends Presence"optional"
ParameterType
at?string
opts?LeafOpts<P>

CodeProducer<Coded | null, P>