Skip to main content

Function: resolveCheckPayer()

resolveCheckPayer(companyId, payerName, ctx?): Promise<ResolvedPayer>

Defined in: src/server/services/checks.ts:161

Resolve a check's payer to its facility set using the DB-backed billing_payers rows (falling back to the seeded default alias rules only when no rows exist yet for the company). Returns the active facilities alongside, so callers can label the set or offer a manual pick when status != 'matched'. Callers resolving a whole packet pass a preloaded ctx so the two lists load once, not per check.

Parameters​

companyId​

string

payerName​

string | null

ctx?​

PayerResolutionContext

Returns​

Promise<ResolvedPayer>