Skip to main content
Version: v0.0.3

Function: claim()

claim(transaction): TelecomClaim | undefined

Build the B1/B2/B3 request view over a parsed Telecom transaction.

Parameters

transaction

TelecomTransaction

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