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:
@@ -13,6 +13,7 @@ export const AppointmentProcedureFindFirstOrThrowSelectSchema: z.ZodType<Prisma.
|
||||
id: z.boolean().optional(),
|
||||
appointmentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
npiProviderId: z.boolean().optional(),
|
||||
procedureCode: z.boolean().optional(),
|
||||
procedureLabel: z.boolean().optional(),
|
||||
fee: z.boolean().optional(),
|
||||
@@ -24,13 +25,15 @@ export const AppointmentProcedureFindFirstOrThrowSelectSchema: z.ZodType<Prisma.
|
||||
comboKey: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
appointment: z.boolean().optional(),
|
||||
patient: z.boolean().optional()
|
||||
patient: z.boolean().optional(),
|
||||
npiProvider: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.AppointmentProcedureSelect>;
|
||||
|
||||
export const AppointmentProcedureFindFirstOrThrowSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
appointmentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
npiProviderId: z.boolean().optional(),
|
||||
procedureCode: z.boolean().optional(),
|
||||
procedureLabel: z.boolean().optional(),
|
||||
fee: z.boolean().optional(),
|
||||
@@ -42,7 +45,8 @@ export const AppointmentProcedureFindFirstOrThrowSelectZodSchema = z.object({
|
||||
comboKey: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
appointment: z.boolean().optional(),
|
||||
patient: z.boolean().optional()
|
||||
patient: z.boolean().optional(),
|
||||
npiProvider: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const AppointmentProcedureFindFirstOrThrowSchema: z.ZodType<Prisma.AppointmentProcedureFindFirstOrThrowArgs> = z.object({ select: AppointmentProcedureFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => AppointmentProcedureIncludeObjectSchema.optional()), orderBy: z.union([AppointmentProcedureOrderByWithRelationInputObjectSchema, AppointmentProcedureOrderByWithRelationInputObjectSchema.array()]).optional(), where: AppointmentProcedureWhereInputObjectSchema.optional(), cursor: AppointmentProcedureWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AppointmentProcedureScalarFieldEnumSchema, AppointmentProcedureScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.AppointmentProcedureFindFirstOrThrowArgs>;
|
||||
|
||||
Reference in New Issue
Block a user