Interface: FacilityRef
Defined in: src/lib/facility-match/index.ts:16
Payer -> facility-set resolution (pure, no I/O).
A received check's payer is frequently NOT the billed facility: a facility may pay through a management company (one check covering several facilities) or through a sibling facility paying on its behalf. So a payer resolves to a set of facilities, not one. (Even the simple case shows this: a check from "The Enclave at Port Chester" pays invoices billed to "The Enclave at Rye".) Reconciliation then matches the check's remittance lines across that whole set.
Resolution is rule-driven so it can be backed by an admin-managed billing_payers mapping later
(ADR-0037 follow-up); the defaults below are seeded from the one-off backfill script's alias rules.
A payer that matches no rule -- or whose rule resolves ambiguously -- yields status 'unmatched' |
'ambiguous' so the UI asks an admin to pick the facility rather than guessing.
Properties
id
readonlyid:string
Defined in: src/lib/facility-match/index.ts:17
name
readonlyname:string
Defined in: src/lib/facility-match/index.ts:18