Skip to main content
Version: v0.0.3

Interface: TelecomClaim

A B1/B2/B3 request view over a decoded Telecom transaction: the safety-relevant fields a biller needs, lifted from their field-id-keyed segments and preserved verbatim. Every field is optional: a missing segment or field yields undefined rather than a throw, in keeping with the lenient parse contract.

Properties

cardholderId?

readonly optional cardholderId?: string

Cardholder ID (302-C2) from the Insurance segment. PHI.


dateOfBirth?

readonly optional dateOfBirth?: string

Date of Birth (304-C4) from the Patient segment, verbatim (CCYYMMDD). PHI.


daysSupply?

readonly optional daysSupply?: DecimalValue

Days Supply (405-D5), preserved as a decimal-safe value.


dispenseAsWritten?

readonly optional dispenseAsWritten?: string

Dispense As Written / Product Selection Code (408-D8), verbatim.


fillNumber?

readonly optional fillNumber?: string

Fill Number (403-D3) from the Claim segment.


genderCode?

readonly optional genderCode?: string

Patient Gender Code (305-C5) from the Patient segment.


groupId?

readonly optional groupId?: string

Group ID (301-C1) from the Insurance segment.


personCode?

readonly optional personCode?: string

Person Code (303-C3) from the Insurance segment.


prescriberId?

readonly optional prescriberId?: string

Prescriber ID (411-DB) from the Prescriber segment.


prescriberIdQualifier?

readonly optional prescriberIdQualifier?: string

Prescriber ID Qualifier (466-EZ) from the Prescriber segment.


prescriptionReferenceNumber?

readonly optional prescriptionReferenceNumber?: string

Prescription/Service Reference Number (402-D2) from the Claim segment.


prescriptionReferenceQualifier?

readonly optional prescriptionReferenceQualifier?: string

Prescription/Service Reference Number Qualifier (455-EM).


product?

readonly optional product?: TelecomProductCode

Product/Service ID + qualifier (407-D7 / 436-E1), when present.


quantityDispensed?

readonly optional quantityDispensed?: TelecomQuantity

Quantity Dispensed (442-E7) with its implied 3-place decimal.


transactionCode

readonly transactionCode: string

Transaction Code (103-A3) from the header, e.g. "B1".