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/result/Patient.result.d.ts
vendored
Normal file
88
packages/db/shared/schemas/variants/result/Patient.result.d.ts
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
import * as z from 'zod';
|
||||
export declare const PatientResultSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
firstName: z.ZodString;
|
||||
lastName: z.ZodString;
|
||||
dateOfBirth: z.ZodNullable<z.ZodDate>;
|
||||
gender: z.ZodString;
|
||||
phone: z.ZodString;
|
||||
email: z.ZodNullable<z.ZodString>;
|
||||
address: z.ZodNullable<z.ZodString>;
|
||||
city: z.ZodNullable<z.ZodString>;
|
||||
zipCode: z.ZodNullable<z.ZodString>;
|
||||
insuranceProvider: z.ZodNullable<z.ZodString>;
|
||||
insuranceId: z.ZodNullable<z.ZodString>;
|
||||
groupNumber: z.ZodNullable<z.ZodString>;
|
||||
policyHolder: z.ZodNullable<z.ZodString>;
|
||||
allergies: z.ZodNullable<z.ZodString>;
|
||||
medicalConditions: z.ZodNullable<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[];
|
||||
email: string | null;
|
||||
phone: string;
|
||||
appointments: unknown[];
|
||||
payment: unknown[];
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
gender: string;
|
||||
address: string | null;
|
||||
city: string | null;
|
||||
zipCode: string | null;
|
||||
insuranceId: string | null;
|
||||
groupNumber: string | null;
|
||||
policyHolder: string | null;
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
groups: unknown[];
|
||||
documents: unknown[];
|
||||
communications: unknown[];
|
||||
user?: unknown;
|
||||
}, {
|
||||
status: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "PLAN_NOT_ACCEPTED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
procedures: unknown[];
|
||||
claims: unknown[];
|
||||
email: string | null;
|
||||
phone: string;
|
||||
appointments: unknown[];
|
||||
payment: unknown[];
|
||||
dateOfBirth: Date | null;
|
||||
insuranceProvider: string | null;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
gender: string;
|
||||
address: string | null;
|
||||
city: string | null;
|
||||
zipCode: string | null;
|
||||
insuranceId: string | null;
|
||||
groupNumber: string | null;
|
||||
policyHolder: string | null;
|
||||
allergies: string | null;
|
||||
medicalConditions: string | null;
|
||||
groups: unknown[];
|
||||
documents: unknown[];
|
||||
communications: unknown[];
|
||||
user?: unknown;
|
||||
}>;
|
||||
export type PatientResultType = z.infer<typeof PatientResultSchema>;
|
||||
//# sourceMappingURL=Patient.result.d.ts.map
|
||||
Reference in New Issue
Block a user