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:
@@ -9,6 +9,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
email: z.ZodString;
|
||||
address: z.ZodString;
|
||||
city: z.ZodString;
|
||||
state: z.ZodString;
|
||||
zipCode: z.ZodString;
|
||||
insuranceProvider: z.ZodString;
|
||||
insuranceId: z.ZodString;
|
||||
@@ -17,6 +18,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: z.ZodString;
|
||||
medicalConditions: z.ZodString;
|
||||
preferredLanguage: z.ZodString;
|
||||
remainingBenefit: z.ZodString;
|
||||
thirdPartyInsurance: z.ZodString;
|
||||
userId: z.ZodNumber;
|
||||
createdAt: z.ZodDate;
|
||||
updatedAt: z.ZodDate;
|
||||
@@ -30,6 +33,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
email: z.ZodNumber;
|
||||
address: z.ZodNumber;
|
||||
city: z.ZodNumber;
|
||||
state: z.ZodNumber;
|
||||
zipCode: z.ZodNumber;
|
||||
insuranceProvider: z.ZodNumber;
|
||||
insuranceId: z.ZodNumber;
|
||||
@@ -39,6 +43,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
medicalConditions: z.ZodNumber;
|
||||
preferredLanguage: z.ZodNumber;
|
||||
status: z.ZodNumber;
|
||||
remainingBenefit: z.ZodNumber;
|
||||
thirdPartyInsurance: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
createdAt: z.ZodNumber;
|
||||
updatedAt: z.ZodNumber;
|
||||
@@ -68,6 +74,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: number;
|
||||
insuranceProvider: number;
|
||||
city: number;
|
||||
state: number;
|
||||
zipCode: number;
|
||||
cloudFolders: number;
|
||||
communications: number;
|
||||
@@ -81,6 +88,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: number;
|
||||
medicalConditions: number;
|
||||
preferredLanguage: number;
|
||||
remainingBenefit: number;
|
||||
thirdPartyInsurance: number;
|
||||
groups: number;
|
||||
documents: number;
|
||||
conversation: number;
|
||||
@@ -100,6 +109,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: number;
|
||||
insuranceProvider: number;
|
||||
city: number;
|
||||
state: number;
|
||||
zipCode: number;
|
||||
cloudFolders: number;
|
||||
communications: number;
|
||||
@@ -113,6 +123,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: number;
|
||||
medicalConditions: number;
|
||||
preferredLanguage: number;
|
||||
remainingBenefit: number;
|
||||
thirdPartyInsurance: number;
|
||||
groups: number;
|
||||
documents: number;
|
||||
conversation: number;
|
||||
@@ -147,6 +159,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
email: z.ZodNullable<z.ZodString>;
|
||||
address: z.ZodNullable<z.ZodString>;
|
||||
city: z.ZodNullable<z.ZodString>;
|
||||
state: z.ZodNullable<z.ZodString>;
|
||||
zipCode: z.ZodNullable<z.ZodString>;
|
||||
insuranceProvider: z.ZodNullable<z.ZodString>;
|
||||
insuranceId: z.ZodNullable<z.ZodString>;
|
||||
@@ -155,6 +168,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: z.ZodNullable<z.ZodString>;
|
||||
medicalConditions: z.ZodNullable<z.ZodString>;
|
||||
preferredLanguage: z.ZodNullable<z.ZodString>;
|
||||
remainingBenefit: z.ZodNullable<z.ZodString>;
|
||||
thirdPartyInsurance: z.ZodNullable<z.ZodString>;
|
||||
userId: z.ZodNullable<z.ZodNumber>;
|
||||
createdAt: z.ZodNullable<z.ZodDate>;
|
||||
updatedAt: z.ZodNullable<z.ZodDate>;
|
||||
@@ -168,6 +183,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
city: string | null;
|
||||
state: string | null;
|
||||
zipCode: string | null;
|
||||
firstName: string | null;
|
||||
lastName: string | null;
|
||||
@@ -179,6 +195,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
preferredLanguage: string | null;
|
||||
remainingBenefit: string | null;
|
||||
thirdPartyInsurance: string | null;
|
||||
}, {
|
||||
id: number | null;
|
||||
createdAt: Date | null;
|
||||
@@ -189,6 +207,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
city: string | null;
|
||||
state: string | null;
|
||||
zipCode: string | null;
|
||||
firstName: string | null;
|
||||
lastName: string | null;
|
||||
@@ -200,6 +219,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
preferredLanguage: string | null;
|
||||
remainingBenefit: string | null;
|
||||
thirdPartyInsurance: string | null;
|
||||
}>>>;
|
||||
_max: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
||||
id: z.ZodNullable<z.ZodNumber>;
|
||||
@@ -211,6 +232,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
email: z.ZodNullable<z.ZodString>;
|
||||
address: z.ZodNullable<z.ZodString>;
|
||||
city: z.ZodNullable<z.ZodString>;
|
||||
state: z.ZodNullable<z.ZodString>;
|
||||
zipCode: z.ZodNullable<z.ZodString>;
|
||||
insuranceProvider: z.ZodNullable<z.ZodString>;
|
||||
insuranceId: z.ZodNullable<z.ZodString>;
|
||||
@@ -219,6 +241,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: z.ZodNullable<z.ZodString>;
|
||||
medicalConditions: z.ZodNullable<z.ZodString>;
|
||||
preferredLanguage: z.ZodNullable<z.ZodString>;
|
||||
remainingBenefit: z.ZodNullable<z.ZodString>;
|
||||
thirdPartyInsurance: z.ZodNullable<z.ZodString>;
|
||||
userId: z.ZodNullable<z.ZodNumber>;
|
||||
createdAt: z.ZodNullable<z.ZodDate>;
|
||||
updatedAt: z.ZodNullable<z.ZodDate>;
|
||||
@@ -232,6 +256,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
city: string | null;
|
||||
state: string | null;
|
||||
zipCode: string | null;
|
||||
firstName: string | null;
|
||||
lastName: string | null;
|
||||
@@ -243,6 +268,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
preferredLanguage: string | null;
|
||||
remainingBenefit: string | null;
|
||||
thirdPartyInsurance: string | null;
|
||||
}, {
|
||||
id: number | null;
|
||||
createdAt: Date | null;
|
||||
@@ -253,6 +280,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
city: string | null;
|
||||
state: string | null;
|
||||
zipCode: string | null;
|
||||
firstName: string | null;
|
||||
lastName: string | null;
|
||||
@@ -264,6 +292,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
preferredLanguage: string | null;
|
||||
remainingBenefit: string | null;
|
||||
thirdPartyInsurance: string | null;
|
||||
}>>>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
id: number;
|
||||
@@ -275,6 +305,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date;
|
||||
insuranceProvider: string;
|
||||
city: string;
|
||||
state: string;
|
||||
zipCode: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
@@ -286,6 +317,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string;
|
||||
medicalConditions: string;
|
||||
preferredLanguage: string;
|
||||
remainingBenefit: string;
|
||||
thirdPartyInsurance: string;
|
||||
_count?: {
|
||||
status: number;
|
||||
id: number;
|
||||
@@ -302,6 +335,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: number;
|
||||
insuranceProvider: number;
|
||||
city: number;
|
||||
state: number;
|
||||
zipCode: number;
|
||||
cloudFolders: number;
|
||||
communications: number;
|
||||
@@ -315,6 +349,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: number;
|
||||
medicalConditions: number;
|
||||
preferredLanguage: number;
|
||||
remainingBenefit: number;
|
||||
thirdPartyInsurance: number;
|
||||
groups: number;
|
||||
documents: number;
|
||||
conversation: number;
|
||||
@@ -329,6 +365,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
city: string | null;
|
||||
state: string | null;
|
||||
zipCode: string | null;
|
||||
firstName: string | null;
|
||||
lastName: string | null;
|
||||
@@ -340,6 +377,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
preferredLanguage: string | null;
|
||||
remainingBenefit: string | null;
|
||||
thirdPartyInsurance: string | null;
|
||||
} | null | undefined;
|
||||
_max?: {
|
||||
id: number | null;
|
||||
@@ -351,6 +390,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
city: string | null;
|
||||
state: string | null;
|
||||
zipCode: string | null;
|
||||
firstName: string | null;
|
||||
lastName: string | null;
|
||||
@@ -362,6 +402,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
preferredLanguage: string | null;
|
||||
remainingBenefit: string | null;
|
||||
thirdPartyInsurance: string | null;
|
||||
} | null | undefined;
|
||||
_avg?: {
|
||||
id: number | null;
|
||||
@@ -381,6 +423,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date;
|
||||
insuranceProvider: string;
|
||||
city: string;
|
||||
state: string;
|
||||
zipCode: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
@@ -392,6 +435,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string;
|
||||
medicalConditions: string;
|
||||
preferredLanguage: string;
|
||||
remainingBenefit: string;
|
||||
thirdPartyInsurance: string;
|
||||
_count?: {
|
||||
status: number;
|
||||
id: number;
|
||||
@@ -408,6 +453,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: number;
|
||||
insuranceProvider: number;
|
||||
city: number;
|
||||
state: number;
|
||||
zipCode: number;
|
||||
cloudFolders: number;
|
||||
communications: number;
|
||||
@@ -421,6 +467,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: number;
|
||||
medicalConditions: number;
|
||||
preferredLanguage: number;
|
||||
remainingBenefit: number;
|
||||
thirdPartyInsurance: number;
|
||||
groups: number;
|
||||
documents: number;
|
||||
conversation: number;
|
||||
@@ -435,6 +483,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
city: string | null;
|
||||
state: string | null;
|
||||
zipCode: string | null;
|
||||
firstName: string | null;
|
||||
lastName: string | null;
|
||||
@@ -446,6 +495,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
preferredLanguage: string | null;
|
||||
remainingBenefit: string | null;
|
||||
thirdPartyInsurance: string | null;
|
||||
} | null | undefined;
|
||||
_max?: {
|
||||
id: number | null;
|
||||
@@ -457,6 +508,7 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
city: string | null;
|
||||
state: string | null;
|
||||
zipCode: string | null;
|
||||
firstName: string | null;
|
||||
lastName: string | null;
|
||||
@@ -468,6 +520,8 @@ export declare const PatientGroupByResultSchema: z.ZodArray<z.ZodObject<{
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
preferredLanguage: string | null;
|
||||
remainingBenefit: string | null;
|
||||
thirdPartyInsurance: string | null;
|
||||
} | null | undefined;
|
||||
_avg?: {
|
||||
id: number | null;
|
||||
|
||||
Reference in New Issue
Block a user