feat: Preauth column for AI claims; searchable policy holder + ADA box 18; 2PA fix

- Schedule: last column is the Preauth column; "Claim for Column with AI" is now
  "Claim/Preauth for Column with AI" — that column's appointments go to PreAuth
  (MH, CCA, Tufts SCO, United/DentalHub; other insurances are skipped), the rest
  to Claim. Preauthorized appointments (hasPreauth) aren't resubmitted
- PreAuth payloads carry appointmentId; appointment X-rays/attachments are sent
  with MH/CCA/UnitedDH/Tufts preauths (shared appendAppointmentFiles helper)
- Patient form: policy holder is searchable from patients in the DB, plus
  "Relationship to Policy Holder/Subscriber" (Self, Spouse, Dependent Child,
  Other). New Patient columns policyHolderPatientId, policyHolderRelationship;
  browser-side schema updated so the fields aren't stripped on save
- ADA form: box 12-14 filled from the linked policy holder's record; box 18
  ticks the relationship (Self when the patient is the holder)
- AI notes: a bare "2PA" is an image count, not tooth #2 — restored before CDT
  lookup so it maps to D0220 #8 / D0230 #24

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-11 21:09:51 -04:00
co-authored by Claude Opus 5.5
parent c3efdc7f8e
commit 44a1a41efa
261 changed files with 2159 additions and 195 deletions
@@ -206,6 +206,8 @@ Rules:
e.g. "3 PA (#3, 14, 30)" → ["1 pa, #3", "2nd pa, #14", "2nd pa, #30"]
e.g. "4 PA (#3, 14, 19, 30)" → ["1 pa, #3", "2nd pa, #14", "2nd pa, #19", "2nd pa, #30"]
e.g. "2 pa #3 #14" → ["1 pa, #3", "2nd pa, #14"]
- A number written right before PA with NO tooth numbers ("2PA", "4 PA") is the image count, never a tooth number — keep it exactly as written:
e.g. "perio exam, 2PA, 4BW" → ["perio exam", "2PA", "4BW"] (NOT "1 pa, #2")
- insuranceHint is only set when the user explicitly names an insurance in the message
- renderingProvider is only set when the user explicitly names a treating/rendering provider or doctor
e.g. "with provider Kai Gao", "provider Dr. Smith", "rendered by Kai Gao", "doctor Kai Gao"
@@ -239,6 +241,19 @@ Rules:
// nothing else in it — e.g. "100232102531 4/27/1999" or "100232102531, 4/27/1999".
// Bypasses the LLM entirely so this always resolves to eligibility_by_id, since some
// providers hedge/refuse structured output on a bare digit string that looks like an SSN.
// "2PA" / "4 PA" with no tooth numbers is an image count. The LLM sometimes rewrites it as
// "1 pa, #2" (count read as a tooth), so put the original "NPA" back for the CDT lookup.
function restoreBarePaCount(message: string, names: string[]): string[] {
const bare = [...message.matchAll(/\b(\d+)\s*pas?\b(?!\s*[(#])/gi)];
if (bare.length !== 1) return names;
const isPa = (n: string) => /^\s*(?:\d+(?:st|nd|rd|th)?\s*)?(?:pa|periapical)\b/i.test(n);
const first = names.findIndex(isPa);
if (first === -1) return names;
const kept = names.filter((n) => !isPa(n));
kept.splice(first, 0, `${bare[0]![1]}PA`);
return kept;
}
function parseBareIdDob(message: string): { memberId: string; dob: string } | null {
const text = message.trim();
const dobPattern = /(\d{1,2}[\/\-]\d{1,2}[\/\-]\d{4})/;
@@ -331,6 +346,7 @@ export async function classifyInternalChat(
const jsonStr = raw.replace(/^```json\s*/i, "").replace(/```\s*$/, "").trim();
const parsed = JSON.parse(jsonStr) as ChatClassification;
if (!parsed.intent || !parsed.fallbackReply) return fallback;
if (parsed.procedureNames) parsed.procedureNames = restoreBarePaCount(message, parsed.procedureNames);
return parsed;
} catch (err) {
const msg = err instanceof Error ? err.message : String(err);
+3 -1
View File
@@ -102,16 +102,18 @@ router.get("/day", async (req: Request, res: Response): Promise<any> => {
// Enrich each appointment with procedure / claim status flags
const appointmentIds = appointments.map((a) => a.id).filter((id): id is number => id != null);
const [idsWithProcedures, idsWithClaimNumbers, procedureCodesByAppt] = await Promise.all([
const [idsWithProcedures, idsWithClaimNumbers, procedureCodesByAppt, idsWithPreauth] = await Promise.all([
storage.getAppointmentIdsWithProcedures(appointmentIds),
storage.getAppointmentIdsWithClaimNumbers(appointmentIds),
storage.getProcedureCodesByAppointmentIds(appointmentIds),
storage.getAppointmentIdsWithPreauth(appointmentIds),
]);
const enrichedAppointments = appointments.map((a) => ({
...a,
hasProcedures: a.id != null && idsWithProcedures.has(a.id),
hasClaimWithNumber: a.id != null && idsWithClaimNumbers.has(a.id),
hasPreauth: a.id != null && idsWithPreauth.has(a.id),
procedureCodes: a.id != null ? (procedureCodesByAppt.get(a.id) ?? []) : [],
}));
+12 -16
View File
@@ -21,6 +21,7 @@ import { forwardToSeleniumClaimPreAuthAgent } from "../services/seleniumInsuranc
import { formatDobForAgent } from "../utils/dateUtils";
import { ADA_PAYERS, buildAdaClaimPdf } from "../services/adaClaimForm";
import { backupScreenshots } from "../utils/screenshotBackup";
import { appendAppointmentFiles } from "../utils/appointmentAttachments";
const router = Router();
@@ -347,24 +348,11 @@ router.post(
mimetype: f.mimetype,
}));
// Include attachments already saved on the appointment (e.g. via "Select Procedures")
// that weren't re-uploaded in this request — read straight from disk by filePath.
// Include attachments already saved on the appointment.
// Skipped for chatbot-driven submissions, which already send every intended file and
// shouldn't have unrelated older appointment attachments silently tacked on.
if (claimData.appointmentId && !claimData.skipAppointmentAttachmentMerge) {
const seenNames = new Set(filesForQueue.map((f) => f.originalname));
const apptFiles = await storage.getAppointmentFiles(Number(claimData.appointmentId));
for (const f of apptFiles) {
if (!f.filePath || seenNames.has(f.filename)) continue;
const absPath = path.join(process.cwd(), f.filePath);
if (!fs.existsSync(absPath)) continue;
filesForQueue.push({
originalname: f.filename,
bufferBase64: fs.readFileSync(absPath).toString("base64"),
mimetype: f.mimeType ?? "application/octet-stream",
});
seenNames.add(f.filename);
}
if (!claimData.skipAppointmentAttachmentMerge) {
await appendAppointmentFiles(filesForQueue, claimData.appointmentId);
}
const job = await seleniumQueue.add("claim-submit", {
@@ -564,6 +552,9 @@ router.post(
mimetype: f.mimetype,
}));
// Include X-rays etc. already attached to the appointment
await appendAppointmentFiles(filesForQueue, claimData.appointmentId);
const job = await seleniumQueue.add("claim-pre-auth", {
jobType: "claim-pre-auth",
userId: req.user.id,
@@ -1263,9 +1254,14 @@ async function buildAdaFormForRequest(req: Request): Promise<AdaFormResult> {
const treatingProvider =
claim.npiProvider ?? (await storage.getNpiProvidersByUser(req.user!.id))[0] ?? null;
const holderId = (claim.patient as any).policyHolderPatientId as number | null | undefined;
const policyHolderPatient =
holderId && holderId !== claim.patient.id ? ((await storage.getPatient(holderId)) ?? null) : null;
const pdf = await buildAdaClaimPdf({
claim,
patient: claim.patient,
policyHolderPatient,
office,
treatingProvider,
payer,
@@ -2,6 +2,7 @@ import { Router, Request, Response } from "express";
import { storage } from "../storage";
import { enqueueSeleniumJob } from "../queue/jobRunner";
import multer from "multer";
import { appendAppointmentFiles } from "../utils/appointmentAttachments";
const router = Router();
const upload = multer({ storage: multer.memoryStorage() });
@@ -55,6 +56,8 @@ router.post(
bufferBase64: f.buffer.toString("base64"),
mimetype: f.mimetype,
}));
// Include X-rays etc. already attached to the appointment
await appendAppointmentFiles(filesForQueue, claimData.appointmentId);
const enrichedPayload = {
claim: {
+37 -6
View File
@@ -62,7 +62,19 @@ export type AdaClaimInput = {
insuranceId?: string | null;
groupNumber?: string | null;
policyHolder?: string | null;
policyHolderRelationship?: string | null;
};
/** Policy holder's own patient record (Patient.policyHolderPatientId), when not self */
policyHolderPatient?: {
firstName: string;
lastName: string;
dateOfBirth?: Date | string | null;
gender?: string | null;
address?: string | null;
city?: string | null;
state?: string | null;
zipCode?: string | null;
} | null;
office: {
legalName?: string | null;
officeName?: string | null;
@@ -257,10 +269,12 @@ async function fillOnePage(
const genderBox = { M: "Check Box1", F: "Check Box2", U: "Check Box3" }[gender];
const holder = (patient.policyHolder ?? "").trim();
const isSelf =
!holder ||
holder.toLowerCase() === "self" ||
normName(holder) === normName(`${patient.firstName} ${patient.lastName}`);
const relationship = (patient.policyHolderRelationship ?? "").trim().toUpperCase();
const isSelf = relationship
? relationship === "SELF"
: !holder ||
holder.toLowerCase() === "self" ||
normName(holder) === normName(`${patient.firstName} ${patient.lastName}`);
if (isSelf) {
setText(form, "12 PolicyholderSubscriber Name Last First Middle Initial Suffix", patientName);
@@ -268,11 +282,28 @@ async function fillOnePage(
setText(form, "12 City, State, Zip", patientCsz);
setText(form, "13 Date of Birth MMDDCCYY", dob);
check(form, `14 ${genderBox}`);
check(form, "18 Check Box1");
} else if (input.policyHolderPatient) {
// Subscriber is another patient in the system: fill 12-14 from their record
const h = input.policyHolderPatient;
setText(form, "12 PolicyholderSubscriber Name Last First Middle Initial Suffix", `${h.lastName}, ${h.firstName}`);
setText(form, "12 Address 1", h.address);
setText(
form,
"12 City, State, Zip",
cityStateZip(h.city, h.state || (h.address || h.city ? officeState : ""), h.zipCode),
);
setText(form, "13 Date of Birth MMDDCCYY", fmtDate(h.dateOfBirth));
const hGenderBox = { M: "Check Box1", F: "Check Box2", U: "Check Box3" }[genderCode(h.gender)];
check(form, `14 ${hGenderBox}`);
} else {
// Subscriber is someone else: name only; DOB, gender and relationship are completed by hand.
// Subscriber typed by name only: DOB, gender and address are completed by hand.
setText(form, "12 PolicyholderSubscriber Name Last First Middle Initial Suffix", holder);
}
// 18. Relationship to policyholder: Self, Spouse, Dependent Child, Other (left to right)
const relationshipBox = isSelf
? "Check Box1"
: { SPOUSE: "Check Box2", DEPENDENT: "Check Box3", OTHER: "Check Box4" }[relationship];
if (relationshipBox) check(form, `18 ${relationshipBox}`);
setText(form, "15 Policyho derSubscriber ID Assigned by Plan", claim.memberId || patient.insuranceId);
setText(form, "16 PlanGroup Number", patient.groupNumber);
@@ -24,6 +24,7 @@ export interface IStorage {
updateClaimStatus(id: number, status: ClaimStatus): Promise<Claim>;
deleteClaim(id: number): Promise<void>;
getAppointmentIdsWithClaimNumbers(ids: number[]): Promise<Set<number>>;
getAppointmentIdsWithPreauth(ids: number[]): Promise<Set<number>>;
}
export const claimsStorage: IStorage = {
@@ -137,4 +138,19 @@ export const claimsStorage: IStorage = {
});
return new Set(rows.map((r: { appointmentId: number | null }) => r.appointmentId));
},
async getAppointmentIdsWithPreauth(ids: number[]): Promise<Set<number>> {
if (!ids.length) return new Set();
const rows = await db.claim.findMany({
// PREAUTH records are created before the Selenium run, so only count ones that got a number back
where: {
appointmentId: { in: ids },
status: "PREAUTH" as ClaimStatus,
OR: [{ preAuthNumber: { not: null } }, { claimNumber: { not: null } }],
},
select: { appointmentId: true },
distinct: ["appointmentId"],
});
return new Set(rows.map((r: { appointmentId: number | null }) => r.appointmentId));
},
};
@@ -0,0 +1,27 @@
import path from "path";
import fs from "fs";
import { storage } from "../storage";
type QueuedFile = { originalname: string; bufferBase64: string; mimetype: string };
// Include attachments already saved on the appointment (e.g. X-rays added via "Select Procedures")
// that weren't re-uploaded in this request — read straight from disk by filePath.
export async function appendAppointmentFiles(
filesForQueue: QueuedFile[],
appointmentId: number | string | null | undefined,
): Promise<void> {
if (!appointmentId) return;
const seenNames = new Set(filesForQueue.map((f) => f.originalname));
const apptFiles = await storage.getAppointmentFiles(Number(appointmentId));
for (const f of apptFiles) {
if (!f.filePath || seenNames.has(f.filename)) continue;
const absPath = path.join(process.cwd(), f.filePath);
if (!fs.existsSync(absPath)) continue;
filesForQueue.push({
originalname: f.filename,
bufferBase64: fs.readFileSync(absPath).toString("base64"),
mimetype: f.mimeType ?? "application/octet-stream",
});
seenNames.add(f.filename);
}
}
@@ -638,7 +638,8 @@ export function ClaimForm({
insuranceSiteKey,
});
});
setPrefillDone(true);
// With an appointment, 2b (procedures + X-ray attachments) marks prefill done
if (!appointmentId) setPrefillDone(true);
} catch {}
}, []);
@@ -1118,6 +1119,7 @@ export function ClaimForm({
patientId: patientId,
insuranceProvider: "Mass Health",
insuranceSiteKey: "MH",
appointmentId: appointmentId ?? 0,
});
// 5. Close form
@@ -1607,6 +1609,7 @@ export function ClaimForm({
patientId,
insuranceProvider: "CCA",
insuranceSiteKey: "CCA",
appointmentId: appointmentId ?? 0,
});
onClose();
@@ -1650,7 +1653,8 @@ export function ClaimForm({
patientId,
insuranceProvider: "United/DentalHub",
insuranceSiteKey: "UNITED_SCO",
claimFiles: udPreAuthFilesMeta,
appointmentId: appointmentId ?? 0,
claimFiles: mergeWithExistingAttachments(udPreAuthFilesMeta),
});
onClose();
@@ -1694,7 +1698,8 @@ export function ClaimForm({
patientId,
insuranceProvider: "Tufts SCO",
insuranceSiteKey: "TUFTS_SCO",
claimFiles: preAuthFilesMeta,
appointmentId: appointmentId ?? 0,
claimFiles: mergeWithExistingAttachments(preAuthFilesMeta),
});
onClose();
@@ -32,6 +32,15 @@ import {
} from "@repo/db/types";
import { z } from "zod";
import { DateInputField } from "@/components/ui/dateInputField";
import { PolicyHolderSearch } from "@/components/patients/policy-holder-search";
// ADA claim form box 18 — relationship to policyholder/subscriber
const POLICY_HOLDER_RELATIONSHIPS = [
{ value: "SELF", label: "Self" },
{ value: "SPOUSE", label: "Spouse" },
{ value: "DEPENDENT", label: "Dependent Child" },
{ value: "OTHER", label: "Other" },
];
// New England first (most patients), then the remaining states alphabetically
const US_STATES = [
@@ -53,6 +62,11 @@ interface PatientFormProps {
onSubmit: (data: InsertPatient | UpdatePatient) => void;
}
// Patients saved before the relationship field existed: no policy holder means the
// patient is the holder, so show Self (matches how the ADA form treats them).
const defaultRelationship = (p: Patient): string =>
p.policyHolderRelationship || (!(p.policyHolder ?? "").trim() ? "SELF" : "");
export type PatientFormRef = {
submit: () => void;
};
@@ -100,6 +114,7 @@ export const PatientForm = forwardRef<PatientFormRef, PatientFormProps>(
? formatLocalDate(new Date(patient.dateOfBirth))
: null,
insuranceProvider: normalizeInsuranceProvider(patient.insuranceProvider),
policyHolderRelationship: defaultRelationship(patient),
};
}
return {
@@ -117,6 +132,8 @@ export const PatientForm = forwardRef<PatientFormRef, PatientFormProps>(
insuranceId: extractedInfo?.insuranceId || "",
groupNumber: "",
policyHolder: "",
policyHolderPatientId: null,
policyHolderRelationship: "SELF",
allergies: "",
medicalConditions: "",
preferredLanguage: "English",
@@ -156,6 +173,7 @@ export const PatientForm = forwardRef<PatientFormRef, PatientFormProps>(
? formatLocalDate(new Date(patient.dateOfBirth))
: null,
insuranceProvider: normalized,
policyHolderRelationship: defaultRelationship(patient),
};
form.reset(resetValues);
// Explicit setValue ensures the controlled Select re-renders with the new value
@@ -532,6 +550,41 @@ export const PatientForm = forwardRef<PatientFormRef, PatientFormProps>(
)}
/>
<FormField
control={form.control}
name="policyHolderRelationship"
render={({ field }) => (
<FormItem>
<FormLabel>Relationship to Policy Holder/Subscriber</FormLabel>
<Select
value={field.value || ""}
onValueChange={(v) => {
field.onChange(v);
// Self: the patient is the policy holder, so drop any other holder
if (v === "SELF") {
form.setValue("policyHolder", "", { shouldDirty: true });
form.setValue("policyHolderPatientId" as any, null, { shouldDirty: true });
}
}}
>
<FormControl>
<SelectTrigger>
<SelectValue placeholder="Select relationship" />
</SelectTrigger>
</FormControl>
<SelectContent>
{POLICY_HOLDER_RELATIONSHIPS.map((r) => (
<SelectItem key={r.value} value={r.value}>
{r.label}
</SelectItem>
))}
</SelectContent>
</Select>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="policyHolder"
@@ -539,7 +592,19 @@ export const PatientForm = forwardRef<PatientFormRef, PatientFormProps>(
<FormItem>
<FormLabel>Policy Holder (if not self)</FormLabel>
<FormControl>
<Input {...field} value={field.value || ""} />
<PolicyHolderSearch
value={field.value || ""}
holderPatientId={(form.watch("policyHolderPatientId" as any) as number | null) ?? null}
excludePatientId={patient?.id}
onChange={(name, holderPatientId) => {
field.onChange(name);
form.setValue("policyHolderPatientId" as any, holderPatientId, { shouldDirty: true });
// Picking someone else means the patient isn't the holder
if (name.trim() && form.getValues("policyHolderRelationship" as any) === "SELF") {
form.setValue("policyHolderRelationship" as any, "", { shouldDirty: true });
}
}}
/>
</FormControl>
<FormMessage />
</FormItem>
@@ -1320,6 +1320,14 @@ export function PatientTable({
<span className="text-gray-500">Policy Holder:</span>{" "}
{currentPatient.policyHolder || "Self"}
</p>
{currentPatient.policyHolderRelationship && (
<p>
<span className="text-gray-500">Relationship:</span>{" "}
{({ SELF: "Self", SPOUSE: "Spouse", DEPENDENT: "Dependent Child", OTHER: "Other" } as Record<string, string>)[
currentPatient.policyHolderRelationship
] ?? currentPatient.policyHolderRelationship}
</p>
)}
</div>
</div>
@@ -0,0 +1,116 @@
import { useEffect, useRef, useState } from "react";
import { useQuery } from "@tanstack/react-query";
import { useDebounce } from "use-debounce";
import { X } from "lucide-react";
import { Input } from "@/components/ui/input";
import { apiRequest } from "@/lib/queryClient";
import { formatLocalDate } from "@/utils/dateUtils";
import type { Patient } from "@repo/db/types";
interface PolicyHolderSearchProps {
/** Policy holder name as stored on the patient (free text) */
value: string;
/** Linked patient record of the policy holder, if one was picked */
holderPatientId: number | null;
/** Patient being edited — hidden from the results */
excludePatientId?: number;
onChange: (name: string, holderPatientId: number | null) => void;
}
// Type to search patients in the DB and pick the policy holder; free text is still allowed
// for holders who aren't patients here (then holderPatientId is null).
export function PolicyHolderSearch({ value, holderPatientId, excludePatientId, onChange }: PolicyHolderSearchProps) {
const [open, setOpen] = useState(false);
const [debounced] = useDebounce(value.trim(), 300);
const wrapperRef = useRef<HTMLDivElement>(null);
// The search API matches one name field at a time, so query by the first word
// and narrow by the remaining words here ("john smith" → name=john, then must contain "smith").
const tokens = debounced.toLowerCase().split(/[\s,]+/).filter(Boolean);
const { data: results = [], isFetching } = useQuery<Patient[]>({
queryKey: ["policy-holder-search", tokens[0] ?? ""],
queryFn: async () => {
const res = await apiRequest(
"GET",
`/api/patients/search?name=${encodeURIComponent(tokens[0]!)}&limit=50&offset=0`,
);
if (!res.ok) return [];
const payload = await res.json();
return Array.isArray(payload) ? payload : (payload.patients ?? []);
},
enabled: open && tokens.length > 0 && holderPatientId == null,
});
const matches = results
.filter((p) => p.id !== excludePatientId)
.filter((p) => {
const full = `${p.firstName} ${p.lastName}`.toLowerCase();
return tokens.every((t) => full.includes(t));
})
.slice(0, 10);
useEffect(() => {
const onDown = (e: MouseEvent) => {
if (wrapperRef.current && !wrapperRef.current.contains(e.target as Node)) setOpen(false);
};
document.addEventListener("mousedown", onDown);
return () => document.removeEventListener("mousedown", onDown);
}, []);
return (
<div ref={wrapperRef} className="relative">
<Input
value={value}
placeholder="Search patient by name…"
autoComplete="off"
onFocus={() => setOpen(true)}
onChange={(e) => {
// Editing the text unlinks any previously selected patient
onChange(e.target.value, null);
setOpen(true);
}}
className={holderPatientId != null ? "pr-8 border-blue-400 bg-blue-50" : "pr-8"}
/>
{value && (
<button
type="button"
className="absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600"
onClick={() => onChange("", null)}
title="Clear"
>
<X className="h-4 w-4" />
</button>
)}
{holderPatientId != null && (
<p className="mt-1 text-xs text-blue-600">Linked to patient record #{holderPatientId}</p>
)}
{open && holderPatientId == null && tokens.length > 0 && (
<div className="absolute z-50 mt-1 w-full max-h-60 overflow-y-auto rounded-md border bg-white shadow-md">
{isFetching && matches.length === 0 ? (
<div className="px-3 py-2 text-xs text-gray-500">Searching…</div>
) : matches.length === 0 ? (
<div className="px-3 py-2 text-xs text-gray-500">No matching patients — the name will be saved as typed.</div>
) : (
matches.map((p) => (
<button
key={p.id}
type="button"
className="block w-full px-3 py-2 text-left text-sm hover:bg-gray-100"
onClick={() => {
onChange(`${p.firstName} ${p.lastName}`.trim(), Number(p.id));
setOpen(false);
}}
>
<span className="font-medium">{p.firstName} {p.lastName}</span>
<span className="ml-2 text-xs text-gray-500">
{p.dateOfBirth ? `DOB ${formatLocalDate(new Date(p.dateOfBirth))}` : ""}
{p.insuranceId ? ` · ID ${p.insuranceId}` : ""}
</span>
</button>
))
)}
</div>
)}
</div>
);
}
+60 -14
View File
@@ -100,6 +100,7 @@ interface ScheduledAppointment {
patientInsuranceProvider: string | null;
hasProcedures: boolean;
hasClaimWithNumber: boolean;
hasPreauth: boolean;
movedByAi?: boolean;
staffId: number;
date: string | Date;
@@ -111,6 +112,17 @@ interface ScheduledAppointment {
procedureCodes?: string[];
}
// Insurances with an online PreAuth flow on the claims page (others can't be preauthorized there).
// Maps either site-key spelling (AI "TUFTS_SCO" / local "TuftsSCO") to the key the claim form expects.
const PREAUTH_SITE_KEYS: Record<string, string> = {
MH: "MH",
CCA: "CCA",
TUFTSSCO: "TUFTS_SCO",
UNITEDSCO: "UNITED_SCO",
};
const toPreauthSiteKey = (siteKey: string): string | undefined =>
PREAUTH_SITE_KEYS[siteKey.replace(/_/g, "").toUpperCase()];
function deriveInsuranceSiteKey(provider: string | null | undefined): string {
const p = (provider || "").toLowerCase().trim();
if (!p) return "";
@@ -384,6 +396,10 @@ export default function AppointmentsPage() {
color: colors[index % colors.length] || "bg-gray-400",
}));
// The last schedule column is the Preauth column: "Claim/Preauth for Column with AI"
// sends its appointments to PreAuth instead of Claim.
const preauthStaffId = staffMembers.length ? Number(staffMembers[staffMembers.length - 1]!.id) : null;
// Initialize column labels from localStorage; default A, B, C… for new staff
useEffect(() => {
if (!staffMembersRaw.length) return;
@@ -703,6 +719,7 @@ export default function AppointmentsPage() {
patientInsuranceProvider,
hasProcedures: !!(apt as any).hasProcedures,
hasClaimWithNumber: !!(apt as any).hasClaimWithNumber,
hasPreauth: !!(apt as any).hasPreauth,
notes: (apt as any).notes ?? null,
procedureCodes: (apt as any).procedureCodes ?? [],
movedByAi: !!(apt as any).movedByAi,
@@ -1654,10 +1671,12 @@ export default function AppointmentsPage() {
const handleClaimForColumnWithAi = async () => {
if (selectedClaimAiColumns.size === 0) return;
const unclaimed = processedAppointments.filter(
(apt) => selectedClaimAiColumns.has(apt.staffId) && !apt.hasClaimWithNumber
(apt) =>
selectedClaimAiColumns.has(apt.staffId) &&
(apt.staffId === preauthStaffId ? !apt.hasPreauth : !apt.hasClaimWithNumber)
);
if (!unclaimed.length) {
toast({ title: "No unclaimed appointments", description: "All appointments in the selected columns are already claimed." });
toast({ title: "Nothing to submit", description: "All appointments in the selected columns are already claimed / preauthorized." });
return;
}
const autoRun = autoConfirmEnabled || autoClaimEnabled;
@@ -1677,6 +1696,17 @@ export default function AppointmentsPage() {
const handleAiClaimConfirm = () => {
if (!aiClaimCurrentData) return;
const { matchedCodes, siteKey, serviceDate, appointmentId } = aiClaimCurrentData;
const isPreauth = aiClaimQueue[aiClaimCurrentIndex]?.staffId === preauthStaffId;
const preauthSiteKey = toPreauthSiteKey(siteKey);
if (isPreauth && !preauthSiteKey) {
toast({
title: "PreAuth not supported",
description: `${aiClaimCurrentData.patientName}: online PreAuth isn't available for ${siteKey || "this insurance"} — skipped.`,
variant: "destructive",
});
handleAiClaimSkip();
return;
}
// Include current patient in queue; claims-page advances it only on successful submit.
const fromCurrent = aiClaimQueue.slice(aiClaimCurrentIndex);
if (fromCurrent.length > 0) {
@@ -1689,14 +1719,24 @@ export default function AppointmentsPage() {
} else {
sessionStorage.removeItem("ai_claim_queue");
}
sessionStorage.setItem("chatbot_claim_prefill", JSON.stringify({
codes: matchedCodes,
siteKey,
serviceDate,
autoSubmit: true,
}));
if (isPreauth) {
sessionStorage.removeItem("chatbot_claim_prefill");
sessionStorage.setItem("chatbot_preauth_prefill", JSON.stringify({
codes: matchedCodes,
siteKey: preauthSiteKey,
serviceDate,
}));
} else {
sessionStorage.removeItem("chatbot_preauth_prefill");
sessionStorage.setItem("chatbot_claim_prefill", JSON.stringify({
codes: matchedCodes,
siteKey,
serviceDate,
autoSubmit: true,
}));
}
// BCBS is a paper form filled and saved in the background — come straight back here
if (/^bcbs/i.test(siteKey)) sessionStorage.setItem("ai_claim_return_to_schedule", "1");
if (!isPreauth && /^bcbs/i.test(siteKey)) sessionStorage.setItem("ai_claim_return_to_schedule", "1");
else sessionStorage.removeItem("ai_claim_return_to_schedule");
setAiClaimModalOpen(false);
setLocation(`/claims?appointmentId=${appointmentId}`);
@@ -1924,7 +1964,7 @@ export default function AppointmentsPage() {
) : (
<>
<Bot className="h-4 w-4 mr-1" />
Claim for Column with AI
Claim/Preauth for Column with AI
</>
)}
</Button>
@@ -2375,8 +2415,14 @@ export default function AppointmentsPage() {
{columnLabels[String(staff.id)] ?? String.fromCharCode(65 + index)}
</div>
)}
<div className="text-xs text-gray-500">{staff.name}</div>
<div className="text-xs text-gray-400">{staff.role}</div>
{Number(staff.id) === preauthStaffId ? (
<div className="text-xs font-semibold text-blue-600">Preauth</div>
) : (
<>
<div className="text-xs text-gray-500">{staff.name}</div>
<div className="text-xs text-gray-400">{staff.role}</div>
</>
)}
</th>
))}
</tr>
@@ -2516,7 +2562,7 @@ export default function AppointmentsPage() {
<div className="p-4 border-b flex items-center justify-between">
<h3 className="font-semibold text-base flex items-center gap-2">
<Bot className="h-4 w-4 text-teal-600" />
AI Claim Queue
AI Claim/Preauth Queue
</h3>
<span className="text-xs text-gray-500 font-medium">
{aiClaimAutoRun && (
@@ -2626,7 +2672,7 @@ export default function AppointmentsPage() {
onClick={handleAiClaimConfirm}
>
<FileCheck className="h-3.5 w-3.5" />
Confirm &amp; Claim
{aiClaimQueue[aiClaimCurrentIndex]?.staffId === preauthStaffId ? "Confirm & PreAuth" : "Confirm & Claim"}
</button>
)}
<button
+13
View File
@@ -325,6 +325,15 @@ export default function ClaimsPage() {
}
}
} catch {}
// Preauth column of "Claim/Preauth for Column with AI": open the PreAuth tab and auto-submit
try {
const preauthRaw = sessionStorage.getItem("chatbot_preauth_prefill");
if (preauthRaw) {
setChatbotInitialTab("preauth");
const parsed = JSON.parse(preauthRaw);
if (parsed?.siteKey) setChatbotAutoSubmitPreauthSiteKey(parsed.siteKey);
}
} catch {}
handleNewClaim(patientId, appointmentId);
clearUrlParams(["appointmentId"]);
}
@@ -761,6 +770,7 @@ export default function ClaimsPage() {
// United/DentalHub pre-auth selenium handler
const handleUnitedDHPreAuthSubmitSelenium = async (data: any) => {
advanceAiClaimQueue();
try {
dispatch(setTaskStatus({ key: "claimSubmit", status: "pending", message: "Submitting United/DentalHub pre-authorization..." }));
const response = await apiRequest("POST", "/api/claims/uniteddh-preauth", {
@@ -826,6 +836,7 @@ export default function ClaimsPage() {
// Tufts SCO pre-auth selenium handler
const handleTuftsSCOPreAuthSubmitSelenium = async (data: any) => {
advanceAiClaimQueue();
try {
dispatch(setTaskStatus({ key: "claimSubmit", status: "pending", message: "Submitting Tufts SCO pre-authorization..." }));
const response = await apiRequest("POST", "/api/claims/tuftssco-preauth", {
@@ -1044,6 +1055,7 @@ export default function ClaimsPage() {
// CCA pre-auth selenium handler
const handleCCAPreAuthSubmitSelenium = async (data: any) => {
advanceAiClaimQueue();
const formData = new FormData();
formData.append("data", JSON.stringify(data));
if (socketId) formData.append("socketId", socketId);
@@ -1203,6 +1215,7 @@ export default function ClaimsPage() {
// Pre Auth section
const handleMHClaimPreAuthSubmitSelenium = async (data: any) => {
advanceAiClaimQueue();
const formData = new FormData();
formData.append("data", JSON.stringify(data));
if (socketId) formData.append("socketId", socketId);
File diff suppressed because one or more lines are too long
@@ -149,6 +149,8 @@ exports.Prisma.PatientScalarFieldEnum = {
insuranceId: 'insuranceId',
groupNumber: 'groupNumber',
policyHolder: 'policyHolder',
policyHolderPatientId: 'policyHolderPatientId',
policyHolderRelationship: 'policyHolderRelationship',
allergies: 'allergies',
medicalConditions: 'medicalConditions',
preferredLanguage: 'preferredLanguage',
+221 -71
View File
@@ -6813,11 +6813,13 @@ export namespace Prisma {
export type PatientAvgAggregateOutputType = {
id: number | null
policyHolderPatientId: number | null
userId: number | null
}
export type PatientSumAggregateOutputType = {
id: number | null
policyHolderPatientId: number | null
userId: number | null
}
@@ -6837,6 +6839,8 @@ export namespace Prisma {
insuranceId: string | null
groupNumber: string | null
policyHolder: string | null
policyHolderPatientId: number | null
policyHolderRelationship: string | null
allergies: string | null
medicalConditions: string | null
preferredLanguage: string | null
@@ -6864,6 +6868,8 @@ export namespace Prisma {
insuranceId: string | null
groupNumber: string | null
policyHolder: string | null
policyHolderPatientId: number | null
policyHolderRelationship: string | null
allergies: string | null
medicalConditions: string | null
preferredLanguage: string | null
@@ -6891,6 +6897,8 @@ export namespace Prisma {
insuranceId: number
groupNumber: number
policyHolder: number
policyHolderPatientId: number
policyHolderRelationship: number
allergies: number
medicalConditions: number
preferredLanguage: number
@@ -6906,11 +6914,13 @@ export namespace Prisma {
export type PatientAvgAggregateInputType = {
id?: true
policyHolderPatientId?: true
userId?: true
}
export type PatientSumAggregateInputType = {
id?: true
policyHolderPatientId?: true
userId?: true
}
@@ -6930,6 +6940,8 @@ export namespace Prisma {
insuranceId?: true
groupNumber?: true
policyHolder?: true
policyHolderPatientId?: true
policyHolderRelationship?: true
allergies?: true
medicalConditions?: true
preferredLanguage?: true
@@ -6957,6 +6969,8 @@ export namespace Prisma {
insuranceId?: true
groupNumber?: true
policyHolder?: true
policyHolderPatientId?: true
policyHolderRelationship?: true
allergies?: true
medicalConditions?: true
preferredLanguage?: true
@@ -6984,6 +6998,8 @@ export namespace Prisma {
insuranceId?: true
groupNumber?: true
policyHolder?: true
policyHolderPatientId?: true
policyHolderRelationship?: true
allergies?: true
medicalConditions?: true
preferredLanguage?: true
@@ -7098,6 +7114,8 @@ export namespace Prisma {
insuranceId: string | null
groupNumber: string | null
policyHolder: string | null
policyHolderPatientId: number | null
policyHolderRelationship: string | null
allergies: string | null
medicalConditions: string | null
preferredLanguage: string | null
@@ -7144,6 +7162,8 @@ export namespace Prisma {
insuranceId?: boolean
groupNumber?: boolean
policyHolder?: boolean
policyHolderPatientId?: boolean
policyHolderRelationship?: boolean
allergies?: boolean
medicalConditions?: boolean
preferredLanguage?: boolean
@@ -7182,6 +7202,8 @@ export namespace Prisma {
insuranceId?: boolean
groupNumber?: boolean
policyHolder?: boolean
policyHolderPatientId?: boolean
policyHolderRelationship?: boolean
allergies?: boolean
medicalConditions?: boolean
preferredLanguage?: boolean
@@ -7210,6 +7232,8 @@ export namespace Prisma {
insuranceId?: boolean
groupNumber?: boolean
policyHolder?: boolean
policyHolderPatientId?: boolean
policyHolderRelationship?: boolean
allergies?: boolean
medicalConditions?: boolean
preferredLanguage?: boolean
@@ -7238,6 +7262,8 @@ export namespace Prisma {
insuranceId?: boolean
groupNumber?: boolean
policyHolder?: boolean
policyHolderPatientId?: boolean
policyHolderRelationship?: boolean
allergies?: boolean
medicalConditions?: boolean
preferredLanguage?: boolean
@@ -7249,7 +7275,7 @@ export namespace Prisma {
updatedAt?: boolean
}
export type PatientOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "firstName" | "lastName" | "dateOfBirth" | "gender" | "phone" | "email" | "address" | "city" | "state" | "zipCode" | "insuranceProvider" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "status" | "remainingBenefit" | "thirdPartyInsurance" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["patient"]>
export type PatientOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "firstName" | "lastName" | "dateOfBirth" | "gender" | "phone" | "email" | "address" | "city" | "state" | "zipCode" | "insuranceProvider" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "status" | "remainingBenefit" | "thirdPartyInsurance" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["patient"]>
export type PatientInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
appointments?: boolean | Patient$appointmentsArgs<ExtArgs>
@@ -7300,6 +7326,8 @@ export namespace Prisma {
insuranceId: string | null
groupNumber: string | null
policyHolder: string | null
policyHolderPatientId: number | null
policyHolderRelationship: string | null
allergies: string | null
medicalConditions: string | null
preferredLanguage: string | null
@@ -7757,6 +7785,8 @@ export namespace Prisma {
readonly insuranceId: FieldRef<"Patient", 'String'>
readonly groupNumber: FieldRef<"Patient", 'String'>
readonly policyHolder: FieldRef<"Patient", 'String'>
readonly policyHolderPatientId: FieldRef<"Patient", 'Int'>
readonly policyHolderRelationship: FieldRef<"Patient", 'String'>
readonly allergies: FieldRef<"Patient", 'String'>
readonly medicalConditions: FieldRef<"Patient", 'String'>
readonly preferredLanguage: FieldRef<"Patient", 'String'>
@@ -49617,6 +49647,8 @@ export namespace Prisma {
insuranceId: 'insuranceId',
groupNumber: 'groupNumber',
policyHolder: 'policyHolder',
policyHolderPatientId: 'policyHolderPatientId',
policyHolderRelationship: 'policyHolderRelationship',
allergies: 'allergies',
medicalConditions: 'medicalConditions',
preferredLanguage: 'preferredLanguage',
@@ -50665,6 +50697,8 @@ export namespace Prisma {
insuranceId?: StringNullableFilter<"Patient"> | string | null
groupNumber?: StringNullableFilter<"Patient"> | string | null
policyHolder?: StringNullableFilter<"Patient"> | string | null
policyHolderPatientId?: IntNullableFilter<"Patient"> | number | null
policyHolderRelationship?: StringNullableFilter<"Patient"> | string | null
allergies?: StringNullableFilter<"Patient"> | string | null
medicalConditions?: StringNullableFilter<"Patient"> | string | null
preferredLanguage?: StringNullableFilter<"Patient"> | string | null
@@ -50702,6 +50736,8 @@ export namespace Prisma {
insuranceId?: SortOrderInput | SortOrder
groupNumber?: SortOrderInput | SortOrder
policyHolder?: SortOrderInput | SortOrder
policyHolderPatientId?: SortOrderInput | SortOrder
policyHolderRelationship?: SortOrderInput | SortOrder
allergies?: SortOrderInput | SortOrder
medicalConditions?: SortOrderInput | SortOrder
preferredLanguage?: SortOrderInput | SortOrder
@@ -50742,6 +50778,8 @@ export namespace Prisma {
insuranceId?: StringNullableFilter<"Patient"> | string | null
groupNumber?: StringNullableFilter<"Patient"> | string | null
policyHolder?: StringNullableFilter<"Patient"> | string | null
policyHolderPatientId?: IntNullableFilter<"Patient"> | number | null
policyHolderRelationship?: StringNullableFilter<"Patient"> | string | null
allergies?: StringNullableFilter<"Patient"> | string | null
medicalConditions?: StringNullableFilter<"Patient"> | string | null
preferredLanguage?: StringNullableFilter<"Patient"> | string | null
@@ -50779,6 +50817,8 @@ export namespace Prisma {
insuranceId?: SortOrderInput | SortOrder
groupNumber?: SortOrderInput | SortOrder
policyHolder?: SortOrderInput | SortOrder
policyHolderPatientId?: SortOrderInput | SortOrder
policyHolderRelationship?: SortOrderInput | SortOrder
allergies?: SortOrderInput | SortOrder
medicalConditions?: SortOrderInput | SortOrder
preferredLanguage?: SortOrderInput | SortOrder
@@ -50814,6 +50854,8 @@ export namespace Prisma {
insuranceId?: StringNullableWithAggregatesFilter<"Patient"> | string | null
groupNumber?: StringNullableWithAggregatesFilter<"Patient"> | string | null
policyHolder?: StringNullableWithAggregatesFilter<"Patient"> | string | null
policyHolderPatientId?: IntNullableWithAggregatesFilter<"Patient"> | number | null
policyHolderRelationship?: StringNullableWithAggregatesFilter<"Patient"> | string | null
allergies?: StringNullableWithAggregatesFilter<"Patient"> | string | null
medicalConditions?: StringNullableWithAggregatesFilter<"Patient"> | string | null
preferredLanguage?: StringNullableWithAggregatesFilter<"Patient"> | string | null
@@ -53757,6 +53799,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -53793,6 +53837,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -53828,6 +53874,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -53864,6 +53912,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -53900,6 +53950,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -53926,6 +53978,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -53952,6 +54006,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -57065,6 +57121,17 @@ export namespace Prisma {
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type IntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type EnumPatientStatusFilter<$PrismaModel = never> = {
equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel>
in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel>
@@ -57144,6 +57211,8 @@ export namespace Prisma {
insuranceId?: SortOrder
groupNumber?: SortOrder
policyHolder?: SortOrder
policyHolderPatientId?: SortOrder
policyHolderRelationship?: SortOrder
allergies?: SortOrder
medicalConditions?: SortOrder
preferredLanguage?: SortOrder
@@ -57157,6 +57226,7 @@ export namespace Prisma {
export type PatientAvgOrderByAggregateInput = {
id?: SortOrder
policyHolderPatientId?: SortOrder
userId?: SortOrder
}
@@ -57176,6 +57246,8 @@ export namespace Prisma {
insuranceId?: SortOrder
groupNumber?: SortOrder
policyHolder?: SortOrder
policyHolderPatientId?: SortOrder
policyHolderRelationship?: SortOrder
allergies?: SortOrder
medicalConditions?: SortOrder
preferredLanguage?: SortOrder
@@ -57203,6 +57275,8 @@ export namespace Prisma {
insuranceId?: SortOrder
groupNumber?: SortOrder
policyHolder?: SortOrder
policyHolderPatientId?: SortOrder
policyHolderRelationship?: SortOrder
allergies?: SortOrder
medicalConditions?: SortOrder
preferredLanguage?: SortOrder
@@ -57216,6 +57290,7 @@ export namespace Prisma {
export type PatientSumOrderByAggregateInput = {
id?: SortOrder
policyHolderPatientId?: SortOrder
userId?: SortOrder
}
@@ -57251,6 +57326,22 @@ export namespace Prisma {
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type EnumPatientStatusWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel>
in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel>
@@ -57275,17 +57366,6 @@ export namespace Prisma {
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type IntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type PatientScalarRelationFilter = {
is?: PatientWhereInput
isNot?: PatientWhereInput
@@ -57387,22 +57467,6 @@ export namespace Prisma {
npiProviderId?: SortOrder
}
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type AppointmentScalarRelationFilter = {
is?: AppointmentWhereInput
isNot?: AppointmentWhereInput
@@ -60625,6 +60689,14 @@ export namespace Prisma {
set?: string | null
}
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type EnumPatientStatusFieldUpdateOperationsInput = {
set?: $Enums.PatientStatus
}
@@ -61029,14 +61101,6 @@ export namespace Prisma {
deleteMany?: AppointmentFileScalarWhereInput | AppointmentFileScalarWhereInput[]
}
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput = {
create?: XOR<AppointmentProcedureCreateWithoutAppointmentInput, AppointmentProcedureUncheckedCreateWithoutAppointmentInput> | AppointmentProcedureCreateWithoutAppointmentInput[] | AppointmentProcedureUncheckedCreateWithoutAppointmentInput[]
connectOrCreate?: AppointmentProcedureCreateOrConnectWithoutAppointmentInput | AppointmentProcedureCreateOrConnectWithoutAppointmentInput[]
@@ -62780,6 +62844,17 @@ export namespace Prisma {
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type NestedIntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type NestedEnumPatientStatusFilter<$PrismaModel = never> = {
equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel>
in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel>
@@ -62812,17 +62887,6 @@ export namespace Prisma {
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type NestedIntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
@@ -62840,30 +62904,6 @@ export namespace Prisma {
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel>
in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel>
notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel>
not?: NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel> | $Enums.PatientStatus
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedEnumPatientStatusFilter<$PrismaModel>
_max?: NestedEnumPatientStatusFilter<$PrismaModel>
}
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
@@ -62891,6 +62931,30 @@ export namespace Prisma {
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
}
export type NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PatientStatus | EnumPatientStatusFieldRefInput<$PrismaModel>
in?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel>
notIn?: $Enums.PatientStatus[] | ListEnumPatientStatusFieldRefInput<$PrismaModel>
not?: NestedEnumPatientStatusWithAggregatesFilter<$PrismaModel> | $Enums.PatientStatus
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedEnumPatientStatusFilter<$PrismaModel>
_max?: NestedEnumPatientStatusFilter<$PrismaModel>
}
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type NestedDecimalNullableFilter<$PrismaModel = never> = {
equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null
@@ -63254,6 +63318,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -63289,6 +63355,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -64063,6 +64131,8 @@ export namespace Prisma {
insuranceId?: StringNullableFilter<"Patient"> | string | null
groupNumber?: StringNullableFilter<"Patient"> | string | null
policyHolder?: StringNullableFilter<"Patient"> | string | null
policyHolderPatientId?: IntNullableFilter<"Patient"> | number | null
policyHolderRelationship?: StringNullableFilter<"Patient"> | string | null
allergies?: StringNullableFilter<"Patient"> | string | null
medicalConditions?: StringNullableFilter<"Patient"> | string | null
preferredLanguage?: StringNullableFilter<"Patient"> | string | null
@@ -65506,6 +65576,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -65541,6 +65613,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -65846,6 +65920,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -65881,6 +65957,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -67059,6 +67137,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -67094,6 +67174,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -67230,6 +67312,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -67265,6 +67349,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -67337,6 +67423,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -67372,6 +67460,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -67726,6 +67816,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -67761,6 +67853,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -68833,6 +68927,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -68868,6 +68964,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -68941,6 +69039,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -68976,6 +69076,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -69135,6 +69237,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -69170,6 +69274,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -69491,6 +69597,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -69526,6 +69634,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -70545,6 +70655,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -70580,6 +70692,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -70797,6 +70911,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -70832,6 +70948,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -71218,6 +71336,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -71253,6 +71373,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -71379,6 +71501,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -71414,6 +71538,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -71530,6 +71656,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -71565,6 +71693,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -71615,6 +71745,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -71650,6 +71782,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -72790,6 +72924,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -72825,6 +72961,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -72951,6 +73089,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -72986,6 +73126,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -73682,6 +73824,8 @@ export namespace Prisma {
insuranceId?: string | null
groupNumber?: string | null
policyHolder?: string | null
policyHolderPatientId?: number | null
policyHolderRelationship?: string | null
allergies?: string | null
medicalConditions?: string | null
preferredLanguage?: string | null
@@ -73886,6 +74030,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -73921,6 +74067,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
@@ -73956,6 +74104,8 @@ export namespace Prisma {
insuranceId?: NullableStringFieldUpdateOperationsInput | string | null
groupNumber?: NullableStringFieldUpdateOperationsInput | string | null
policyHolder?: NullableStringFieldUpdateOperationsInput | string | null
policyHolderPatientId?: NullableIntFieldUpdateOperationsInput | number | null
policyHolderRelationship?: NullableStringFieldUpdateOperationsInput | string | null
allergies?: NullableStringFieldUpdateOperationsInput | string | null
medicalConditions?: NullableStringFieldUpdateOperationsInput | string | null
preferredLanguage?: NullableStringFieldUpdateOperationsInput | string | null
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "prisma-client-1dff8570fa534b7236a935d3a9448f1a5d78e935490023ad3eb5b9b7018d99d5",
"name": "prisma-client-484c656978522fea1ec1b60912892a304ec69858e6bc3701e3e06b7030cdeafd",
"main": "index.js",
"types": "index.d.ts",
"browser": "default.js",
+36 -34
View File
@@ -56,40 +56,42 @@ model User {
}
model Patient {
id Int @id @default(autoincrement())
firstName String
lastName String
dateOfBirth DateTime? @db.Date
gender String
phone String
email String?
address String?
city String?
state String? @default("MA")
zipCode String?
insuranceProvider String?
insuranceId String?
groupNumber String?
policyHolder String?
allergies String?
medicalConditions String?
preferredLanguage String? @default("English")
status PatientStatus @default(UNKNOWN)
remainingBenefit String?
thirdPartyInsurance String?
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user User @relation(fields: [userId], references: [id])
appointments Appointment[]
procedures AppointmentProcedure[]
claims Claim[]
groups PdfGroup[]
payment Payment[]
communications Communication[]
documents PatientDocument[]
conversation PatientConversation?
cloudFolders CloudFolder[] @relation("PatientCloudFolder")
id Int @id @default(autoincrement())
firstName String
lastName String
dateOfBirth DateTime? @db.Date
gender String
phone String
email String?
address String?
city String?
state String? @default("MA")
zipCode String?
insuranceProvider String?
insuranceId String?
groupNumber String?
policyHolder String?
policyHolderPatientId Int? // patient record of the policy holder, when picked from the DB
policyHolderRelationship String? // ADA box 18: SELF | SPOUSE | DEPENDENT | OTHER
allergies String?
medicalConditions String?
preferredLanguage String? @default("English")
status PatientStatus @default(UNKNOWN)
remainingBenefit String?
thirdPartyInsurance String?
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user User @relation(fields: [userId], references: [id])
appointments Appointment[]
procedures AppointmentProcedure[]
claims Claim[]
groups PdfGroup[]
payment Payment[]
communications Communication[]
documents PatientDocument[]
conversation PatientConversation?
cloudFolders CloudFolder[] @relation("PatientCloudFolder")
@@index([insuranceId])
@@index([createdAt])
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Patient" ADD COLUMN "policyHolderPatientId" INTEGER,
ADD COLUMN "policyHolderRelationship" TEXT;
+2
View File
@@ -71,6 +71,8 @@ model Patient {
insuranceId String?
groupNumber String?
policyHolder String?
policyHolderPatientId Int? // patient record of the policy holder, when picked from the DB
policyHolderRelationship String? // ADA box 18: SELF | SPOUSE | DEPENDENT | OTHER
allergies String?
medicalConditions String?
preferredLanguage String? @default("English")
@@ -1,7 +1,7 @@
{
"version": "1.0",
"generatorVersion": "1.0.0",
"generatedAt": "2026-10-10T04:03:22.758Z",
"generatedAt": "2026-10-11T18:46:03.569Z",
"outputPath": "/home/ee/Desktop/DentalManagement09/packages/db/shared",
"files": [
"schemas/enums/TransactionIsolationLevel.schema.ts",
@@ -559,6 +559,7 @@
"schemas/objects/BoolWithAggregatesFilter.schema.ts",
"schemas/objects/DateTimeNullableFilter.schema.ts",
"schemas/objects/StringNullableFilter.schema.ts",
"schemas/objects/IntNullableFilter.schema.ts",
"schemas/objects/EnumPatientStatusFilter.schema.ts",
"schemas/objects/DateTimeFilter.schema.ts",
"schemas/objects/UserScalarRelationFilter.schema.ts",
@@ -577,9 +578,9 @@
"schemas/objects/PatientSumOrderByAggregateInput.schema.ts",
"schemas/objects/DateTimeNullableWithAggregatesFilter.schema.ts",
"schemas/objects/StringNullableWithAggregatesFilter.schema.ts",
"schemas/objects/IntNullableWithAggregatesFilter.schema.ts",
"schemas/objects/EnumPatientStatusWithAggregatesFilter.schema.ts",
"schemas/objects/DateTimeWithAggregatesFilter.schema.ts",
"schemas/objects/IntNullableFilter.schema.ts",
"schemas/objects/PatientScalarRelationFilter.schema.ts",
"schemas/objects/StaffNullableScalarRelationFilter.schema.ts",
"schemas/objects/NpiProviderNullableScalarRelationFilter.schema.ts",
@@ -590,7 +591,6 @@
"schemas/objects/AppointmentMaxOrderByAggregateInput.schema.ts",
"schemas/objects/AppointmentMinOrderByAggregateInput.schema.ts",
"schemas/objects/AppointmentSumOrderByAggregateInput.schema.ts",
"schemas/objects/IntNullableWithAggregatesFilter.schema.ts",
"schemas/objects/AppointmentScalarRelationFilter.schema.ts",
"schemas/objects/AppointmentFileCountOrderByAggregateInput.schema.ts",
"schemas/objects/AppointmentFileAvgOrderByAggregateInput.schema.ts",
@@ -950,6 +950,7 @@
"schemas/objects/CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
"schemas/objects/NullableDateTimeFieldUpdateOperationsInput.schema.ts",
"schemas/objects/NullableStringFieldUpdateOperationsInput.schema.ts",
"schemas/objects/NullableIntFieldUpdateOperationsInput.schema.ts",
"schemas/objects/EnumPatientStatusFieldUpdateOperationsInput.schema.ts",
"schemas/objects/DateTimeFieldUpdateOperationsInput.schema.ts",
"schemas/objects/UserUpdateOneRequiredWithoutPatientsNestedInput.schema.ts",
@@ -988,7 +989,6 @@
"schemas/objects/AppointmentProcedureUpdateManyWithoutAppointmentNestedInput.schema.ts",
"schemas/objects/ClaimUpdateManyWithoutAppointmentNestedInput.schema.ts",
"schemas/objects/AppointmentFileUpdateManyWithoutAppointmentNestedInput.schema.ts",
"schemas/objects/NullableIntFieldUpdateOperationsInput.schema.ts",
"schemas/objects/AppointmentProcedureUncheckedUpdateManyWithoutAppointmentNestedInput.schema.ts",
"schemas/objects/ClaimUncheckedUpdateManyWithoutAppointmentNestedInput.schema.ts",
"schemas/objects/AppointmentFileUncheckedUpdateManyWithoutAppointmentNestedInput.schema.ts",
@@ -1193,15 +1193,15 @@
"schemas/objects/NestedBoolWithAggregatesFilter.schema.ts",
"schemas/objects/NestedDateTimeNullableFilter.schema.ts",
"schemas/objects/NestedStringNullableFilter.schema.ts",
"schemas/objects/NestedIntNullableFilter.schema.ts",
"schemas/objects/NestedEnumPatientStatusFilter.schema.ts",
"schemas/objects/NestedDateTimeFilter.schema.ts",
"schemas/objects/NestedDateTimeNullableWithAggregatesFilter.schema.ts",
"schemas/objects/NestedIntNullableFilter.schema.ts",
"schemas/objects/NestedStringNullableWithAggregatesFilter.schema.ts",
"schemas/objects/NestedEnumPatientStatusWithAggregatesFilter.schema.ts",
"schemas/objects/NestedDateTimeWithAggregatesFilter.schema.ts",
"schemas/objects/NestedIntNullableWithAggregatesFilter.schema.ts",
"schemas/objects/NestedFloatNullableFilter.schema.ts",
"schemas/objects/NestedEnumPatientStatusWithAggregatesFilter.schema.ts",
"schemas/objects/NestedDateTimeWithAggregatesFilter.schema.ts",
"schemas/objects/NestedDecimalNullableFilter.schema.ts",
"schemas/objects/NestedEnumProcedureSourceFilter.schema.ts",
"schemas/objects/NestedDecimalNullableWithAggregatesFilter.schema.ts",
@@ -35,4 +35,4 @@ var __importStar = (this && this.__importStar) || (function () {
Object.defineProperty(exports, "__esModule", { value: true });
exports.OfficeContactScalarFieldEnumSchema = void 0;
const z = __importStar(require("zod"));
exports.OfficeContactScalarFieldEnumSchema = z.enum(['id', 'userId', 'officeName', 'receptionistName', 'dentistName', 'phoneNumber', 'email', 'fax', 'streetAddress', 'city', 'state', 'zipCode', 'billingName', 'billingNpi', 'billingLicense', 'billingTaxId']);
exports.OfficeContactScalarFieldEnumSchema = z.enum(['id', 'userId', 'legalName', 'officeName', 'receptionistName', 'dentistName', 'phoneNumber', 'email', 'fax', 'streetAddress', 'city', 'state', 'zipCode', 'billingName', 'billingNpi', 'billingLicense', 'billingTaxId']);
@@ -1,4 +1,4 @@
import * as z from 'zod';
export declare const PatientScalarFieldEnumSchema: z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>;
export declare const PatientScalarFieldEnumSchema: z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>;
export type PatientScalarFieldEnum = z.infer<typeof PatientScalarFieldEnumSchema>;
//# sourceMappingURL=PatientScalarFieldEnum.schema.d.ts.map
@@ -1 +1 @@
{"version":3,"file":"PatientScalarFieldEnum.schema.d.ts","sourceRoot":"","sources":["PatientScalarFieldEnum.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,4BAA4B,iVAA+U,CAAA;AAExX,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
{"version":3,"file":"PatientScalarFieldEnum.schema.d.ts","sourceRoot":"","sources":["PatientScalarFieldEnum.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,4BAA4B,sYAAoY,CAAA;AAE7a,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -35,4 +35,4 @@ var __importStar = (this && this.__importStar) || (function () {
Object.defineProperty(exports, "__esModule", { value: true });
exports.PatientScalarFieldEnumSchema = void 0;
const z = __importStar(require("zod"));
exports.PatientScalarFieldEnumSchema = z.enum(['id', 'firstName', 'lastName', 'dateOfBirth', 'gender', 'phone', 'email', 'address', 'city', 'state', 'zipCode', 'insuranceProvider', 'insuranceId', 'groupNumber', 'policyHolder', 'allergies', 'medicalConditions', 'preferredLanguage', 'status', 'remainingBenefit', 'thirdPartyInsurance', 'userId', 'createdAt', 'updatedAt']);
exports.PatientScalarFieldEnumSchema = z.enum(['id', 'firstName', 'lastName', 'dateOfBirth', 'gender', 'phone', 'email', 'address', 'city', 'state', 'zipCode', 'insuranceProvider', 'insuranceId', 'groupNumber', 'policyHolder', 'policyHolderPatientId', 'policyHolderRelationship', 'allergies', 'medicalConditions', 'preferredLanguage', 'status', 'remainingBenefit', 'thirdPartyInsurance', 'userId', 'createdAt', 'updatedAt']);
@@ -1,5 +1,5 @@
import * as z from 'zod';
export const PatientScalarFieldEnumSchema = z.enum(['id', 'firstName', 'lastName', 'dateOfBirth', 'gender', 'phone', 'email', 'address', 'city', 'state', 'zipCode', 'insuranceProvider', 'insuranceId', 'groupNumber', 'policyHolder', 'allergies', 'medicalConditions', 'preferredLanguage', 'status', 'remainingBenefit', 'thirdPartyInsurance', 'userId', 'createdAt', 'updatedAt'])
export const PatientScalarFieldEnumSchema = z.enum(['id', 'firstName', 'lastName', 'dateOfBirth', 'gender', 'phone', 'email', 'address', 'city', 'state', 'zipCode', 'insuranceProvider', 'insuranceId', 'groupNumber', 'policyHolder', 'policyHolderPatientId', 'policyHolderRelationship', 'allergies', 'medicalConditions', 'preferredLanguage', 'status', 'remainingBenefit', 'thirdPartyInsurance', 'userId', 'createdAt', 'updatedAt'])
export type PatientScalarFieldEnum = z.infer<typeof PatientScalarFieldEnumSchema>;
@@ -45,6 +45,7 @@ const OfficeContactScalarFieldEnum_schema_1 = require("./enums/OfficeContactScal
exports.OfficeContactFindFirstSelectSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
legalName: z.boolean().optional(),
officeName: z.boolean().optional(),
receptionistName: z.boolean().optional(),
dentistName: z.boolean().optional(),
@@ -64,6 +65,7 @@ exports.OfficeContactFindFirstSelectSchema = z.object({
exports.OfficeContactFindFirstSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
legalName: z.boolean().optional(),
officeName: z.boolean().optional(),
receptionistName: z.boolean().optional(),
dentistName: z.boolean().optional(),
@@ -45,6 +45,7 @@ const OfficeContactScalarFieldEnum_schema_1 = require("./enums/OfficeContactScal
exports.OfficeContactFindFirstOrThrowSelectSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
legalName: z.boolean().optional(),
officeName: z.boolean().optional(),
receptionistName: z.boolean().optional(),
dentistName: z.boolean().optional(),
@@ -64,6 +65,7 @@ exports.OfficeContactFindFirstOrThrowSelectSchema = z.object({
exports.OfficeContactFindFirstOrThrowSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
legalName: z.boolean().optional(),
officeName: z.boolean().optional(),
receptionistName: z.boolean().optional(),
dentistName: z.boolean().optional(),
@@ -17,6 +17,8 @@ export declare const PatientFindFirstOrThrowSelectZodSchema: z.ZodObject<{
insuranceId: z.ZodOptional<z.ZodBoolean>;
groupNumber: z.ZodOptional<z.ZodBoolean>;
policyHolder: z.ZodOptional<z.ZodBoolean>;
policyHolderPatientId: z.ZodOptional<z.ZodBoolean>;
policyHolderRelationship: z.ZodOptional<z.ZodBoolean>;
allergies: z.ZodOptional<z.ZodBoolean>;
medicalConditions: z.ZodOptional<z.ZodBoolean>;
preferredLanguage: z.ZodOptional<z.ZodBoolean>;
@@ -64,6 +66,8 @@ export declare const PatientFindFirstOrThrowSelectZodSchema: z.ZodObject<{
insuranceId?: boolean | undefined;
groupNumber?: boolean | undefined;
policyHolder?: boolean | undefined;
policyHolderPatientId?: boolean | undefined;
policyHolderRelationship?: boolean | undefined;
allergies?: boolean | undefined;
medicalConditions?: boolean | undefined;
preferredLanguage?: boolean | undefined;
@@ -100,6 +104,8 @@ export declare const PatientFindFirstOrThrowSelectZodSchema: z.ZodObject<{
insuranceId?: boolean | undefined;
groupNumber?: boolean | undefined;
policyHolder?: boolean | undefined;
policyHolderPatientId?: boolean | undefined;
policyHolderRelationship?: boolean | undefined;
allergies?: boolean | undefined;
medicalConditions?: boolean | undefined;
preferredLanguage?: boolean | undefined;
@@ -119,7 +125,7 @@ export declare const PatientFindFirstOrThrowZodSchema: z.ZodObject<{
cursor: z.ZodOptional<z.ZodType<Prisma.PatientWhereUniqueInput, z.ZodTypeDef, Prisma.PatientWhereUniqueInput>>;
take: z.ZodOptional<z.ZodNumber>;
skip: z.ZodOptional<z.ZodNumber>;
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">]>>;
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">]>>;
}, "strict", z.ZodTypeAny, {
where?: Prisma.PatientWhereInput | undefined;
include?: Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
@@ -128,7 +134,7 @@ export declare const PatientFindFirstOrThrowZodSchema: z.ZodObject<{
cursor?: Prisma.PatientWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
}, {
where?: Prisma.PatientWhereInput | undefined;
include?: Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
@@ -137,6 +143,6 @@ export declare const PatientFindFirstOrThrowZodSchema: z.ZodObject<{
cursor?: Prisma.PatientWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
}>;
//# sourceMappingURL=findFirstOrThrowPatient.schema.d.ts.map
@@ -1 +1 @@
{"version":3,"file":"findFirstOrThrowPatient.schema.d.ts","sourceRoot":"","sources":["findFirstOrThrowPatient.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAoCrB,CAAC;AAE5D,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCtC,CAAC;AAEd,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAmlB,CAAC;AAE5qB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAshB,CAAC"}
{"version":3,"file":"findFirstOrThrowPatient.schema.d.ts","sourceRoot":"","sources":["findFirstOrThrowPatient.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAsCrB,CAAC;AAE5D,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCtC,CAAC;AAEd,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAmlB,CAAC;AAE5qB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAshB,CAAC"}
@@ -58,6 +58,8 @@ exports.PatientFindFirstOrThrowSelectSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -95,6 +97,8 @@ exports.PatientFindFirstOrThrowSelectZodSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -25,6 +25,8 @@ export const PatientFindFirstOrThrowSelectSchema: z.ZodType<Prisma.PatientSelect
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -63,6 +65,8 @@ export const PatientFindFirstOrThrowSelectZodSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
+9 -3
View File
@@ -17,6 +17,8 @@ export declare const PatientFindFirstSelectZodSchema: z.ZodObject<{
insuranceId: z.ZodOptional<z.ZodBoolean>;
groupNumber: z.ZodOptional<z.ZodBoolean>;
policyHolder: z.ZodOptional<z.ZodBoolean>;
policyHolderPatientId: z.ZodOptional<z.ZodBoolean>;
policyHolderRelationship: z.ZodOptional<z.ZodBoolean>;
allergies: z.ZodOptional<z.ZodBoolean>;
medicalConditions: z.ZodOptional<z.ZodBoolean>;
preferredLanguage: z.ZodOptional<z.ZodBoolean>;
@@ -64,6 +66,8 @@ export declare const PatientFindFirstSelectZodSchema: z.ZodObject<{
insuranceId?: boolean | undefined;
groupNumber?: boolean | undefined;
policyHolder?: boolean | undefined;
policyHolderPatientId?: boolean | undefined;
policyHolderRelationship?: boolean | undefined;
allergies?: boolean | undefined;
medicalConditions?: boolean | undefined;
preferredLanguage?: boolean | undefined;
@@ -100,6 +104,8 @@ export declare const PatientFindFirstSelectZodSchema: z.ZodObject<{
insuranceId?: boolean | undefined;
groupNumber?: boolean | undefined;
policyHolder?: boolean | undefined;
policyHolderPatientId?: boolean | undefined;
policyHolderRelationship?: boolean | undefined;
allergies?: boolean | undefined;
medicalConditions?: boolean | undefined;
preferredLanguage?: boolean | undefined;
@@ -119,7 +125,7 @@ export declare const PatientFindFirstZodSchema: z.ZodObject<{
cursor: z.ZodOptional<z.ZodType<Prisma.PatientWhereUniqueInput, z.ZodTypeDef, Prisma.PatientWhereUniqueInput>>;
take: z.ZodOptional<z.ZodNumber>;
skip: z.ZodOptional<z.ZodNumber>;
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">]>>;
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">]>>;
}, "strict", z.ZodTypeAny, {
where?: Prisma.PatientWhereInput | undefined;
include?: Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
@@ -128,7 +134,7 @@ export declare const PatientFindFirstZodSchema: z.ZodObject<{
cursor?: Prisma.PatientWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
}, {
where?: Prisma.PatientWhereInput | undefined;
include?: Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
@@ -137,6 +143,6 @@ export declare const PatientFindFirstZodSchema: z.ZodObject<{
cursor?: Prisma.PatientWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
}>;
//# sourceMappingURL=findFirstPatient.schema.d.ts.map
@@ -1 +1 @@
{"version":3,"file":"findFirstPatient.schema.d.ts","sourceRoot":"","sources":["findFirstPatient.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAoCd,CAAC;AAE5D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC/B,CAAC;AAEd,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAqkB,CAAC;AAEhpB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+gB,CAAC"}
{"version":3,"file":"findFirstPatient.schema.d.ts","sourceRoot":"","sources":["findFirstPatient.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAsCd,CAAC;AAE5D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsC/B,CAAC;AAEd,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAqkB,CAAC;AAEhpB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+gB,CAAC"}
@@ -58,6 +58,8 @@ exports.PatientFindFirstSelectSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -95,6 +97,8 @@ exports.PatientFindFirstSelectZodSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -25,6 +25,8 @@ export const PatientFindFirstSelectSchema: z.ZodType<Prisma.PatientSelect> = z.o
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -63,6 +65,8 @@ export const PatientFindFirstSelectZodSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -45,6 +45,7 @@ const OfficeContactScalarFieldEnum_schema_1 = require("./enums/OfficeContactScal
exports.OfficeContactFindManySelectSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
legalName: z.boolean().optional(),
officeName: z.boolean().optional(),
receptionistName: z.boolean().optional(),
dentistName: z.boolean().optional(),
@@ -64,6 +65,7 @@ exports.OfficeContactFindManySelectSchema = z.object({
exports.OfficeContactFindManySelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
legalName: z.boolean().optional(),
officeName: z.boolean().optional(),
receptionistName: z.boolean().optional(),
dentistName: z.boolean().optional(),
+9 -3
View File
@@ -17,6 +17,8 @@ export declare const PatientFindManySelectZodSchema: z.ZodObject<{
insuranceId: z.ZodOptional<z.ZodBoolean>;
groupNumber: z.ZodOptional<z.ZodBoolean>;
policyHolder: z.ZodOptional<z.ZodBoolean>;
policyHolderPatientId: z.ZodOptional<z.ZodBoolean>;
policyHolderRelationship: z.ZodOptional<z.ZodBoolean>;
allergies: z.ZodOptional<z.ZodBoolean>;
medicalConditions: z.ZodOptional<z.ZodBoolean>;
preferredLanguage: z.ZodOptional<z.ZodBoolean>;
@@ -64,6 +66,8 @@ export declare const PatientFindManySelectZodSchema: z.ZodObject<{
insuranceId?: boolean | undefined;
groupNumber?: boolean | undefined;
policyHolder?: boolean | undefined;
policyHolderPatientId?: boolean | undefined;
policyHolderRelationship?: boolean | undefined;
allergies?: boolean | undefined;
medicalConditions?: boolean | undefined;
preferredLanguage?: boolean | undefined;
@@ -100,6 +104,8 @@ export declare const PatientFindManySelectZodSchema: z.ZodObject<{
insuranceId?: boolean | undefined;
groupNumber?: boolean | undefined;
policyHolder?: boolean | undefined;
policyHolderPatientId?: boolean | undefined;
policyHolderRelationship?: boolean | undefined;
allergies?: boolean | undefined;
medicalConditions?: boolean | undefined;
preferredLanguage?: boolean | undefined;
@@ -119,7 +125,7 @@ export declare const PatientFindManyZodSchema: z.ZodObject<{
cursor: z.ZodOptional<z.ZodType<Prisma.PatientWhereUniqueInput, z.ZodTypeDef, Prisma.PatientWhereUniqueInput>>;
take: z.ZodOptional<z.ZodNumber>;
skip: z.ZodOptional<z.ZodNumber>;
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">]>>;
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">]>>;
}, "strict", z.ZodTypeAny, {
where?: Prisma.PatientWhereInput | undefined;
include?: Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
@@ -128,7 +134,7 @@ export declare const PatientFindManyZodSchema: z.ZodObject<{
cursor?: Prisma.PatientWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
}, {
where?: Prisma.PatientWhereInput | undefined;
include?: Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
@@ -137,6 +143,6 @@ export declare const PatientFindManyZodSchema: z.ZodObject<{
cursor?: Prisma.PatientWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
}>;
//# sourceMappingURL=findManyPatient.schema.d.ts.map
@@ -1 +1 @@
{"version":3,"file":"findManyPatient.schema.d.ts","sourceRoot":"","sources":["findManyPatient.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAoCb,CAAC;AAE5D,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC9B,CAAC;AAEd,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAmkB,CAAC;AAE5oB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8gB,CAAC"}
{"version":3,"file":"findManyPatient.schema.d.ts","sourceRoot":"","sources":["findManyPatient.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAsCb,CAAC;AAE5D,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsC9B,CAAC;AAEd,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAmkB,CAAC;AAE5oB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8gB,CAAC"}
@@ -58,6 +58,8 @@ exports.PatientFindManySelectSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -95,6 +97,8 @@ exports.PatientFindManySelectZodSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -25,6 +25,8 @@ export const PatientFindManySelectSchema: z.ZodType<Prisma.PatientSelect> = z.ob
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
@@ -63,6 +65,8 @@ export const PatientFindManySelectZodSchema = z.object({
insuranceId: z.boolean().optional(),
groupNumber: z.boolean().optional(),
policyHolder: z.boolean().optional(),
policyHolderPatientId: z.boolean().optional(),
policyHolderRelationship: z.boolean().optional(),
allergies: z.boolean().optional(),
medicalConditions: z.boolean().optional(),
preferredLanguage: z.boolean().optional(),
+3 -3
View File
@@ -7,14 +7,14 @@ export declare const PatientGroupByZodSchema: z.ZodObject<{
having: z.ZodOptional<z.ZodType<Prisma.PatientScalarWhereWithAggregatesInput, z.ZodTypeDef, Prisma.PatientScalarWhereWithAggregatesInput>>;
take: z.ZodOptional<z.ZodNumber>;
skip: z.ZodOptional<z.ZodNumber>;
by: z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">;
by: z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">;
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.PatientCountAggregateInputType, z.ZodTypeDef, Prisma.PatientCountAggregateInputType>]>>;
_min: z.ZodOptional<z.ZodType<Prisma.PatientMinAggregateInputType, z.ZodTypeDef, Prisma.PatientMinAggregateInputType>>;
_max: z.ZodOptional<z.ZodType<Prisma.PatientMaxAggregateInputType, z.ZodTypeDef, Prisma.PatientMaxAggregateInputType>>;
_avg: z.ZodOptional<z.ZodType<Prisma.PatientAvgAggregateInputType, z.ZodTypeDef, Prisma.PatientAvgAggregateInputType>>;
_sum: z.ZodOptional<z.ZodType<Prisma.PatientSumAggregateInputType, z.ZodTypeDef, Prisma.PatientSumAggregateInputType>>;
}, "strict", z.ZodTypeAny, {
by: ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[];
by: ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[];
where?: Prisma.PatientWhereInput | undefined;
_count?: true | Prisma.PatientCountAggregateInputType | undefined;
orderBy?: Prisma.PatientOrderByWithAggregationInput | Prisma.PatientOrderByWithAggregationInput[] | undefined;
@@ -26,7 +26,7 @@ export declare const PatientGroupByZodSchema: z.ZodObject<{
_sum?: Prisma.PatientSumAggregateInputType | undefined;
having?: Prisma.PatientScalarWhereWithAggregatesInput | undefined;
}, {
by: ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[];
by: ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[];
where?: Prisma.PatientWhereInput | undefined;
_count?: true | Prisma.PatientCountAggregateInputType | undefined;
orderBy?: Prisma.PatientOrderByWithAggregationInput | Prisma.PatientOrderByWithAggregationInput[] | undefined;
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
legalName: z.literal(true).optional(),
officeName: z.literal(true).optional(),
receptionistName: z.literal(true).optional(),
dentistName: z.literal(true).optional(),
@@ -39,6 +39,7 @@ const SortOrder_schema_1 = require("../enums/SortOrder.schema");
const makeSchema = () => z.object({
id: SortOrder_schema_1.SortOrderSchema.optional(),
userId: SortOrder_schema_1.SortOrderSchema.optional(),
legalName: SortOrder_schema_1.SortOrderSchema.optional(),
officeName: SortOrder_schema_1.SortOrderSchema.optional(),
receptionistName: SortOrder_schema_1.SortOrderSchema.optional(),
dentistName: SortOrder_schema_1.SortOrderSchema.optional(),
@@ -37,6 +37,7 @@ exports.OfficeContactCreateInputObjectZodSchema = exports.OfficeContactCreateInp
const z = __importStar(require("zod"));
const UserCreateNestedOneWithoutOfficeContactInput_schema_1 = require("./UserCreateNestedOneWithoutOfficeContactInput.schema");
const makeSchema = () => z.object({
legalName: z.string().optional().nullable(),
officeName: z.string().optional().nullable(),
receptionistName: z.string().optional().nullable(),
dentistName: z.string().optional().nullable(),
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int(),
legalName: z.string().optional().nullable(),
officeName: z.string().optional().nullable(),
receptionistName: z.string().optional().nullable(),
dentistName: z.string().optional().nullable(),
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.OfficeContactCreateWithoutUserInputObjectZodSchema = exports.OfficeContactCreateWithoutUserInputObjectSchema = void 0;
const z = __importStar(require("zod"));
const makeSchema = () => z.object({
legalName: z.string().optional().nullable(),
officeName: z.string().optional().nullable(),
receptionistName: z.string().optional().nullable(),
dentistName: z.string().optional().nullable(),
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
legalName: z.literal(true).optional(),
officeName: z.literal(true).optional(),
receptionistName: z.literal(true).optional(),
dentistName: z.literal(true).optional(),
@@ -39,6 +39,7 @@ const SortOrder_schema_1 = require("../enums/SortOrder.schema");
const makeSchema = () => z.object({
id: SortOrder_schema_1.SortOrderSchema.optional(),
userId: SortOrder_schema_1.SortOrderSchema.optional(),
legalName: SortOrder_schema_1.SortOrderSchema.optional(),
officeName: SortOrder_schema_1.SortOrderSchema.optional(),
receptionistName: SortOrder_schema_1.SortOrderSchema.optional(),
dentistName: SortOrder_schema_1.SortOrderSchema.optional(),
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
legalName: z.literal(true).optional(),
officeName: z.literal(true).optional(),
receptionistName: z.literal(true).optional(),
dentistName: z.literal(true).optional(),
@@ -39,6 +39,7 @@ const SortOrder_schema_1 = require("../enums/SortOrder.schema");
const makeSchema = () => z.object({
id: SortOrder_schema_1.SortOrderSchema.optional(),
userId: SortOrder_schema_1.SortOrderSchema.optional(),
legalName: SortOrder_schema_1.SortOrderSchema.optional(),
officeName: SortOrder_schema_1.SortOrderSchema.optional(),
receptionistName: SortOrder_schema_1.SortOrderSchema.optional(),
dentistName: SortOrder_schema_1.SortOrderSchema.optional(),
@@ -45,6 +45,7 @@ const OfficeContactSumOrderByAggregateInput_schema_1 = require("./OfficeContactS
const makeSchema = () => z.object({
id: SortOrder_schema_1.SortOrderSchema.optional(),
userId: SortOrder_schema_1.SortOrderSchema.optional(),
legalName: z.union([SortOrder_schema_1.SortOrderSchema, z.lazy(() => SortOrderInput_schema_1.SortOrderInputObjectSchema)]).optional(),
officeName: z.union([SortOrder_schema_1.SortOrderSchema, z.lazy(() => SortOrderInput_schema_1.SortOrderInputObjectSchema)]).optional(),
receptionistName: z.union([SortOrder_schema_1.SortOrderSchema, z.lazy(() => SortOrderInput_schema_1.SortOrderInputObjectSchema)]).optional(),
dentistName: z.union([SortOrder_schema_1.SortOrderSchema, z.lazy(() => SortOrderInput_schema_1.SortOrderInputObjectSchema)]).optional(),
@@ -41,6 +41,7 @@ const UserOrderByWithRelationInput_schema_1 = require("./UserOrderByWithRelation
const makeSchema = () => z.object({
id: SortOrder_schema_1.SortOrderSchema.optional(),
userId: SortOrder_schema_1.SortOrderSchema.optional(),
legalName: z.union([SortOrder_schema_1.SortOrderSchema, z.lazy(() => SortOrderInput_schema_1.SortOrderInputObjectSchema)]).optional(),
officeName: z.union([SortOrder_schema_1.SortOrderSchema, z.lazy(() => SortOrderInput_schema_1.SortOrderInputObjectSchema)]).optional(),
receptionistName: z.union([SortOrder_schema_1.SortOrderSchema, z.lazy(() => SortOrderInput_schema_1.SortOrderInputObjectSchema)]).optional(),
dentistName: z.union([SortOrder_schema_1.SortOrderSchema, z.lazy(() => SortOrderInput_schema_1.SortOrderInputObjectSchema)]).optional(),
@@ -43,6 +43,7 @@ const officecontactscalarwherewithaggregatesinputSchema = z.object({
NOT: z.union([z.lazy(() => exports.OfficeContactScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => exports.OfficeContactScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntWithAggregatesFilter_schema_1.IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntWithAggregatesFilter_schema_1.IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
legalName: z.union([z.lazy(() => StringNullableWithAggregatesFilter_schema_1.StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
officeName: z.union([z.lazy(() => StringNullableWithAggregatesFilter_schema_1.StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
receptionistName: z.union([z.lazy(() => StringNullableWithAggregatesFilter_schema_1.StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
dentistName: z.union([z.lazy(() => StringNullableWithAggregatesFilter_schema_1.StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
@@ -39,6 +39,7 @@ const UserArgs_schema_1 = require("./UserArgs.schema");
const makeSchema = () => z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
legalName: z.boolean().optional(),
officeName: z.boolean().optional(),
receptionistName: z.boolean().optional(),
dentistName: z.boolean().optional(),
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int(),
legalName: z.string().optional().nullable(),
officeName: z.string().optional().nullable(),
receptionistName: z.string().optional().nullable(),
dentistName: z.string().optional().nullable(),
@@ -37,6 +37,7 @@ exports.OfficeContactUncheckedCreateWithoutUserInputObjectZodSchema = exports.Of
const z = __importStar(require("zod"));
const makeSchema = () => z.object({
id: z.number().int().optional(),
legalName: z.string().optional().nullable(),
officeName: z.string().optional().nullable(),
receptionistName: z.string().optional().nullable(),
dentistName: z.string().optional().nullable(),
@@ -40,6 +40,7 @@ const NullableStringFieldUpdateOperationsInput_schema_1 = require("./NullableStr
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInput_schema_1.IntFieldUpdateOperationsInputObjectSchema)]).optional(),
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInput_schema_1.IntFieldUpdateOperationsInputObjectSchema)]).optional(),
legalName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
officeName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
receptionistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
dentistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
@@ -40,6 +40,7 @@ const NullableStringFieldUpdateOperationsInput_schema_1 = require("./NullableStr
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInput_schema_1.IntFieldUpdateOperationsInputObjectSchema)]).optional(),
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInput_schema_1.IntFieldUpdateOperationsInputObjectSchema)]).optional(),
legalName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
officeName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
receptionistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
dentistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
@@ -39,6 +39,7 @@ const IntFieldUpdateOperationsInput_schema_1 = require("./IntFieldUpdateOperatio
const NullableStringFieldUpdateOperationsInput_schema_1 = require("./NullableStringFieldUpdateOperationsInput.schema");
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInput_schema_1.IntFieldUpdateOperationsInputObjectSchema)]).optional(),
legalName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
officeName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
receptionistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
dentistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
const NullableStringFieldUpdateOperationsInput_schema_1 = require("./NullableStringFieldUpdateOperationsInput.schema");
const UserUpdateOneRequiredWithoutOfficeContactNestedInput_schema_1 = require("./UserUpdateOneRequiredWithoutOfficeContactNestedInput.schema");
const makeSchema = () => z.object({
legalName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
officeName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
receptionistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
dentistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
@@ -37,6 +37,7 @@ exports.OfficeContactUpdateManyMutationInputObjectZodSchema = exports.OfficeCont
const z = __importStar(require("zod"));
const NullableStringFieldUpdateOperationsInput_schema_1 = require("./NullableStringFieldUpdateOperationsInput.schema");
const makeSchema = () => z.object({
legalName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
officeName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
receptionistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
dentistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
@@ -37,6 +37,7 @@ exports.OfficeContactUpdateWithoutUserInputObjectZodSchema = exports.OfficeConta
const z = __importStar(require("zod"));
const NullableStringFieldUpdateOperationsInput_schema_1 = require("./NullableStringFieldUpdateOperationsInput.schema");
const makeSchema = () => z.object({
legalName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
officeName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
receptionistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
dentistName: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInput_schema_1.NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
@@ -45,6 +45,7 @@ const officecontactwhereinputSchema = z.object({
NOT: z.union([z.lazy(() => exports.OfficeContactWhereInputObjectSchema), z.lazy(() => exports.OfficeContactWhereInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntFilter_schema_1.IntFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntFilter_schema_1.IntFilterObjectSchema), z.number().int()]).optional(),
legalName: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
officeName: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
receptionistName: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
dentistName: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
@@ -37,6 +37,7 @@ exports.PatientAvgAggregateInputObjectZodSchema = exports.PatientAvgAggregateInp
const z = __importStar(require("zod"));
const makeSchema = () => z.object({
id: z.literal(true).optional(),
policyHolderPatientId: z.literal(true).optional(),
userId: z.literal(true).optional()
}).strict();
exports.PatientAvgAggregateInputObjectSchema = makeSchema();
@@ -4,6 +4,7 @@ import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.literal(true).optional(),
policyHolderPatientId: z.literal(true).optional(),
userId: z.literal(true).optional()
}).strict();
export const PatientAvgAggregateInputObjectSchema: z.ZodType<Prisma.PatientAvgAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientAvgAggregateInputType>;
@@ -38,6 +38,7 @@ const z = __importStar(require("zod"));
const SortOrder_schema_1 = require("../enums/SortOrder.schema");
const makeSchema = () => z.object({
id: SortOrder_schema_1.SortOrderSchema.optional(),
policyHolderPatientId: SortOrder_schema_1.SortOrderSchema.optional(),
userId: SortOrder_schema_1.SortOrderSchema.optional()
}).strict();
exports.PatientAvgOrderByAggregateInputObjectSchema = makeSchema();
@@ -4,6 +4,7 @@ import { SortOrderSchema } from '../enums/SortOrder.schema'
const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
policyHolderPatientId: SortOrderSchema.optional(),
userId: SortOrderSchema.optional()
}).strict();
export const PatientAvgOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientAvgOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientAvgOrderByAggregateInput>;
@@ -51,6 +51,8 @@ const makeSchema = () => z.object({
insuranceId: z.literal(true).optional(),
groupNumber: z.literal(true).optional(),
policyHolder: z.literal(true).optional(),
policyHolderPatientId: z.literal(true).optional(),
policyHolderRelationship: z.literal(true).optional(),
allergies: z.literal(true).optional(),
medicalConditions: z.literal(true).optional(),
preferredLanguage: z.literal(true).optional(),
@@ -18,6 +18,8 @@ const makeSchema = () => z.object({
insuranceId: z.literal(true).optional(),
groupNumber: z.literal(true).optional(),
policyHolder: z.literal(true).optional(),
policyHolderPatientId: z.literal(true).optional(),
policyHolderRelationship: z.literal(true).optional(),
allergies: z.literal(true).optional(),
medicalConditions: z.literal(true).optional(),
preferredLanguage: z.literal(true).optional(),
@@ -52,6 +52,8 @@ const makeSchema = () => z.object({
insuranceId: SortOrder_schema_1.SortOrderSchema.optional(),
groupNumber: SortOrder_schema_1.SortOrderSchema.optional(),
policyHolder: SortOrder_schema_1.SortOrderSchema.optional(),
policyHolderPatientId: SortOrder_schema_1.SortOrderSchema.optional(),
policyHolderRelationship: SortOrder_schema_1.SortOrderSchema.optional(),
allergies: SortOrder_schema_1.SortOrderSchema.optional(),
medicalConditions: SortOrder_schema_1.SortOrderSchema.optional(),
preferredLanguage: SortOrder_schema_1.SortOrderSchema.optional(),
@@ -18,6 +18,8 @@ const makeSchema = () => z.object({
insuranceId: SortOrderSchema.optional(),
groupNumber: SortOrderSchema.optional(),
policyHolder: SortOrderSchema.optional(),
policyHolderPatientId: SortOrderSchema.optional(),
policyHolderRelationship: SortOrderSchema.optional(),
allergies: SortOrderSchema.optional(),
medicalConditions: SortOrderSchema.optional(),
preferredLanguage: SortOrderSchema.optional(),
@@ -61,6 +61,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -27,6 +27,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -52,6 +52,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -18,6 +18,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -52,6 +52,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -18,6 +18,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -60,6 +60,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -26,6 +26,8 @@ const makeSchema = () => z.object({
insuranceId: z.string().optional().nullable(),
groupNumber: z.string().optional().nullable(),
policyHolder: z.string().optional().nullable(),
policyHolderPatientId: z.number().int().optional().nullable(),
policyHolderRelationship: z.string().optional().nullable(),
allergies: z.string().optional().nullable(),
medicalConditions: z.string().optional().nullable(),
preferredLanguage: z.string().optional().nullable(),
@@ -51,6 +51,8 @@ const makeSchema = () => z.object({
insuranceId: z.literal(true).optional(),
groupNumber: z.literal(true).optional(),
policyHolder: z.literal(true).optional(),
policyHolderPatientId: z.literal(true).optional(),
policyHolderRelationship: z.literal(true).optional(),
allergies: z.literal(true).optional(),
medicalConditions: z.literal(true).optional(),
preferredLanguage: z.literal(true).optional(),

Some files were not shown because too many files have changed in this diff Show More