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
readonlyclaims: readonlyX12RemitClaim[]
payee
readonlypayee:X12RemitParty|undefined
payer
readonlypayer:X12RemitParty|undefined
payment
readonlypayment:X12RemitPaymentHeader
providerAdjustments
readonlyproviderAdjustments: readonlyX12RemitProviderAdjustment[]
traces
readonlytraces: readonlyX12RemitTrace[]
warnings
readonlywarnings: readonlyX12ParseWarning[]