fix: allow letters in insurance ID; add patient state (default MA)

- Backend insurance ID check now accepts letters + digits (BCBS IDs have
  a letter prefix), matching the frontend schema; create route validates
  the normalized body
- Patient.state column (default "MA") with State select on the patient
  form; ADA claim form uses the patient's state instead of the office's
- Rebuild stale packages/db compiled .js so the runtime schemas include
  new fields (state, office billing NPI fields, Telnyx settings)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 23:29:27 -04:00
co-authored by Claude Opus 5.5
parent 2c0c595af5
commit 1abc2c705d
664 changed files with 6263 additions and 843 deletions
@@ -5,6 +5,7 @@ export declare const NpiProviderFindManyResultSchema: z.ZodObject<{
userId: z.ZodNumber;
npiNumber: z.ZodString;
providerName: z.ZodString;
licenseNumber: z.ZodOptional<z.ZodString>;
sortOrder: z.ZodNumber;
createdAt: z.ZodDate;
user: z.ZodUnknown;
@@ -26,6 +27,7 @@ export declare const NpiProviderFindManyResultSchema: z.ZodObject<{
appointmentProcedures: unknown[];
commissionBatches: unknown[];
user?: unknown;
licenseNumber?: string | undefined;
}, {
id: number;
createdAt: Date;
@@ -39,6 +41,7 @@ export declare const NpiProviderFindManyResultSchema: z.ZodObject<{
appointmentProcedures: unknown[];
commissionBatches: unknown[];
user?: unknown;
licenseNumber?: string | undefined;
}>, "many">;
pagination: z.ZodObject<{
page: z.ZodNumber;
@@ -76,6 +79,7 @@ export declare const NpiProviderFindManyResultSchema: z.ZodObject<{
appointmentProcedures: unknown[];
commissionBatches: unknown[];
user?: unknown;
licenseNumber?: string | undefined;
}[];
pagination: {
page: number;
@@ -99,6 +103,7 @@ export declare const NpiProviderFindManyResultSchema: z.ZodObject<{
appointmentProcedures: unknown[];
commissionBatches: unknown[];
user?: unknown;
licenseNumber?: string | undefined;
}[];
pagination: {
page: number;