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:
@@ -5,7 +5,8 @@ import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperat
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { PaymentUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema as PaymentUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './PaymentUncheckedUpdateManyWithoutNpiProviderNestedInput.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(),
|
||||
payments: z.lazy(() => PaymentUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
|
||||
commissionBatches: z.lazy(() => CommissionBatchUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
|
||||
appointmentProcedures: z.lazy(() => AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional()
|
||||
appointmentProcedures: z.lazy(() => AppointmentProcedureUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
|
||||
appointments: z.lazy(() => AppointmentUncheckedUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const NpiProviderUncheckedUpdateWithoutClaimsInputObjectSchema: z.ZodType<Prisma.NpiProviderUncheckedUpdateWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.NpiProviderUncheckedUpdateWithoutClaimsInput>;
|
||||
export const NpiProviderUncheckedUpdateWithoutClaimsInputObjectZodSchema = makeSchema();
|
||||
|
||||
Reference in New Issue
Block a user