- 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>
32 lines
1.4 KiB
TypeScript
32 lines
1.4 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
id: SortOrderSchema.optional(),
|
|
firstName: SortOrderSchema.optional(),
|
|
lastName: SortOrderSchema.optional(),
|
|
dateOfBirth: SortOrderSchema.optional(),
|
|
gender: SortOrderSchema.optional(),
|
|
phone: SortOrderSchema.optional(),
|
|
email: SortOrderSchema.optional(),
|
|
address: SortOrderSchema.optional(),
|
|
city: SortOrderSchema.optional(),
|
|
zipCode: SortOrderSchema.optional(),
|
|
insuranceProvider: SortOrderSchema.optional(),
|
|
insuranceId: SortOrderSchema.optional(),
|
|
groupNumber: SortOrderSchema.optional(),
|
|
policyHolder: SortOrderSchema.optional(),
|
|
allergies: SortOrderSchema.optional(),
|
|
medicalConditions: SortOrderSchema.optional(),
|
|
preferredLanguage: SortOrderSchema.optional(),
|
|
status: SortOrderSchema.optional(),
|
|
remainingBenefit: SortOrderSchema.optional(),
|
|
thirdPartyInsurance: SortOrderSchema.optional(),
|
|
userId: SortOrderSchema.optional(),
|
|
createdAt: SortOrderSchema.optional(),
|
|
updatedAt: SortOrderSchema.optional()
|
|
}).strict();
|
|
export const PatientMinOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientMinOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientMinOrderByAggregateInput>;
|
|
export const PatientMinOrderByAggregateInputObjectZodSchema = makeSchema();
|