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:
@@ -52,8 +52,10 @@ exports.PatientGroupByResultSchema = z.array(z.object({
|
||||
policyHolder: z.string(),
|
||||
allergies: z.string(),
|
||||
medicalConditions: z.string(),
|
||||
preferredLanguage: z.string(),
|
||||
userId: z.number().int(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
_count: z.object({
|
||||
id: z.number(),
|
||||
firstName: z.number(),
|
||||
@@ -71,9 +73,11 @@ exports.PatientGroupByResultSchema = z.array(z.object({
|
||||
policyHolder: z.number(),
|
||||
allergies: z.number(),
|
||||
medicalConditions: z.number(),
|
||||
preferredLanguage: z.number(),
|
||||
status: z.number(),
|
||||
userId: z.number(),
|
||||
createdAt: z.number(),
|
||||
updatedAt: z.number(),
|
||||
user: z.number(),
|
||||
appointments: z.number(),
|
||||
procedures: z.number(),
|
||||
@@ -81,7 +85,9 @@ exports.PatientGroupByResultSchema = z.array(z.object({
|
||||
groups: z.number(),
|
||||
payment: z.number(),
|
||||
communications: z.number(),
|
||||
documents: z.number()
|
||||
documents: z.number(),
|
||||
conversation: z.number(),
|
||||
cloudFolders: z.number()
|
||||
}).optional(),
|
||||
_sum: z.object({
|
||||
id: z.number().nullable(),
|
||||
@@ -108,8 +114,10 @@ exports.PatientGroupByResultSchema = z.array(z.object({
|
||||
policyHolder: z.string().nullable(),
|
||||
allergies: z.string().nullable(),
|
||||
medicalConditions: z.string().nullable(),
|
||||
preferredLanguage: z.string().nullable(),
|
||||
userId: z.number().int().nullable(),
|
||||
createdAt: z.date().nullable()
|
||||
createdAt: z.date().nullable(),
|
||||
updatedAt: z.date().nullable()
|
||||
}).nullable().optional(),
|
||||
_max: z.object({
|
||||
id: z.number().int().nullable(),
|
||||
@@ -128,7 +136,9 @@ exports.PatientGroupByResultSchema = z.array(z.object({
|
||||
policyHolder: z.string().nullable(),
|
||||
allergies: z.string().nullable(),
|
||||
medicalConditions: z.string().nullable(),
|
||||
preferredLanguage: z.string().nullable(),
|
||||
userId: z.number().int().nullable(),
|
||||
createdAt: z.date().nullable()
|
||||
createdAt: z.date().nullable(),
|
||||
updatedAt: z.date().nullable()
|
||||
}).nullable().optional()
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user