feat: add Provider field to appointment form, drive AI claim automation

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>
This commit is contained in:
ff
2026-07-20 23:07:10 -04:00
parent ca568de817
commit b1932fa3d6
1285 changed files with 21237 additions and 4432 deletions

View File

@@ -5,7 +5,8 @@ import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperat
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
import { ClaimUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema as ClaimUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './ClaimUncheckedUpdateManyWithoutNpiProviderNestedInput.schema';
import { CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema as CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInput.schema';
import { AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema as AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput.schema'
import { AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema as AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInput.schema';
import { AppointmentUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema as AppointmentUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './AppointmentUncheckedUpdateManyWithoutNpiProviderNestedInput.schema'
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
@@ -16,7 +17,8 @@ const makeSchema = () => z.object({
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
claims: z.lazy(() => ClaimUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
commissionBatches: z.lazy(() => CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
appointmentProcedures: z.lazy(() => AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional()
appointmentProcedures: z.lazy(() => AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
appointments: z.lazy(() => AppointmentUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional()
}).strict();
export const NpiProviderUncheckedUpdateWithoutPaymentsInputObjectSchema: z.ZodType<Prisma.NpiProviderUncheckedUpdateWithoutPaymentsInput> = makeSchema() as unknown as z.ZodType<Prisma.NpiProviderUncheckedUpdateWithoutPaymentsInput>;
export const NpiProviderUncheckedUpdateWithoutPaymentsInputObjectZodSchema = makeSchema();