Adds an optional Provider (NPI) select to the Edit Appointment form, sourced from Settings > NPI Providers. The AI "Claim for Column" batch flow now prefers the appointment's own provider when resolving which provider Selenium should select on the insurance site (e.g. MassHealth rendering provider dropdown), falling back to the existing per-procedure selection, active claim, or first configured provider. Also resyncs packages/db's committed compiled schema/client artifacts with their .ts sources — they had drifted out of sync (some untouched since July), which was silently stripping the new npiProviderId field via stale .strict() zod schemas. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
28 lines
4.1 KiB
TypeScript
28 lines
4.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { AppointmentCreateWithoutNpiProviderInputObjectSchema as AppointmentCreateWithoutNpiProviderInputObjectSchema } from './AppointmentCreateWithoutNpiProviderInput.schema';
|
|
import { AppointmentUncheckedCreateWithoutNpiProviderInputObjectSchema as AppointmentUncheckedCreateWithoutNpiProviderInputObjectSchema } from './AppointmentUncheckedCreateWithoutNpiProviderInput.schema';
|
|
import { AppointmentCreateOrConnectWithoutNpiProviderInputObjectSchema as AppointmentCreateOrConnectWithoutNpiProviderInputObjectSchema } from './AppointmentCreateOrConnectWithoutNpiProviderInput.schema';
|
|
import { AppointmentUpsertWithWhereUniqueWithoutNpiProviderInputObjectSchema as AppointmentUpsertWithWhereUniqueWithoutNpiProviderInputObjectSchema } from './AppointmentUpsertWithWhereUniqueWithoutNpiProviderInput.schema';
|
|
import { AppointmentCreateManyNpiProviderInputEnvelopeObjectSchema as AppointmentCreateManyNpiProviderInputEnvelopeObjectSchema } from './AppointmentCreateManyNpiProviderInputEnvelope.schema';
|
|
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
|
import { AppointmentUpdateWithWhereUniqueWithoutNpiProviderInputObjectSchema as AppointmentUpdateWithWhereUniqueWithoutNpiProviderInputObjectSchema } from './AppointmentUpdateWithWhereUniqueWithoutNpiProviderInput.schema';
|
|
import { AppointmentUpdateManyWithWhereWithoutNpiProviderInputObjectSchema as AppointmentUpdateManyWithWhereWithoutNpiProviderInputObjectSchema } from './AppointmentUpdateManyWithWhereWithoutNpiProviderInput.schema';
|
|
import { AppointmentScalarWhereInputObjectSchema as AppointmentScalarWhereInputObjectSchema } from './AppointmentScalarWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => AppointmentCreateWithoutNpiProviderInputObjectSchema), z.lazy(() => AppointmentCreateWithoutNpiProviderInputObjectSchema).array(), z.lazy(() => AppointmentUncheckedCreateWithoutNpiProviderInputObjectSchema), z.lazy(() => AppointmentUncheckedCreateWithoutNpiProviderInputObjectSchema).array()]).optional(),
|
|
connectOrCreate: z.union([z.lazy(() => AppointmentCreateOrConnectWithoutNpiProviderInputObjectSchema), z.lazy(() => AppointmentCreateOrConnectWithoutNpiProviderInputObjectSchema).array()]).optional(),
|
|
upsert: z.union([z.lazy(() => AppointmentUpsertWithWhereUniqueWithoutNpiProviderInputObjectSchema), z.lazy(() => AppointmentUpsertWithWhereUniqueWithoutNpiProviderInputObjectSchema).array()]).optional(),
|
|
createMany: z.lazy(() => AppointmentCreateManyNpiProviderInputEnvelopeObjectSchema).optional(),
|
|
set: z.union([z.lazy(() => AppointmentWhereUniqueInputObjectSchema), z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array()]).optional(),
|
|
disconnect: z.union([z.lazy(() => AppointmentWhereUniqueInputObjectSchema), z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array()]).optional(),
|
|
delete: z.union([z.lazy(() => AppointmentWhereUniqueInputObjectSchema), z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array()]).optional(),
|
|
connect: z.union([z.lazy(() => AppointmentWhereUniqueInputObjectSchema), z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array()]).optional(),
|
|
update: z.union([z.lazy(() => AppointmentUpdateWithWhereUniqueWithoutNpiProviderInputObjectSchema), z.lazy(() => AppointmentUpdateWithWhereUniqueWithoutNpiProviderInputObjectSchema).array()]).optional(),
|
|
updateMany: z.union([z.lazy(() => AppointmentUpdateManyWithWhereWithoutNpiProviderInputObjectSchema), z.lazy(() => AppointmentUpdateManyWithWhereWithoutNpiProviderInputObjectSchema).array()]).optional(),
|
|
deleteMany: z.union([z.lazy(() => AppointmentScalarWhereInputObjectSchema), z.lazy(() => AppointmentScalarWhereInputObjectSchema).array()]).optional()
|
|
}).strict();
|
|
export const AppointmentUpdateManyWithoutNpiProviderNestedInputObjectSchema: z.ZodType<Prisma.AppointmentUpdateManyWithoutNpiProviderNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUpdateManyWithoutNpiProviderNestedInput>;
|
|
export const AppointmentUpdateManyWithoutNpiProviderNestedInputObjectZodSchema = makeSchema();
|