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
@@ -9,6 +9,7 @@ export declare const PatientCreateResultSchema: z.ZodObject<{
email: z.ZodOptional<z.ZodString>;
address: z.ZodOptional<z.ZodString>;
city: z.ZodOptional<z.ZodString>;
state: z.ZodOptional<z.ZodString>;
zipCode: z.ZodOptional<z.ZodString>;
insuranceProvider: z.ZodOptional<z.ZodString>;
insuranceId: z.ZodOptional<z.ZodString>;
@@ -18,6 +19,8 @@ export declare const PatientCreateResultSchema: z.ZodObject<{
medicalConditions: z.ZodOptional<z.ZodString>;
preferredLanguage: z.ZodOptional<z.ZodString>;
status: z.ZodUnknown;
remainingBenefit: z.ZodOptional<z.ZodString>;
thirdPartyInsurance: z.ZodOptional<z.ZodString>;
userId: z.ZodNumber;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
@@ -54,6 +57,7 @@ export declare const PatientCreateResultSchema: z.ZodObject<{
dateOfBirth?: Date | undefined;
insuranceProvider?: string | undefined;
city?: string | undefined;
state?: string | undefined;
zipCode?: string | undefined;
address?: string | undefined;
insuranceId?: string | undefined;
@@ -62,6 +66,8 @@ export declare const PatientCreateResultSchema: z.ZodObject<{
allergies?: string | undefined;
medicalConditions?: string | undefined;
preferredLanguage?: string | undefined;
remainingBenefit?: string | undefined;
thirdPartyInsurance?: string | undefined;
conversation?: unknown;
}, {
id: number;
@@ -86,6 +92,7 @@ export declare const PatientCreateResultSchema: z.ZodObject<{
dateOfBirth?: Date | undefined;
insuranceProvider?: string | undefined;
city?: string | undefined;
state?: string | undefined;
zipCode?: string | undefined;
address?: string | undefined;
insuranceId?: string | undefined;
@@ -94,6 +101,8 @@ export declare const PatientCreateResultSchema: z.ZodObject<{
allergies?: string | undefined;
medicalConditions?: string | undefined;
preferredLanguage?: string | undefined;
remainingBenefit?: string | undefined;
thirdPartyInsurance?: string | undefined;
conversation?: unknown;
}>;
//# sourceMappingURL=PatientCreateResult.schema.d.ts.map