code
Function: code()
Section titled “Function: 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 Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
P extends Presence | "optional" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
at? | string |
opts? | LeafOpts<P> |
Returns
Section titled “Returns”CodeProducer<Coded | null, P>