Files
DentalManagementMH05/packages/db/shared/schemas/objects/NpiProviderUpdateOneWithoutAppointmentProceduresNestedInput.schema.ts
Gitead 3e899376c3 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>
2026-04-27 00:25:24 -04:00

24 lines
3.2 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { NpiProviderCreateWithoutAppointmentProceduresInputObjectSchema as NpiProviderCreateWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderCreateWithoutAppointmentProceduresInput.schema';
import { NpiProviderUncheckedCreateWithoutAppointmentProceduresInputObjectSchema as NpiProviderUncheckedCreateWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderUncheckedCreateWithoutAppointmentProceduresInput.schema';
import { NpiProviderCreateOrConnectWithoutAppointmentProceduresInputObjectSchema as NpiProviderCreateOrConnectWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderCreateOrConnectWithoutAppointmentProceduresInput.schema';
import { NpiProviderUpsertWithoutAppointmentProceduresInputObjectSchema as NpiProviderUpsertWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderUpsertWithoutAppointmentProceduresInput.schema';
import { NpiProviderWhereInputObjectSchema as NpiProviderWhereInputObjectSchema } from './NpiProviderWhereInput.schema';
import { NpiProviderWhereUniqueInputObjectSchema as NpiProviderWhereUniqueInputObjectSchema } from './NpiProviderWhereUniqueInput.schema';
import { NpiProviderUpdateToOneWithWhereWithoutAppointmentProceduresInputObjectSchema as NpiProviderUpdateToOneWithWhereWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderUpdateToOneWithWhereWithoutAppointmentProceduresInput.schema';
import { NpiProviderUpdateWithoutAppointmentProceduresInputObjectSchema as NpiProviderUpdateWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderUpdateWithoutAppointmentProceduresInput.schema';
import { NpiProviderUncheckedUpdateWithoutAppointmentProceduresInputObjectSchema as NpiProviderUncheckedUpdateWithoutAppointmentProceduresInputObjectSchema } from './NpiProviderUncheckedUpdateWithoutAppointmentProceduresInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => NpiProviderCreateWithoutAppointmentProceduresInputObjectSchema), z.lazy(() => NpiProviderUncheckedCreateWithoutAppointmentProceduresInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => NpiProviderCreateOrConnectWithoutAppointmentProceduresInputObjectSchema).optional(),
upsert: z.lazy(() => NpiProviderUpsertWithoutAppointmentProceduresInputObjectSchema).optional(),
disconnect: z.union([z.boolean(), z.lazy(() => NpiProviderWhereInputObjectSchema)]).optional(),
delete: z.union([z.boolean(), z.lazy(() => NpiProviderWhereInputObjectSchema)]).optional(),
connect: z.lazy(() => NpiProviderWhereUniqueInputObjectSchema).optional(),
update: z.union([z.lazy(() => NpiProviderUpdateToOneWithWhereWithoutAppointmentProceduresInputObjectSchema), z.lazy(() => NpiProviderUpdateWithoutAppointmentProceduresInputObjectSchema), z.lazy(() => NpiProviderUncheckedUpdateWithoutAppointmentProceduresInputObjectSchema)]).optional()
}).strict();
export const NpiProviderUpdateOneWithoutAppointmentProceduresNestedInputObjectSchema: z.ZodType<Prisma.NpiProviderUpdateOneWithoutAppointmentProceduresNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.NpiProviderUpdateOneWithoutAppointmentProceduresNestedInput>;
export const NpiProviderUpdateOneWithoutAppointmentProceduresNestedInputObjectZodSchema = makeSchema();