Function: claim()
claim(
transaction):TelecomClaim|undefined
Build the B1/B2/B3 request view over a parsed Telecom transaction.
Parameters
transaction
A transaction from parseTelecom.
Returns
TelecomClaim | undefined
The TelecomClaim view, or undefined when no segments decoded.
Example
claim(parseTelecom(rawClaim))?.product?.id; // the dispensed NDC