Function: claimView()
claimView(
transactionCode,segments):TelecomClaim|undefined
Build the B1/B2/B3 request view over a decoded Telecom transaction. Returns
undefined only when the transaction carries no segments at all; otherwise it
surfaces whatever safety-relevant fields are present, each optional.
Parameters
transactionCode
string
Transaction Code (103-A3) from the header.
segments
readonly TelecomSegment[]
The decoded segments in wire order.
Returns
TelecomClaim | undefined
The claim view, or undefined when there are no segments to read.
Example
const t = parseTelecom(raw);
claimView(t.header.transactionCode, t.segments)?.product?.id; // the NDC