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:
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
|
||||
const PatientStatus_schema_1 = require("../enums/PatientStatus.schema");
|
||||
const PatientCreateNestedOneWithoutAppointmentsInput_schema_1 = require("./PatientCreateNestedOneWithoutAppointmentsInput.schema");
|
||||
const UserCreateNestedOneWithoutAppointmentsInput_schema_1 = require("./UserCreateNestedOneWithoutAppointmentsInput.schema");
|
||||
const NpiProviderCreateNestedOneWithoutAppointmentsInput_schema_1 = require("./NpiProviderCreateNestedOneWithoutAppointmentsInput.schema");
|
||||
const AppointmentProcedureCreateNestedManyWithoutAppointmentInput_schema_1 = require("./AppointmentProcedureCreateNestedManyWithoutAppointmentInput.schema");
|
||||
const ClaimCreateNestedManyWithoutAppointmentInput_schema_1 = require("./ClaimCreateNestedManyWithoutAppointmentInput.schema");
|
||||
const AppointmentFileCreateNestedManyWithoutAppointmentInput_schema_1 = require("./AppointmentFileCreateNestedManyWithoutAppointmentInput.schema");
|
||||
@@ -56,6 +57,7 @@ const makeSchema = () => z.object({
|
||||
eligibilityStatus: PatientStatus_schema_1.PatientStatusSchema.optional(),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutAppointmentsInput_schema_1.PatientCreateNestedOneWithoutAppointmentsInputObjectSchema),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutAppointmentsInput_schema_1.UserCreateNestedOneWithoutAppointmentsInputObjectSchema),
|
||||
npiProvider: z.lazy(() => NpiProviderCreateNestedOneWithoutAppointmentsInput_schema_1.NpiProviderCreateNestedOneWithoutAppointmentsInputObjectSchema).optional(),
|
||||
procedures: z.lazy(() => AppointmentProcedureCreateNestedManyWithoutAppointmentInput_schema_1.AppointmentProcedureCreateNestedManyWithoutAppointmentInputObjectSchema).optional(),
|
||||
claims: z.lazy(() => ClaimCreateNestedManyWithoutAppointmentInput_schema_1.ClaimCreateNestedManyWithoutAppointmentInputObjectSchema).optional(),
|
||||
files: z.lazy(() => AppointmentFileCreateNestedManyWithoutAppointmentInput_schema_1.AppointmentFileCreateNestedManyWithoutAppointmentInputObjectSchema).optional()
|
||||
|
||||
Reference in New Issue
Block a user