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:
2026-06-28 22:57:24 -04:00
parent c9d08028a9
commit e1fe4862d5
1613 changed files with 59200 additions and 422 deletions

View File

@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
const CloudFolderArgs_schema_1 = require("./CloudFolderArgs.schema");
const findManyCloudFolder_schema_1 = require("../findManyCloudFolder.schema");
const UserArgs_schema_1 = require("./UserArgs.schema");
const PatientArgs_schema_1 = require("./PatientArgs.schema");
const findManyCloudFile_schema_1 = require("../findManyCloudFile.schema");
const CloudFolderCountOutputTypeArgs_schema_1 = require("./CloudFolderCountOutputTypeArgs.schema");
const makeSchema = () => z.object({
@@ -45,9 +46,11 @@ const makeSchema = () => z.object({
userId: z.boolean().optional(),
name: z.boolean().optional(),
parentId: z.boolean().optional(),
patientId: z.boolean().optional(),
parent: z.union([z.boolean(), z.lazy(() => CloudFolderArgs_schema_1.CloudFolderArgsObjectSchema)]).optional(),
children: z.union([z.boolean(), z.lazy(() => findManyCloudFolder_schema_1.CloudFolderFindManySchema)]).optional(),
user: z.union([z.boolean(), z.lazy(() => UserArgs_schema_1.UserArgsObjectSchema)]).optional(),
patient: z.union([z.boolean(), z.lazy(() => PatientArgs_schema_1.PatientArgsObjectSchema)]).optional(),
files: z.union([z.boolean(), z.lazy(() => findManyCloudFile_schema_1.CloudFileFindManySchema)]).optional(),
createdAt: z.boolean().optional(),
updatedAt: z.boolean().optional(),