fix: allow claims without appointment + support post/core multi-tooth input
- Make appointmentId nullable/optional in Prisma Zod schema via @zod rich comment so claims can be submitted without an existing appointment - Convert undefined appointmentId to null in all claim form handlers and the backend claim creation endpoint - Add AI classifier rule for expanding one procedure across multiple comma-separated tooth numbers (e.g. "post/core on #23, 24, 25, 26") - Add "post/core" (slash) alias to CDT lookup maps Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
|
||||
const IntWithAggregatesFilter_schema_1 = require("./IntWithAggregatesFilter.schema");
|
||||
const StringWithAggregatesFilter_schema_1 = require("./StringWithAggregatesFilter.schema");
|
||||
const DateTimeWithAggregatesFilter_schema_1 = require("./DateTimeWithAggregatesFilter.schema");
|
||||
const BoolWithAggregatesFilter_schema_1 = require("./BoolWithAggregatesFilter.schema");
|
||||
const StringNullableWithAggregatesFilter_schema_1 = require("./StringNullableWithAggregatesFilter.schema");
|
||||
const EnumPatientStatusWithAggregatesFilter_schema_1 = require("./EnumPatientStatusWithAggregatesFilter.schema");
|
||||
const PatientStatus_schema_1 = require("../enums/PatientStatus.schema");
|
||||
@@ -54,9 +55,11 @@ const appointmentscalarwherewithaggregatesinputSchema = z.object({
|
||||
startTime: z.union([z.lazy(() => StringWithAggregatesFilter_schema_1.StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
endTime: z.union([z.lazy(() => StringWithAggregatesFilter_schema_1.StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
type: z.union([z.lazy(() => StringWithAggregatesFilter_schema_1.StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
typeLocked: z.union([z.lazy(() => BoolWithAggregatesFilter_schema_1.BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
|
||||
notes: z.union([z.lazy(() => StringNullableWithAggregatesFilter_schema_1.StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
procedureCodeNotes: z.union([z.lazy(() => StringNullableWithAggregatesFilter_schema_1.StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
status: z.union([z.lazy(() => StringWithAggregatesFilter_schema_1.StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
movedByAi: z.union([z.lazy(() => BoolWithAggregatesFilter_schema_1.BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
|
||||
createdAt: z.union([z.lazy(() => DateTimeWithAggregatesFilter_schema_1.DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional(),
|
||||
eligibilityStatus: z.union([z.lazy(() => EnumPatientStatusWithAggregatesFilter_schema_1.EnumPatientStatusWithAggregatesFilterObjectSchema), PatientStatus_schema_1.PatientStatusSchema]).optional()
|
||||
}).strict();
|
||||
|
||||
Reference in New Issue
Block a user