fix: extract appointmentDate for multi_claim/batch_claim/preauth intents

The classifier prompt only told the AI that appointmentDate applies to
schedule_appointment/claim_only/check_and_claim, so a trailing date like
"all on 6/23/26" was dropped for multi-patient claims even though the
workflow already reads c.appointmentDate for those intents and silently
defaulted to today.

Also add Prisma config/seed scripts and shopping-vendor types/schema updates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-29 22:52:48 -04:00
parent cdda91f2b4
commit 26da3394aa
10 changed files with 351 additions and 3 deletions

View File

@@ -30,3 +30,4 @@ __exportStar(require("./payments-reports-types"), exports);
__exportStar(require("./patientConnection-types"), exports);
__exportStar(require("./npiProviders-types"), exports);
__exportStar(require("./patientDocument-types"), exports);
__exportStar(require("./shopping-vendor-types"), exports);

View File

@@ -35,7 +35,12 @@ exports.insertPatientSchema = usedSchemas_1.PatientUncheckedCreateInputObjectSch
createdAt: true,
})
.extend({
insuranceId: exports.insuranceIdSchema, // enforce numeric insuranceId
firstName: zod_1.z.string().optional().default(""),
lastName: zod_1.z.string().optional().default(""),
dateOfBirth: zod_1.z.preprocess((val) => (val === null || val === undefined || val === "" ? undefined : val), zod_1.z.coerce.date({ required_error: "Date of birth is required" })),
gender: zod_1.z.string().optional().nullable(),
phone: zod_1.z.string().optional().nullable(),
insuranceId: exports.insuranceIdSchema,
});
exports.updatePatientSchema = usedSchemas_1.PatientUncheckedCreateInputObjectSchema
.omit({

View File

@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.insertShoppingVendorSchema = void 0;
const usedSchemas_1 = require("@repo/db/usedSchemas");
exports.insertShoppingVendorSchema = usedSchemas_1.ShoppingVendorUncheckedCreateInputObjectSchema.omit({ id: true });