- 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>
25 lines
989 B
TypeScript
25 lines
989 B
TypeScript
import * as z from 'zod';
|
|
import { ProcedureSourceSchema } from '../../enums/ProcedureSource.schema';
|
|
// prettier-ignore
|
|
export const AppointmentProcedureInputSchema = z.object({
|
|
id: z.number().int(),
|
|
appointmentId: z.number().int(),
|
|
patientId: z.number().int(),
|
|
npiProviderId: z.number().int().optional().nullable(),
|
|
procedureCode: z.string(),
|
|
procedureLabel: z.string().optional().nullable(),
|
|
fee: z.number().optional().nullable(),
|
|
category: z.string().optional().nullable(),
|
|
toothNumber: z.string().optional().nullable(),
|
|
toothSurface: z.string().optional().nullable(),
|
|
oralCavityArea: z.string().optional().nullable(),
|
|
source: ProcedureSourceSchema,
|
|
comboKey: z.string().optional().nullable(),
|
|
createdAt: z.date(),
|
|
appointment: z.unknown(),
|
|
patient: z.unknown(),
|
|
npiProvider: z.unknown().optional().nullable()
|
|
}).strict();
|
|
|
|
export type AppointmentProcedureInputType = z.infer<typeof AppointmentProcedureInputSchema>;
|