- 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>
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
|
|
const makeSchema = () => z.object({
|
|
id: z.literal(true).optional(),
|
|
patientId: z.literal(true).optional(),
|
|
appointmentId: z.literal(true).optional(),
|
|
userId: z.literal(true).optional(),
|
|
staffId: z.literal(true).optional(),
|
|
patientName: z.literal(true).optional(),
|
|
memberId: z.literal(true).optional(),
|
|
dateOfBirth: z.literal(true).optional(),
|
|
remarks: z.literal(true).optional(),
|
|
missingTeethStatus: z.literal(true).optional(),
|
|
serviceDate: z.literal(true).optional(),
|
|
insuranceProvider: z.literal(true).optional(),
|
|
createdAt: z.literal(true).optional(),
|
|
updatedAt: z.literal(true).optional(),
|
|
status: z.literal(true).optional(),
|
|
claimNumber: z.literal(true).optional(),
|
|
npiProviderId: z.literal(true).optional()
|
|
}).strict();
|
|
export const ClaimMaxAggregateInputObjectSchema: z.ZodType<Prisma.ClaimMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.ClaimMaxAggregateInputType>;
|
|
export const ClaimMaxAggregateInputObjectZodSchema = makeSchema();
|