Variable: BALANCE_INVARIANTS
constBALANCE_INVARIANTS:object
Which 835 balance invariant failed. A library-owned discriminant naming
the TR3 equation. The amounts on either side stay on the model as
X12Decimal and are never rendered into the message: an EDI amount is a
consumer-controlled element like any other, and a 300,000-digit "amount"
would otherwise become a 300,000-byte diagnostic.
Type Declaration
CLAIM
readonlyCLAIM:"claim"="claim"
CLP-04 + Σ(claim CAS + line CAS) == CLP-03.
REMIT_TOTAL
readonlyREMIT_TOTAL:"remit-total"="remit-total"
Σ(CLP-04) - Σ(PLB amounts) == BPR-02.
SERVICE_LINE
readonlySERVICE_LINE:"service-line"="service-line"
SVC-03 + Σ(line CAS) == SVC-02.
Example
import { remitBalanceMismatch, BALANCE_INVARIANTS } from "@cosyte/x12";
const w = remitBalanceMismatch({ segmentIndex: 12 }, BALANCE_INVARIANTS.CLAIM);