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:
Vendored
+52
-22
@@ -1,5 +1,5 @@
|
||||
import * as z from "zod";
|
||||
export declare const PatientStatusSchema: z.ZodEnum<["ACTIVE", "INACTIVE", "UNKNOWN"]>;
|
||||
export declare const PatientStatusSchema: z.ZodEnum<["ACTIVE", "INACTIVE", "UNKNOWN", "PLAN_NOT_ACCEPTED"]>;
|
||||
export type PatientStatus = z.infer<typeof PatientStatusSchema>;
|
||||
export declare const ClaimStatusSchema: z.ZodEnum<["PENDING", "APPROVED", "CANCELLED", "REVIEW", "VOID"]>;
|
||||
export type ClaimStatus = z.infer<typeof ClaimStatusSchema>;
|
||||
@@ -37,37 +37,67 @@ export declare const PatientUncheckedCreateInputObjectSchema: z.ZodObject<{
|
||||
firstName: z.ZodString;
|
||||
lastName: z.ZodString;
|
||||
dateOfBirth: z.ZodString;
|
||||
phone: z.ZodOptional<z.ZodString>;
|
||||
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>;
|
||||
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "UNKNOWN"]>>;
|
||||
gender: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
zipCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
insuranceProvider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
insuranceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
groupNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
policyHolder: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
allergies: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
medicalConditions: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
preferredLanguage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "UNKNOWN", "PLAN_NOT_ACCEPTED"]>>;
|
||||
userId: z.ZodOptional<z.ZodNumber>;
|
||||
createdAt: z.ZodOptional<z.ZodDate>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
dateOfBirth: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
status?: "ACTIVE" | "INACTIVE" | "UNKNOWN" | undefined;
|
||||
status?: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED" | undefined;
|
||||
id?: number | undefined;
|
||||
email?: string | undefined;
|
||||
phone?: string | undefined;
|
||||
city?: string | undefined;
|
||||
state?: string | undefined;
|
||||
zipCode?: string | undefined;
|
||||
address?: string | undefined;
|
||||
createdAt?: Date | undefined;
|
||||
userId?: number | undefined;
|
||||
email?: string | null | undefined;
|
||||
phone?: string | null | undefined;
|
||||
insuranceProvider?: string | null | undefined;
|
||||
city?: string | null | undefined;
|
||||
state?: string | null | undefined;
|
||||
zipCode?: string | null | undefined;
|
||||
gender?: string | null | undefined;
|
||||
address?: string | null | undefined;
|
||||
insuranceId?: string | null | undefined;
|
||||
groupNumber?: string | null | undefined;
|
||||
policyHolder?: string | null | undefined;
|
||||
allergies?: string | null | undefined;
|
||||
medicalConditions?: string | null | undefined;
|
||||
preferredLanguage?: string | null | undefined;
|
||||
}, {
|
||||
dateOfBirth: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
status?: "ACTIVE" | "INACTIVE" | "UNKNOWN" | undefined;
|
||||
status?: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED" | undefined;
|
||||
id?: number | undefined;
|
||||
email?: string | undefined;
|
||||
phone?: string | undefined;
|
||||
city?: string | undefined;
|
||||
state?: string | undefined;
|
||||
zipCode?: string | undefined;
|
||||
address?: string | undefined;
|
||||
createdAt?: Date | undefined;
|
||||
userId?: number | undefined;
|
||||
email?: string | null | undefined;
|
||||
phone?: string | null | undefined;
|
||||
insuranceProvider?: string | null | undefined;
|
||||
city?: string | null | undefined;
|
||||
state?: string | null | undefined;
|
||||
zipCode?: string | null | undefined;
|
||||
gender?: string | null | undefined;
|
||||
address?: string | null | undefined;
|
||||
insuranceId?: string | null | undefined;
|
||||
groupNumber?: string | null | undefined;
|
||||
policyHolder?: string | null | undefined;
|
||||
allergies?: string | null | undefined;
|
||||
medicalConditions?: string | null | undefined;
|
||||
preferredLanguage?: string | null | undefined;
|
||||
}>;
|
||||
export declare const StaffUncheckedCreateInputObjectSchema: z.ZodObject<{
|
||||
id: z.ZodOptional<z.ZodNumber>;
|
||||
|
||||
Reference in New Issue
Block a user