feat: Select Procedures flow, batch-column NPI provider fix, auto PDF save
- Add 'Select Procedures' right-click option on appointment page (separate from Claims/PreAuth) - Select Procedures form saves CDT codes + NPI provider to AppointmentProcedure storage - Remove Save button from insurance claim form; Claims/PreAuth opens for insurance submission only - Claims/PreAuth auto-prefills from saved procedures including NPI provider - Batch-column: procedures npiProviderId takes priority over stale claim npiProviderId - Batch-column: auto-save PDF to patient Documents after successful submission (no socket needed) - Add npiProviderId column to AppointmentProcedure table (prisma db push) - Fix 'invalid db creation invocation': guard staffId, npiProviderId, procedureDate as Date object, totalBilled NaN guard - Add full error logging to batch-column catch block Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
88
packages/db/shared/schemas/variants/input/Patient.input.d.ts
vendored
Normal file
88
packages/db/shared/schemas/variants/input/Patient.input.d.ts
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
import * as z from 'zod';
|
||||
export declare const PatientInputSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
firstName: z.ZodString;
|
||||
lastName: z.ZodString;
|
||||
dateOfBirth: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
||||
gender: z.ZodString;
|
||||
phone: z.ZodString;
|
||||
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
||||
city: 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>>;
|
||||
status: z.ZodEnum<["ACTIVE", "INACTIVE", "UNKNOWN", "PLAN_NOT_ACCEPTED"]>;
|
||||
userId: z.ZodNumber;
|
||||
createdAt: z.ZodDate;
|
||||
user: z.ZodUnknown;
|
||||
appointments: z.ZodArray<z.ZodUnknown, "many">;
|
||||
procedures: z.ZodArray<z.ZodUnknown, "many">;
|
||||
claims: z.ZodArray<z.ZodUnknown, "many">;
|
||||
groups: z.ZodArray<z.ZodUnknown, "many">;
|
||||
payment: z.ZodArray<z.ZodUnknown, "many">;
|
||||
communications: z.ZodArray<z.ZodUnknown, "many">;
|
||||
documents: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
procedures: unknown[];
|
||||
claims: unknown[];
|
||||
phone: string;
|
||||
appointments: unknown[];
|
||||
payment: unknown[];
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
gender: string;
|
||||
groups: unknown[];
|
||||
documents: unknown[];
|
||||
communications: unknown[];
|
||||
user?: unknown;
|
||||
email?: string | null | undefined;
|
||||
dateOfBirth?: Date | null | undefined;
|
||||
insuranceProvider?: string | null | undefined;
|
||||
address?: string | null | undefined;
|
||||
city?: string | null | undefined;
|
||||
zipCode?: string | null | undefined;
|
||||
insuranceId?: string | null | undefined;
|
||||
groupNumber?: string | null | undefined;
|
||||
policyHolder?: string | null | undefined;
|
||||
allergies?: string | null | undefined;
|
||||
medicalConditions?: string | null | undefined;
|
||||
}, {
|
||||
status: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
procedures: unknown[];
|
||||
claims: unknown[];
|
||||
phone: string;
|
||||
appointments: unknown[];
|
||||
payment: unknown[];
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
gender: string;
|
||||
groups: unknown[];
|
||||
documents: unknown[];
|
||||
communications: unknown[];
|
||||
user?: unknown;
|
||||
email?: string | null | undefined;
|
||||
dateOfBirth?: Date | null | undefined;
|
||||
insuranceProvider?: string | null | undefined;
|
||||
address?: string | null | undefined;
|
||||
city?: string | null | undefined;
|
||||
zipCode?: string | null | undefined;
|
||||
insuranceId?: string | null | undefined;
|
||||
groupNumber?: string | null | undefined;
|
||||
policyHolder?: string | null | undefined;
|
||||
allergies?: string | null | undefined;
|
||||
medicalConditions?: string | null | undefined;
|
||||
}>;
|
||||
export type PatientInputType = z.infer<typeof PatientInputSchema>;
|
||||
//# sourceMappingURL=Patient.input.d.ts.map
|
||||
Reference in New Issue
Block a user