Files
DentalManagement09/packages/db/shared/schemas/objects/PatientPreauthHistoryScalarWhereInput.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.1 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema'
const patientpreauthhistoryscalarwhereinputSchema = z.object({
AND: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema).array()]).optional(),
OR: z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
patientId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
preAuthNumber: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
submittedCode: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
toothQuadArchSurface: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
paidAmount: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
status: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional()
}).strict();
export const PatientPreauthHistoryScalarWhereInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryScalarWhereInput> = patientpreauthhistoryscalarwhereinputSchema as unknown as z.ZodType<Prisma.PatientPreauthHistoryScalarWhereInput>;
export const PatientPreauthHistoryScalarWhereInputObjectZodSchema = patientpreauthhistoryscalarwhereinputSchema;