Interface: Build835AdjustmentSpec
One CAS adjustment (one reason / amount / quantity triple under a group
code). Mirrors "./types.js".X12RemitAdjustment minus the
looked-up reasonDescription. The builder re-chunks adjustments that
share a groupCode into CAS segments (≤ 6 triples each).
Example
import type { Build835AdjustmentSpec } from "@cosyte/x12";
import { X12Decimal } from "@cosyte/x12";
const cas: Build835AdjustmentSpec = {
groupCode: "PR", reasonCode: "1", amount: X12Decimal.fromString("50.00")!,
};
Properties
amount
readonlyamount:X12Decimal
Adjustment amount.
groupCode
readonlygroupCode:string
CAS-01 - claim adjustment group code (CO, PR, OA, PI).
quantity?
readonlyoptionalquantity?:X12Decimal
Adjustment quantity (situational).
reasonCode
readonlyreasonCode:string
Adjustment reason code (CARC).