Files
DentalManagement09/packages/db/shared/schemas/results/PatientUpdateResult.schema.ts
T
GiteadandClaude Opus 5.5 6c98f7f985 feat: Tufts SCO service/preauth history, chat clear archives history, labeled ID/DOB detection
- AI chat Clear empties the chat box but archives the conversation in the per-user JSON file
- Chat bot detects Member ID/DOB pasted with labels ("Date of Birth ... Member ID ...")
- Tufts SCO (DentaQuest) eligibility saves the member's service history
- Tufts SCO Check PreAuth saves procedure lines (code, tooth, plan payment, status) to a
  new PatientPreauthHistory table, shown as Preauth History in Patient Details

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 22:34:27 -05:00

41 lines
1.4 KiB
TypeScript

import * as z from 'zod';
export const PatientUpdateResultSchema = z.nullable(z.object({
id: z.number().int(),
firstName: z.string(),
lastName: z.string(),
dateOfBirth: z.date().optional(),
gender: z.string(),
phone: z.string(),
email: z.string().optional(),
address: z.string().optional(),
city: z.string().optional(),
state: z.string().optional(),
zipCode: z.string().optional(),
insuranceProvider: z.string().optional(),
insuranceId: z.string().optional(),
groupNumber: z.string().optional(),
policyHolder: z.string().optional(),
policyHolderPatientId: z.number().int().optional(),
policyHolderRelationship: z.string().optional(),
allergies: z.string().optional(),
medicalConditions: z.string().optional(),
preferredLanguage: z.string().optional(),
status: z.unknown(),
remainingBenefit: z.string().optional(),
thirdPartyInsurance: z.string().optional(),
userId: z.number().int(),
createdAt: z.date(),
updatedAt: z.date(),
user: z.unknown(),
appointments: z.array(z.unknown()),
procedures: z.array(z.unknown()),
claims: z.array(z.unknown()),
groups: z.array(z.unknown()),
payment: z.array(z.unknown()),
communications: z.array(z.unknown()),
documents: z.array(z.unknown()),
conversation: z.unknown().optional(),
cloudFolders: z.array(z.unknown()),
serviceHistory: z.array(z.unknown()),
preauthHistory: z.array(z.unknown())
}));