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:
64
packages/db/shared/schemas/variants/pure/Payment.pure.d.ts
vendored
Normal file
64
packages/db/shared/schemas/variants/pure/Payment.pure.d.ts
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
import * as z from 'zod';
|
||||
export declare const PaymentModelSchema: z.ZodObject<{
|
||||
id: z.ZodNumber;
|
||||
claimId: z.ZodNullable<z.ZodNumber>;
|
||||
patientId: z.ZodNumber;
|
||||
userId: z.ZodNumber;
|
||||
updatedById: z.ZodNullable<z.ZodNumber>;
|
||||
totalBilled: z.ZodNumber;
|
||||
totalPaid: z.ZodNumber;
|
||||
totalAdjusted: z.ZodNumber;
|
||||
totalDue: z.ZodNumber;
|
||||
status: z.ZodEnum<["PENDING", "PARTIALLY_PAID", "PAID", "OVERPAID", "DENIED", "VOID"]>;
|
||||
notes: z.ZodNullable<z.ZodString>;
|
||||
icn: z.ZodNullable<z.ZodString>;
|
||||
createdAt: z.ZodDate;
|
||||
updatedAt: z.ZodDate;
|
||||
claim: z.ZodNullable<z.ZodUnknown>;
|
||||
patient: z.ZodUnknown;
|
||||
updatedBy: z.ZodNullable<z.ZodUnknown>;
|
||||
serviceLineTransactions: z.ZodArray<z.ZodUnknown, "many">;
|
||||
serviceLines: z.ZodArray<z.ZodUnknown, "many">;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
status: "PENDING" | "VOID" | "PARTIALLY_PAID" | "PAID" | "OVERPAID" | "DENIED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
patientId: number;
|
||||
notes: string | null;
|
||||
claimId: number | null;
|
||||
totalBilled: number;
|
||||
totalPaid: number;
|
||||
totalAdjusted: number;
|
||||
totalDue: number;
|
||||
serviceLineTransactions: unknown[];
|
||||
icn: string | null;
|
||||
updatedAt: Date;
|
||||
serviceLines: unknown[];
|
||||
updatedById: number | null;
|
||||
patient?: unknown;
|
||||
claim?: unknown;
|
||||
updatedBy?: unknown;
|
||||
}, {
|
||||
status: "PENDING" | "VOID" | "PARTIALLY_PAID" | "PAID" | "OVERPAID" | "DENIED";
|
||||
createdAt: Date;
|
||||
id: number;
|
||||
userId: number;
|
||||
patientId: number;
|
||||
notes: string | null;
|
||||
claimId: number | null;
|
||||
totalBilled: number;
|
||||
totalPaid: number;
|
||||
totalAdjusted: number;
|
||||
totalDue: number;
|
||||
serviceLineTransactions: unknown[];
|
||||
icn: string | null;
|
||||
updatedAt: Date;
|
||||
serviceLines: unknown[];
|
||||
updatedById: number | null;
|
||||
patient?: unknown;
|
||||
claim?: unknown;
|
||||
updatedBy?: unknown;
|
||||
}>;
|
||||
export type PaymentPureType = z.infer<typeof PaymentModelSchema>;
|
||||
//# sourceMappingURL=Payment.pure.d.ts.map
|
||||
Reference in New Issue
Block a user