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

@@ -0,0 +1,57 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectZodSchema = exports.NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectSchema = void 0;
const z = __importStar(require("zod"));
const NpiProviderCreateWithoutAppointmentsInput_schema_1 = require("./NpiProviderCreateWithoutAppointmentsInput.schema");
const NpiProviderUncheckedCreateWithoutAppointmentsInput_schema_1 = require("./NpiProviderUncheckedCreateWithoutAppointmentsInput.schema");
const NpiProviderCreateOrConnectWithoutAppointmentsInput_schema_1 = require("./NpiProviderCreateOrConnectWithoutAppointmentsInput.schema");
const NpiProviderUpsertWithoutAppointmentsInput_schema_1 = require("./NpiProviderUpsertWithoutAppointmentsInput.schema");
const NpiProviderWhereInput_schema_1 = require("./NpiProviderWhereInput.schema");
const NpiProviderWhereUniqueInput_schema_1 = require("./NpiProviderWhereUniqueInput.schema");
const NpiProviderUpdateToOneWithWhereWithoutAppointmentsInput_schema_1 = require("./NpiProviderUpdateToOneWithWhereWithoutAppointmentsInput.schema");
const NpiProviderUpdateWithoutAppointmentsInput_schema_1 = require("./NpiProviderUpdateWithoutAppointmentsInput.schema");
const NpiProviderUncheckedUpdateWithoutAppointmentsInput_schema_1 = require("./NpiProviderUncheckedUpdateWithoutAppointmentsInput.schema");
const makeSchema = () => z.object({
create: z.union([z.lazy(() => NpiProviderCreateWithoutAppointmentsInput_schema_1.NpiProviderCreateWithoutAppointmentsInputObjectSchema), z.lazy(() => NpiProviderUncheckedCreateWithoutAppointmentsInput_schema_1.NpiProviderUncheckedCreateWithoutAppointmentsInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => NpiProviderCreateOrConnectWithoutAppointmentsInput_schema_1.NpiProviderCreateOrConnectWithoutAppointmentsInputObjectSchema).optional(),
upsert: z.lazy(() => NpiProviderUpsertWithoutAppointmentsInput_schema_1.NpiProviderUpsertWithoutAppointmentsInputObjectSchema).optional(),
disconnect: z.union([z.boolean(), z.lazy(() => NpiProviderWhereInput_schema_1.NpiProviderWhereInputObjectSchema)]).optional(),
delete: z.union([z.boolean(), z.lazy(() => NpiProviderWhereInput_schema_1.NpiProviderWhereInputObjectSchema)]).optional(),
connect: z.lazy(() => NpiProviderWhereUniqueInput_schema_1.NpiProviderWhereUniqueInputObjectSchema).optional(),
update: z.union([z.lazy(() => NpiProviderUpdateToOneWithWhereWithoutAppointmentsInput_schema_1.NpiProviderUpdateToOneWithWhereWithoutAppointmentsInputObjectSchema), z.lazy(() => NpiProviderUpdateWithoutAppointmentsInput_schema_1.NpiProviderUpdateWithoutAppointmentsInputObjectSchema), z.lazy(() => NpiProviderUncheckedUpdateWithoutAppointmentsInput_schema_1.NpiProviderUncheckedUpdateWithoutAppointmentsInputObjectSchema)]).optional()
}).strict();
exports.NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectSchema = makeSchema();
exports.NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectZodSchema = makeSchema();