feat: add Provider field to appointment form, drive AI claim automation

Adds an optional Provider (NPI) select to the Edit Appointment form,
sourced from Settings > NPI Providers. The AI "Claim for Column" batch
flow now prefers the appointment's own provider when resolving which
provider Selenium should select on the insurance site (e.g. MassHealth
rendering provider dropdown), falling back to the existing per-procedure
selection, active claim, or first configured provider.

Also resyncs packages/db's committed compiled schema/client artifacts
with their .ts sources — they had drifted out of sync (some untouched
since July), which was silently stripping the new npiProviderId field
via stale .strict() zod schemas.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
ff
2026-07-20 23:07:10 -04:00
parent ca568de817
commit b1932fa3d6
1285 changed files with 21237 additions and 4432 deletions

View File

@@ -6,6 +6,7 @@ const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int(),
staffId: z.number().int(),
npiProviderId: z.number().int().optional().nullable(),
title: z.string(),
date: z.coerce.date(),
startTime: z.string(),