Files
DentalManagement09/packages/db/shared/schemas/objects/PatientPreauthHistoryScalarWhereWithAggregatesInput.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

23 lines
2.5 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
import { StringNullableWithAggregatesFilterObjectSchema as StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'
const patientpreauthhistoryscalarwherewithaggregatesinputSchema = z.object({
AND: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
OR: z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
patientId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
preAuthNumber: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
submittedCode: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
toothQuadArchSurface: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
paidAmount: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
status: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
createdAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional()
}).strict();
export const PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryScalarWhereWithAggregatesInput> = patientpreauthhistoryscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.PatientPreauthHistoryScalarWhereWithAggregatesInput>;
export const PatientPreauthHistoryScalarWhereWithAggregatesInputObjectZodSchema = patientpreauthhistoryscalarwherewithaggregatesinputSchema;