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>
24 lines
3.0 KiB
TypeScript
24 lines
3.0 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { NpiProviderCreateWithoutAppointmentsInputObjectSchema as NpiProviderCreateWithoutAppointmentsInputObjectSchema } from './NpiProviderCreateWithoutAppointmentsInput.schema';
|
|
import { NpiProviderUncheckedCreateWithoutAppointmentsInputObjectSchema as NpiProviderUncheckedCreateWithoutAppointmentsInputObjectSchema } from './NpiProviderUncheckedCreateWithoutAppointmentsInput.schema';
|
|
import { NpiProviderCreateOrConnectWithoutAppointmentsInputObjectSchema as NpiProviderCreateOrConnectWithoutAppointmentsInputObjectSchema } from './NpiProviderCreateOrConnectWithoutAppointmentsInput.schema';
|
|
import { NpiProviderUpsertWithoutAppointmentsInputObjectSchema as NpiProviderUpsertWithoutAppointmentsInputObjectSchema } from './NpiProviderUpsertWithoutAppointmentsInput.schema';
|
|
import { NpiProviderWhereInputObjectSchema as NpiProviderWhereInputObjectSchema } from './NpiProviderWhereInput.schema';
|
|
import { NpiProviderWhereUniqueInputObjectSchema as NpiProviderWhereUniqueInputObjectSchema } from './NpiProviderWhereUniqueInput.schema';
|
|
import { NpiProviderUpdateToOneWithWhereWithoutAppointmentsInputObjectSchema as NpiProviderUpdateToOneWithWhereWithoutAppointmentsInputObjectSchema } from './NpiProviderUpdateToOneWithWhereWithoutAppointmentsInput.schema';
|
|
import { NpiProviderUpdateWithoutAppointmentsInputObjectSchema as NpiProviderUpdateWithoutAppointmentsInputObjectSchema } from './NpiProviderUpdateWithoutAppointmentsInput.schema';
|
|
import { NpiProviderUncheckedUpdateWithoutAppointmentsInputObjectSchema as NpiProviderUncheckedUpdateWithoutAppointmentsInputObjectSchema } from './NpiProviderUncheckedUpdateWithoutAppointmentsInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => NpiProviderCreateWithoutAppointmentsInputObjectSchema), z.lazy(() => NpiProviderUncheckedCreateWithoutAppointmentsInputObjectSchema)]).optional(),
|
|
connectOrCreate: z.lazy(() => NpiProviderCreateOrConnectWithoutAppointmentsInputObjectSchema).optional(),
|
|
upsert: z.lazy(() => NpiProviderUpsertWithoutAppointmentsInputObjectSchema).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(() => NpiProviderUpdateToOneWithWhereWithoutAppointmentsInputObjectSchema), z.lazy(() => NpiProviderUpdateWithoutAppointmentsInputObjectSchema), z.lazy(() => NpiProviderUncheckedUpdateWithoutAppointmentsInputObjectSchema)]).optional()
|
|
}).strict();
|
|
export const NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectSchema: z.ZodType<Prisma.NpiProviderUpdateOneWithoutAppointmentsNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.NpiProviderUpdateOneWithoutAppointmentsNestedInput>;
|
|
export const NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectZodSchema = makeSchema();
|