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:
@@ -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);
|
||||
|
||||
@@ -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({
|
||||
|
||||
5
packages/db/types/shopping-vendor-types.js
Normal file
5
packages/db/types/shopping-vendor-types.js
Normal 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 });
|
||||
Reference in New Issue
Block a user