Files
DentalManagementMH07/packages/db/shared/schemas/objects/PatientMinAggregateInput.schema.ts
T
GiteadandClaude Sonnet 5 52ddfd9f57 feat: add Remaining/Third Party columns, toggle PDF viewer, retire CMSP as separate insurance type
- Add remainingBenefit and thirdPartyInsurance columns to Patient; extract both
  from the MassHealth accumulator/member-detail pages during the eligibility
  check and surface them in the eligibility table
- Add an updated-date display and a toggle to suppress the post-check PDF
  viewer popup (default off) on the insurance eligibility page
- Rename CMSP-prefixed PDF filenames and UI copy to MH, since CMSP and MH now
  share the same worker
- Fold CMSP into MassHealth/MH across patient/claim insurance-type dropdowns
  and the chatbot's eligibility routing, since they're the same insurance
- Remove auto-download of saved eligibility PDFs; downloading is now manual

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 22:32:43 -04:00

32 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(),
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();