Files
DentalManagement09/packages/db/shared/schemas/objects/PatientMaxAggregateInput.schema.ts
T
GiteadandClaude Opus 5.5 1abc2c705d fix: allow letters in insurance ID; add patient state (default MA)
- Backend insurance ID check now accepts letters + digits (BCBS IDs have
  a letter prefix), matching the frontend schema; create route validates
  the normalized body
- Patient.state column (default "MA") with State select on the patient
  form; ADA claim form uses the patient's state instead of the office's
- Rebuild stale packages/db compiled .js so the runtime schemas include
  new fields (state, office billing NPI fields, Telnyx settings)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 23:29:27 -04:00

33 lines
1.3 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.literal(true).optional(),
firstName: z.literal(true).optional(),
lastName: z.literal(true).optional(),
dateOfBirth: z.literal(true).optional(),
gender: z.literal(true).optional(),
phone: z.literal(true).optional(),
email: z.literal(true).optional(),
address: z.literal(true).optional(),
city: z.literal(true).optional(),
state: z.literal(true).optional(),
zipCode: z.literal(true).optional(),
insuranceProvider: z.literal(true).optional(),
insuranceId: z.literal(true).optional(),
groupNumber: z.literal(true).optional(),
policyHolder: z.literal(true).optional(),
allergies: z.literal(true).optional(),
medicalConditions: z.literal(true).optional(),
preferredLanguage: z.literal(true).optional(),
status: z.literal(true).optional(),
remainingBenefit: z.literal(true).optional(),
thirdPartyInsurance: z.literal(true).optional(),
userId: z.literal(true).optional(),
createdAt: z.literal(true).optional(),
updatedAt: z.literal(true).optional()
}).strict();
export const PatientMaxAggregateInputObjectSchema: z.ZodType<Prisma.PatientMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientMaxAggregateInputType>;
export const PatientMaxAggregateInputObjectZodSchema = makeSchema();