- 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>
51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
import * as z from 'zod';
|
|
export const PatientFindManyResultSchema = z.object({
|
|
data: z.array(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())
|
|
})),
|
|
pagination: z.object({
|
|
page: z.number().int().min(1),
|
|
pageSize: z.number().int().min(1),
|
|
total: z.number().int().min(0),
|
|
totalPages: z.number().int().min(0),
|
|
hasNext: z.boolean(),
|
|
hasPrev: z.boolean()
|
|
})
|
|
}); |