Interface: X12RemitProviderAdjustment
Decoded PLB - Provider-Level Adjustment. Off-claim adjustments (recoupments, interest, capitation, write-offs) that move money at the provider level, not the claim level. Each PLB segment carries up to 6 adjustment triples (reason + amount); the walker flattens these so each X12RemitProviderAdjustment is one adjustment.
Sign convention: a POSITIVE PLB amount REDUCES the provider's
payment (recoupment / take-back); a NEGATIVE PLB amount ADDS to the
payment (interest / advance payment). The 835 balance invariant
Σ(claim CLP-04) + Σ(PLB amounts) === BPR-02 works because PLB
amounts already carry the correct sign.
reasonCode is the composite PLB reason code (the qualifier +
optional reference together, e.g. WO:123456 for "withholding for
claim 123456"); subCode carries the optional second component.
Example
import type { X12RemitProviderAdjustment } from "@cosyte/x12";
declare const p: X12RemitProviderAdjustment;
p.providerId; // "1234567890" (NPI)
p.fiscalPeriodDate; // "20261231"
p.reasonCode; // "WO" (withholding)
p.subCode; // "123456" (related-claim reference)
p.amount.toString();// "50.00"
Properties
amount
readonlyamount:X12Decimal
fiscalPeriodDate
readonlyfiscalPeriodDate:string
providerId
readonlyproviderId:string
reasonCode
readonlyreasonCode:string
subCode
readonlysubCode:string|undefined