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:
@@ -10,6 +10,7 @@ export declare const PatientFindManyResultSchema: 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>;
|
||||
@@ -19,6 +20,8 @@ export declare const PatientFindManyResultSchema: 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;
|
||||
@@ -55,6 +58,7 @@ export declare const PatientFindManyResultSchema: z.ZodObject<{
|
||||
dateOfBirth?: Date | undefined;
|
||||
insuranceProvider?: string | undefined;
|
||||
city?: string | undefined;
|
||||
state?: string | undefined;
|
||||
zipCode?: string | undefined;
|
||||
address?: string | undefined;
|
||||
insuranceId?: string | undefined;
|
||||
@@ -63,6 +67,8 @@ export declare const PatientFindManyResultSchema: z.ZodObject<{
|
||||
allergies?: string | undefined;
|
||||
medicalConditions?: string | undefined;
|
||||
preferredLanguage?: string | undefined;
|
||||
remainingBenefit?: string | undefined;
|
||||
thirdPartyInsurance?: string | undefined;
|
||||
conversation?: unknown;
|
||||
}, {
|
||||
id: number;
|
||||
@@ -87,6 +93,7 @@ export declare const PatientFindManyResultSchema: z.ZodObject<{
|
||||
dateOfBirth?: Date | undefined;
|
||||
insuranceProvider?: string | undefined;
|
||||
city?: string | undefined;
|
||||
state?: string | undefined;
|
||||
zipCode?: string | undefined;
|
||||
address?: string | undefined;
|
||||
insuranceId?: string | undefined;
|
||||
@@ -95,6 +102,8 @@ export declare const PatientFindManyResultSchema: z.ZodObject<{
|
||||
allergies?: string | undefined;
|
||||
medicalConditions?: string | undefined;
|
||||
preferredLanguage?: string | undefined;
|
||||
remainingBenefit?: string | undefined;
|
||||
thirdPartyInsurance?: string | undefined;
|
||||
conversation?: unknown;
|
||||
}>, "many">;
|
||||
pagination: z.ZodObject<{
|
||||
@@ -143,6 +152,7 @@ export declare const PatientFindManyResultSchema: z.ZodObject<{
|
||||
dateOfBirth?: Date | undefined;
|
||||
insuranceProvider?: string | undefined;
|
||||
city?: string | undefined;
|
||||
state?: string | undefined;
|
||||
zipCode?: string | undefined;
|
||||
address?: string | undefined;
|
||||
insuranceId?: string | undefined;
|
||||
@@ -151,6 +161,8 @@ export declare const PatientFindManyResultSchema: z.ZodObject<{
|
||||
allergies?: string | undefined;
|
||||
medicalConditions?: string | undefined;
|
||||
preferredLanguage?: string | undefined;
|
||||
remainingBenefit?: string | undefined;
|
||||
thirdPartyInsurance?: string | undefined;
|
||||
conversation?: unknown;
|
||||
}[];
|
||||
pagination: {
|
||||
@@ -185,6 +197,7 @@ export declare const PatientFindManyResultSchema: z.ZodObject<{
|
||||
dateOfBirth?: Date | undefined;
|
||||
insuranceProvider?: string | undefined;
|
||||
city?: string | undefined;
|
||||
state?: string | undefined;
|
||||
zipCode?: string | undefined;
|
||||
address?: string | undefined;
|
||||
insuranceId?: string | undefined;
|
||||
@@ -193,6 +206,8 @@ export declare const PatientFindManyResultSchema: z.ZodObject<{
|
||||
allergies?: string | undefined;
|
||||
medicalConditions?: string | undefined;
|
||||
preferredLanguage?: string | undefined;
|
||||
remainingBenefit?: string | undefined;
|
||||
thirdPartyInsurance?: string | undefined;
|
||||
conversation?: unknown;
|
||||
}[];
|
||||
pagination: {
|
||||
|
||||
Reference in New Issue
Block a user