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>
17 lines
2.2 KiB
TypeScript
17 lines
2.2 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 { AppointmentCreateManyNpiProviderInputEnvelopeObjectSchema as AppointmentCreateManyNpiProviderInputEnvelopeObjectSchema } from './AppointmentCreateManyNpiProviderInputEnvelope.schema';
|
|
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.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(),
|
|
createMany: z.lazy(() => AppointmentCreateManyNpiProviderInputEnvelopeObjectSchema).optional(),
|
|
connect: z.union([z.lazy(() => AppointmentWhereUniqueInputObjectSchema), z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array()]).optional()
|
|
}).strict();
|
|
export const AppointmentUncheckedCreateNestedManyWithoutNpiProviderInputObjectSchema: z.ZodType<Prisma.AppointmentUncheckedCreateNestedManyWithoutNpiProviderInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUncheckedCreateNestedManyWithoutNpiProviderInput>;
|
|
export const AppointmentUncheckedCreateNestedManyWithoutNpiProviderInputObjectZodSchema = makeSchema();
|