- Add appointment type categories matching insurance claim form (recall, filling, pedo, dentures, implant, endo, crown, perio, extraction, ortho, consultation, emergency, other) - Auto-infer appointment type from CDT codes with priority rules (endo > implant > crown > ...) - typeLocked flag prevents auto-overwrite when user manually sets type - Show appointment type label and procedure codes on schedule cards - Background sync on /day route retroactively fixes stale appointment types - Fix PUT /api/claims/:id to save claimFiles (previously silently dropped) - Auto-link AppointmentFile records to ClaimFile when claim is created or updated - Fix D5750 (denture reline) CDT range to map correctly to dentures category - Fix typeLocked Zod rejection in appointment update route Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
1.0 KiB
TypeScript
25 lines
1.0 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
|
|
const makeSchema = () => z.object({
|
|
id: z.literal(true).optional(),
|
|
patientId: z.literal(true).optional(),
|
|
userId: z.literal(true).optional(),
|
|
staffId: z.literal(true).optional(),
|
|
title: z.literal(true).optional(),
|
|
date: z.literal(true).optional(),
|
|
startTime: z.literal(true).optional(),
|
|
endTime: z.literal(true).optional(),
|
|
type: z.literal(true).optional(),
|
|
typeLocked: z.literal(true).optional(),
|
|
notes: z.literal(true).optional(),
|
|
procedureCodeNotes: z.literal(true).optional(),
|
|
status: z.literal(true).optional(),
|
|
movedByAi: z.literal(true).optional(),
|
|
createdAt: z.literal(true).optional(),
|
|
eligibilityStatus: z.literal(true).optional()
|
|
}).strict();
|
|
export const AppointmentMaxAggregateInputObjectSchema: z.ZodType<Prisma.AppointmentMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentMaxAggregateInputType>;
|
|
export const AppointmentMaxAggregateInputObjectZodSchema = makeSchema();
|