- 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>
33 lines
1.3 KiB
TypeScript
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 PatientMinAggregateInputObjectSchema: z.ZodType<Prisma.PatientMinAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientMinAggregateInputType>;
|
|
export const PatientMinAggregateInputObjectZodSchema = makeSchema();
|