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:
@@ -45,6 +45,9 @@ exports.ServiceLineGroupByResultSchema = z.array(z.object({
|
||||
arch: z.string(),
|
||||
toothNumber: z.string(),
|
||||
toothSurface: z.string(),
|
||||
icn: z.string(),
|
||||
paidCode: z.string(),
|
||||
allowedAmount: z.number(),
|
||||
totalBilled: z.number(),
|
||||
totalPaid: z.number(),
|
||||
totalAdjusted: z.number(),
|
||||
@@ -59,6 +62,9 @@ exports.ServiceLineGroupByResultSchema = z.array(z.object({
|
||||
arch: z.number(),
|
||||
toothNumber: z.number(),
|
||||
toothSurface: z.number(),
|
||||
icn: z.number(),
|
||||
paidCode: z.number(),
|
||||
allowedAmount: z.number(),
|
||||
totalBilled: z.number(),
|
||||
totalPaid: z.number(),
|
||||
totalAdjusted: z.number(),
|
||||
@@ -72,6 +78,7 @@ exports.ServiceLineGroupByResultSchema = z.array(z.object({
|
||||
id: z.number().nullable(),
|
||||
claimId: z.number().nullable(),
|
||||
paymentId: z.number().nullable(),
|
||||
allowedAmount: z.number().nullable(),
|
||||
totalBilled: z.number().nullable(),
|
||||
totalPaid: z.number().nullable(),
|
||||
totalAdjusted: z.number().nullable(),
|
||||
@@ -81,6 +88,7 @@ exports.ServiceLineGroupByResultSchema = z.array(z.object({
|
||||
id: z.number().nullable(),
|
||||
claimId: z.number().nullable(),
|
||||
paymentId: z.number().nullable(),
|
||||
allowedAmount: z.number().nullable(),
|
||||
totalBilled: z.number().nullable(),
|
||||
totalPaid: z.number().nullable(),
|
||||
totalAdjusted: z.number().nullable(),
|
||||
@@ -96,6 +104,9 @@ exports.ServiceLineGroupByResultSchema = z.array(z.object({
|
||||
arch: z.string().nullable(),
|
||||
toothNumber: z.string().nullable(),
|
||||
toothSurface: z.string().nullable(),
|
||||
icn: z.string().nullable(),
|
||||
paidCode: z.string().nullable(),
|
||||
allowedAmount: z.number().nullable(),
|
||||
totalBilled: z.number().nullable(),
|
||||
totalPaid: z.number().nullable(),
|
||||
totalAdjusted: z.number().nullable(),
|
||||
@@ -111,6 +122,9 @@ exports.ServiceLineGroupByResultSchema = z.array(z.object({
|
||||
arch: z.string().nullable(),
|
||||
toothNumber: z.string().nullable(),
|
||||
toothSurface: z.string().nullable(),
|
||||
icn: z.string().nullable(),
|
||||
paidCode: z.string().nullable(),
|
||||
allowedAmount: z.number().nullable(),
|
||||
totalBilled: z.number().nullable(),
|
||||
totalPaid: z.number().nullable(),
|
||||
totalAdjusted: z.number().nullable(),
|
||||
|
||||
Reference in New Issue
Block a user