Skip to main content
Version: v0.0.2

Interface: X12Remittance

The top-level result returned by "./get-835.js".get835. Carries the payment header (BPR), the trace (TRN), payer + payee identification (Loop 1000A/1000B), every claim payment loop (Loop 2100 → Loop 2110), provider-level adjustments (PLB), and every warning surfaced during the walk - including the safety-critical "../../parser/warnings.js".WARNING_CODES.X12_835_REMIT_BALANCE_MISMATCH.

Example

import { parseX12, get835 } from "@cosyte/x12";
const ix = parseX12(raw);
const tx = ix.groups[0]?.transactions.find((t) => t.st.elements[1] === "835");
if (tx !== undefined) {
const remit = get835(ix.delimiters, tx);
remit.payment.totalActualPayment.toString();
for (const claim of remit.claims) {
claim.totalChargeAmount.toString();
claim.totalPaymentAmount.toString();
}
}

Properties

claims

readonly claims: readonly X12RemitClaim[]


payee

readonly payee: X12RemitParty | undefined


payer

readonly payer: X12RemitParty | undefined


payment

readonly payment: X12RemitPaymentHeader


providerAdjustments

readonly providerAdjustments: readonly X12RemitProviderAdjustment[]


traces

readonly traces: readonly X12RemitTrace[]


warnings

readonly warnings: readonly X12ParseWarning[]