feat: Tufts SCO service/preauth history, chat clear archives history, labeled ID/DOB detection
- AI chat Clear empties the chat box but archives the conversation in the per-user JSON file
- Chat bot detects Member ID/DOB pasted with labels ("Date of Birth ... Member ID ...")
- Tufts SCO (DentaQuest) eligibility saves the member's service history
- Tufts SCO Check PreAuth saves procedure lines (code, tooth, plan payment, status) to a
new PatientPreauthHistory table, shown as Preauth History in Patient Details
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -275,8 +275,12 @@ export function restoreCodeToothLists(message: string, names: string[]): string[
|
||||
return kept;
|
||||
}
|
||||
|
||||
// Field labels copied along with the values, e.g. "Date of Birth 05/03/1952\nMember ID S01057721".
|
||||
const ID_DOB_LABEL_RE =
|
||||
/(?<![A-Za-z0-9])(?:date\s+of\s+birth|birth\s*date|d\.?o\.?b\.?|member\s*(?:id|number|no\.?)|subscriber\s*id|insurance\s*id|id)(?![A-Za-z0-9])\s*[:#]?/gi;
|
||||
|
||||
function parseBareIdDob(message: string): { memberId: string; dob: string } | null {
|
||||
const text = message.trim();
|
||||
const text = message.replace(ID_DOB_LABEL_RE, " ").replace(/\s+/g, " ").trim();
|
||||
const dobPattern = /(\d{1,2}[\/\-]\d{1,2}[\/\-]\d{4})/;
|
||||
const idThenDob = text.match(new RegExp(`^([A-Za-z0-9]{3,})[\\s,]+${dobPattern.source}$`));
|
||||
if (idThenDob) return { memberId: idThenDob[1]!, dob: idThenDob[2]!.replace(/-/g, "/") };
|
||||
|
||||
@@ -101,6 +101,16 @@ async function processDentaQuestResult(
|
||||
insuranceProvider: "DentaQuest",
|
||||
...memberDetailDemographics(seleniumResult, patient.phone),
|
||||
});
|
||||
// Only replace when rows came back — an empty read may just mean the portal
|
||||
// was slow, and shouldn't wipe history saved by an earlier check.
|
||||
if (Array.isArray(seleniumResult?.service_history) && seleniumResult.service_history.length > 0) {
|
||||
try {
|
||||
await storage.replacePatientServiceHistory(patient.id, seleniumResult.service_history);
|
||||
} catch (e: any) {
|
||||
console.error("[dentaquest-processor] saving service history failed:", e.message);
|
||||
}
|
||||
}
|
||||
|
||||
output.patientUpdateStatus = `Patient status updated to ${newStatus}`;
|
||||
|
||||
let pdfBuffer: Buffer | null = null;
|
||||
|
||||
@@ -108,6 +108,17 @@ async function saveApprovalPdf(userId: number, claimId: number | undefined, pdfP
|
||||
return true;
|
||||
}
|
||||
|
||||
// Procedure lines of the pre-auth, shown in the patient's Preauth History
|
||||
async function savePreauthHistory(claimId: number | undefined, preAuthNumber: string, procedures: any[]) {
|
||||
const claim = claimId ? await storage.getClaim(claimId) : undefined;
|
||||
if (!claim?.patientId) {
|
||||
log("preauth history not saved: claim/patient not found", { claimId });
|
||||
return;
|
||||
}
|
||||
await storage.replacePatientPreauthHistory(claim.patientId, preAuthNumber, procedures);
|
||||
log("preauth history saved", { claimId, patientId: claim.patientId, rows: procedures.length });
|
||||
}
|
||||
|
||||
export async function runPreAuthCheckProcessor(
|
||||
input: {
|
||||
siteKey: PreAuthCheckSiteKey;
|
||||
@@ -143,6 +154,13 @@ export async function runPreAuthCheckProcessor(
|
||||
const saved = await saveApprovalPdf(userId, claimId, result.approval_pdf_path);
|
||||
message += saved ? " Saved to the patient's Approval folder." : "";
|
||||
}
|
||||
if (Array.isArray(result.procedures) && result.procedures.length > 0 && result.preAuthNumber) {
|
||||
try {
|
||||
await savePreauthHistory(claimId, String(result.preAuthNumber), result.procedures);
|
||||
} catch (e: any) {
|
||||
log("saving preauth history failed", { claimId, error: e?.message });
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
await removeDownloadedFiles(result);
|
||||
}
|
||||
|
||||
@@ -470,15 +470,34 @@ router.post("/create-appointment-today", async (req: Request, res: Response): Pr
|
||||
});
|
||||
|
||||
// ─── Chat history persistence (JSON file per user) ──────────────────────────
|
||||
// File shape: { messages, archived }. `messages` is the conversation shown in the chat box;
|
||||
// "Clear" moves it into `archived` (never deleted) so the full history stays on disk.
|
||||
|
||||
interface ChatHistoryFile {
|
||||
messages: any[];
|
||||
archived: { clearedAt: string; messages: any[] }[];
|
||||
}
|
||||
|
||||
function readChatHistory(userId: number): ChatHistoryFile {
|
||||
const filePath = getChatHistoryPath(userId);
|
||||
if (!fs.existsSync(filePath)) return { messages: [], archived: [] };
|
||||
const data = JSON.parse(fs.readFileSync(filePath, "utf-8"));
|
||||
return {
|
||||
messages: Array.isArray(data.messages) ? data.messages : [],
|
||||
archived: Array.isArray(data.archived) ? data.archived : [],
|
||||
};
|
||||
}
|
||||
|
||||
function writeChatHistory(userId: number, data: ChatHistoryFile) {
|
||||
if (!fs.existsSync(CHAT_HISTORY_DIR)) fs.mkdirSync(CHAT_HISTORY_DIR, { recursive: true });
|
||||
fs.writeFileSync(getChatHistoryPath(userId), JSON.stringify(data, null, 2));
|
||||
}
|
||||
|
||||
router.get("/chat-history", async (req: Request, res: Response): Promise<any> => {
|
||||
try {
|
||||
const userId = req.user?.id;
|
||||
if (!userId) return res.status(401).json({ message: "Unauthorized" });
|
||||
const filePath = getChatHistoryPath(userId);
|
||||
if (!fs.existsSync(filePath)) return res.status(200).json({ messages: [] });
|
||||
const raw = fs.readFileSync(filePath, "utf-8");
|
||||
return res.status(200).json(JSON.parse(raw));
|
||||
return res.status(200).json({ messages: readChatHistory(userId).messages });
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to load chat history", details: String(err) });
|
||||
}
|
||||
@@ -490,20 +509,27 @@ router.put("/chat-history", async (req: Request, res: Response): Promise<any> =>
|
||||
if (!userId) return res.status(401).json({ message: "Unauthorized" });
|
||||
const { messages } = req.body;
|
||||
if (!Array.isArray(messages)) return res.status(400).json({ message: "messages array is required" });
|
||||
if (!fs.existsSync(CHAT_HISTORY_DIR)) fs.mkdirSync(CHAT_HISTORY_DIR, { recursive: true });
|
||||
fs.writeFileSync(getChatHistoryPath(userId), JSON.stringify({ messages }, null, 2));
|
||||
const data = readChatHistory(userId);
|
||||
writeChatHistory(userId, { ...data, messages });
|
||||
return res.status(200).json({ ok: true });
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to save chat history", details: String(err) });
|
||||
}
|
||||
});
|
||||
|
||||
// Clears the visible conversation but keeps it in `archived`. The client sends its current
|
||||
// messages so anything not yet flushed by the debounced PUT is archived too.
|
||||
router.delete("/chat-history", async (req: Request, res: Response): Promise<any> => {
|
||||
try {
|
||||
const userId = req.user?.id;
|
||||
if (!userId) return res.status(401).json({ message: "Unauthorized" });
|
||||
const filePath = getChatHistoryPath(userId);
|
||||
if (fs.existsSync(filePath)) fs.unlinkSync(filePath);
|
||||
const data = readChatHistory(userId);
|
||||
const toArchive = Array.isArray(req.body?.messages) ? req.body.messages : data.messages;
|
||||
// Skip a conversation that is only the bot's welcome message
|
||||
if (toArchive.some((m: any) => m?.role === "user")) {
|
||||
data.archived.push({ clearedAt: new Date().toISOString(), messages: toArchive });
|
||||
}
|
||||
writeChatHistory(userId, { messages: [], archived: data.archived });
|
||||
return res.status(200).json({ ok: true });
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to clear chat history", details: String(err) });
|
||||
|
||||
@@ -461,4 +461,17 @@ router.get("/:id/service-history", async (req: Request, res: Response): Promise<
|
||||
}
|
||||
});
|
||||
|
||||
// GET /api/patients/:id/preauth-history
|
||||
router.get("/:id/preauth-history", async (req: Request, res: Response): Promise<any> => {
|
||||
try {
|
||||
const patientId = parseInt(req.params.id);
|
||||
if (isNaN(patientId)) return res.status(400).json({ message: "Invalid patient ID" });
|
||||
|
||||
const history = await storage.getPatientPreauthHistory(patientId);
|
||||
return res.status(200).json(history);
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to fetch preauth history", details: String(err) });
|
||||
}
|
||||
});
|
||||
|
||||
export default router;
|
||||
|
||||
@@ -14,6 +14,13 @@ export type ServiceHistoryRow = {
|
||||
serviceDate?: string | null;
|
||||
};
|
||||
|
||||
export type PreauthHistoryRow = {
|
||||
submittedCode: string;
|
||||
toothQuadArchSurface?: string | null;
|
||||
paidAmount?: string | null;
|
||||
status?: string | null;
|
||||
};
|
||||
|
||||
export interface IStorage {
|
||||
// Patient methods
|
||||
getPatient(id: number): Promise<Patient | undefined>;
|
||||
@@ -63,6 +70,14 @@ export interface IStorage {
|
||||
patientId: number,
|
||||
rows: ServiceHistoryRow[]
|
||||
): Promise<void>;
|
||||
getPatientPreauthHistory(
|
||||
patientId: number
|
||||
): Promise<(PreauthHistoryRow & { id: number; preAuthNumber: string; createdAt: Date })[]>;
|
||||
replacePatientPreauthHistory(
|
||||
patientId: number,
|
||||
preAuthNumber: string,
|
||||
rows: PreauthHistoryRow[]
|
||||
): Promise<void>;
|
||||
}
|
||||
|
||||
export const patientsStorage: IStorage = {
|
||||
@@ -195,6 +210,30 @@ export const patientsStorage: IStorage = {
|
||||
]);
|
||||
},
|
||||
|
||||
// Most recently checked pre-auth first, lines in the portal's order
|
||||
async getPatientPreauthHistory(patientId: number) {
|
||||
return db.patientPreauthHistory.findMany({
|
||||
where: { patientId },
|
||||
orderBy: [{ createdAt: "desc" }, { id: "asc" }],
|
||||
});
|
||||
},
|
||||
|
||||
async replacePatientPreauthHistory(patientId: number, preAuthNumber: string, rows: PreauthHistoryRow[]) {
|
||||
await db.$transaction([
|
||||
db.patientPreauthHistory.deleteMany({ where: { patientId, preAuthNumber } }),
|
||||
db.patientPreauthHistory.createMany({
|
||||
data: rows.map((row) => ({
|
||||
patientId,
|
||||
preAuthNumber,
|
||||
submittedCode: row.submittedCode,
|
||||
toothQuadArchSurface: row.toothQuadArchSurface ?? null,
|
||||
paidAmount: row.paidAmount ?? null,
|
||||
status: row.status ?? null,
|
||||
})),
|
||||
}),
|
||||
]);
|
||||
},
|
||||
|
||||
async deletePatient(id: number): Promise<void> {
|
||||
try {
|
||||
await db.patient.delete({ where: { id } });
|
||||
|
||||
@@ -154,9 +154,14 @@ function getAutoCheck(_dobISO: string): "mh" {
|
||||
return "mh";
|
||||
}
|
||||
|
||||
// Field labels copied along with the values, e.g. "Date of Birth 05/03/1952\nMember ID S01057721".
|
||||
const ID_DOB_LABEL_RE =
|
||||
/(?<![A-Za-z0-9])(?:date\s+of\s+birth|birth\s*date|d\.?o\.?b\.?|member\s*(?:id|number|no\.?)|subscriber\s*id|insurance\s*id|id)(?![A-Za-z0-9])\s*[:#]?/gi;
|
||||
|
||||
function parseEligibilityInput(
|
||||
raw: string
|
||||
input: string
|
||||
): { memberId: string; display: string; iso: string } | null {
|
||||
const raw = input.replace(ID_DOB_LABEL_RE, " ");
|
||||
const dateMatch = raw.match(/\b(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})\b/);
|
||||
if (!dateMatch) return null;
|
||||
const m = dateMatch[1];
|
||||
@@ -217,10 +222,13 @@ function saveChatHistoryToServer(msgs: Message[]) {
|
||||
}, 500);
|
||||
}
|
||||
|
||||
function clearChatHistoryOnServer() {
|
||||
// Server archives the cleared conversation in the JSON file rather than deleting it
|
||||
function clearChatHistoryOnServer(msgs: Message[]) {
|
||||
if (saveTimer) clearTimeout(saveTimer);
|
||||
fetch("/api/ai/chat-history", {
|
||||
method: "DELETE",
|
||||
headers: { Authorization: `Bearer ${localStorage.getItem("token") ?? ""}` },
|
||||
headers: { "Content-Type": "application/json", Authorization: `Bearer ${localStorage.getItem("token") ?? ""}` },
|
||||
body: JSON.stringify({ messages: msgs.filter((m) => !m.isLoading) }),
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
@@ -477,7 +485,7 @@ export function ChatbotButton() {
|
||||
try {
|
||||
sessionStorage.setItem(CHAT_STORAGE_KEY, JSON.stringify(fresh));
|
||||
} catch {}
|
||||
clearChatHistoryOnServer();
|
||||
clearChatHistoryOnServer(messages);
|
||||
setMessages(fresh);
|
||||
};
|
||||
|
||||
|
||||
@@ -61,6 +61,15 @@ interface ServiceHistoryRow {
|
||||
serviceDate: string | null;
|
||||
}
|
||||
|
||||
interface PreauthHistoryRow {
|
||||
id: number;
|
||||
preAuthNumber: string;
|
||||
submittedCode: string;
|
||||
toothQuadArchSurface: string | null;
|
||||
paidAmount: string | null;
|
||||
status: string | null;
|
||||
}
|
||||
|
||||
interface PatientApiResponse {
|
||||
patients: Patient[];
|
||||
totalCount: number;
|
||||
@@ -731,6 +740,16 @@ export function PatientTable({
|
||||
enabled: isViewPatientOpen && !!currentPatient?.id,
|
||||
});
|
||||
|
||||
const { data: preauthHistory = [], isLoading: isPreauthHistoryLoading } = useQuery<PreauthHistoryRow[]>({
|
||||
queryKey: ["patient-preauth-history", currentPatient?.id],
|
||||
queryFn: async () => {
|
||||
const res = await apiRequest("GET", `/api/patients/${currentPatient?.id}/preauth-history`);
|
||||
if (!res.ok) throw new Error("Failed to load preauth history");
|
||||
return res.json();
|
||||
},
|
||||
enabled: isViewPatientOpen && !!currentPatient?.id,
|
||||
});
|
||||
|
||||
const searchKeyPart = debouncedSearchCriteria?.searchTerm || "recent";
|
||||
|
||||
const {
|
||||
@@ -1394,13 +1413,47 @@ export function PatientTable({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="pt-4">
|
||||
<h4 className="font-medium text-gray-900">Preauth History</h4>
|
||||
{isPreauthHistoryLoading ? (
|
||||
<p className="mt-2 text-gray-500">Loading...</p>
|
||||
) : preauthHistory.length === 0 ? (
|
||||
<p className="mt-2 text-gray-500">
|
||||
No preauth history on file. It is saved when Tufts SCO Check PreAuth is run.
|
||||
</p>
|
||||
) : (
|
||||
<Table className="mt-2">
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>Preauth #</TableHead>
|
||||
<TableHead>Submitted Code</TableHead>
|
||||
<TableHead>Tooth/Arch/Quad/Surface</TableHead>
|
||||
<TableHead>Paid Amount</TableHead>
|
||||
<TableHead>Status</TableHead>
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
{preauthHistory.map((row) => (
|
||||
<TableRow key={row.id}>
|
||||
<TableCell>{row.preAuthNumber}</TableCell>
|
||||
<TableCell>{row.submittedCode}</TableCell>
|
||||
<TableCell>{row.toothQuadArchSurface}</TableCell>
|
||||
<TableCell>{row.paidAmount}</TableCell>
|
||||
<TableCell>{row.status}</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="pt-4">
|
||||
<h4 className="font-medium text-gray-900">Service History</h4>
|
||||
{isServiceHistoryLoading ? (
|
||||
<p className="mt-2 text-gray-500">Loading...</p>
|
||||
) : serviceHistory.length === 0 ? (
|
||||
<p className="mt-2 text-gray-500">
|
||||
No service history on file. It is saved when MH eligibility is checked.
|
||||
No service history on file. It is saved when MH or Tufts SCO eligibility is checked.
|
||||
</p>
|
||||
) : (
|
||||
<Table className="mt-2">
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
import re
|
||||
import time
|
||||
|
||||
from selenium.webdriver.common.by import By
|
||||
|
||||
# Procedure history on the DentaQuest member page, columns in this order:
|
||||
# Date of service | Procedure code | Procedure code description | Tooth / arch / quad / surface | Place of service
|
||||
# The column headers are rendered apart from the data rows, so rows are found by their
|
||||
# content (a date cell and a "D####" code cell) rather than by header names. The claims
|
||||
# table above has a date but no procedure code cell, so it is skipped.
|
||||
_ROWS_JS = """
|
||||
const cellText = (el) => (el.innerText || el.textContent || '').replace(/\\s+/g, ' ').trim();
|
||||
const out = [];
|
||||
for (const row of document.querySelectorAll('tr, [role="row"]')) {
|
||||
let cells = Array.from(row.querySelectorAll('td, th, [role="cell"], [role="gridcell"]'));
|
||||
if (cells.length === 0) cells = Array.from(row.children);
|
||||
const texts = cells.map(cellText);
|
||||
if (texts.some(t => /^D\\d{4}$/.test(t))) out.push(texts);
|
||||
}
|
||||
return out;
|
||||
"""
|
||||
|
||||
_DATE_RE = re.compile(r"^\d{1,2}/\d{1,2}/\d{4}$")
|
||||
_CODE_RE = re.compile(r"^D\d{4}$")
|
||||
|
||||
# Fallback for one line of page text, e.g.
|
||||
# 02/12/2026 D0220 intraoral - periapical first radiographic image 27 / -- / -- / -- Office
|
||||
_LINE_RE = re.compile(
|
||||
r"^(\d{1,2}/\d{1,2}/\d{4})\s+(D\d{4})\s+(.+?)\s+(\S+\s*/\s*\S+\s*/\s*\S+\s*/\s*\S+)\s+(\S.*)$"
|
||||
)
|
||||
|
||||
|
||||
def parse_row_cells(rows):
|
||||
"""Map row cell texts to service history dicts."""
|
||||
result = []
|
||||
for cells in rows:
|
||||
code_i = next((i for i, c in enumerate(cells) if _CODE_RE.match(c)), None)
|
||||
if code_i is None:
|
||||
continue
|
||||
date = next((c for c in cells if _DATE_RE.match(c)), "")
|
||||
rest = cells[code_i + 1:] + ["", "", ""]
|
||||
result.append({
|
||||
"procedureCode": cells[code_i],
|
||||
"description": rest[0],
|
||||
"toothQuadArchSurface": rest[1],
|
||||
"placeOfService": rest[2],
|
||||
"serviceDate": date,
|
||||
})
|
||||
return result
|
||||
|
||||
|
||||
def parse_page_text(text):
|
||||
"""Service history rows from the page's text, one row per line."""
|
||||
result = []
|
||||
for line in text.splitlines():
|
||||
line = re.sub(r"\s+", " ", line).strip()
|
||||
m = _LINE_RE.match(line)
|
||||
if m:
|
||||
result.append({
|
||||
"procedureCode": m.group(2),
|
||||
"description": m.group(3),
|
||||
"toothQuadArchSurface": m.group(4),
|
||||
"placeOfService": m.group(5),
|
||||
"serviceDate": m.group(1),
|
||||
})
|
||||
return result
|
||||
|
||||
|
||||
def extract_service_history(driver, timeout=10):
|
||||
"""Read the procedure history from the DentaQuest member details page.
|
||||
|
||||
Returns [] when nothing was found — this can't tell "no history" from "the page
|
||||
was too slow", so callers must not treat it as "no history".
|
||||
"""
|
||||
deadline = time.time() + timeout
|
||||
history = []
|
||||
while True:
|
||||
try:
|
||||
history = parse_row_cells(driver.execute_script(_ROWS_JS) or [])
|
||||
if not history:
|
||||
text = driver.find_element(By.TAG_NAME, "body").get_attribute("innerText") or ""
|
||||
history = parse_page_text(text)
|
||||
if history:
|
||||
break
|
||||
except Exception as e:
|
||||
print(f"[dentaquest extract_service_history] reading page failed: {e}")
|
||||
if time.time() >= deadline:
|
||||
break
|
||||
time.sleep(1)
|
||||
|
||||
print(f"[dentaquest extract_service_history] {len(history)} row(s)")
|
||||
return history
|
||||
@@ -14,6 +14,7 @@ import base64
|
||||
|
||||
from dentaquest_browser_manager import get_browser_manager
|
||||
from dentaquest_member_details import extract_member_address
|
||||
from dentaquest_service_history import extract_service_history
|
||||
|
||||
class AutomationDentaQuestEligibilityCheck:
|
||||
def __init__(self, data):
|
||||
@@ -680,6 +681,7 @@ class AutomationDentaQuestEligibilityCheck:
|
||||
|
||||
# Address from the Member's information block (empty on the search results page)
|
||||
member_address = extract_member_address(self.driver) if detail_url else {}
|
||||
service_history = extract_service_history(self.driver) if detail_url else []
|
||||
|
||||
# Wait for page to fully load before generating PDF
|
||||
try:
|
||||
@@ -739,8 +741,9 @@ class AutomationDentaQuestEligibilityCheck:
|
||||
"patientName": patientName,
|
||||
"memberId": foundMemberId, # Member ID extracted from the page
|
||||
**member_address, # address, city, state, zipCode
|
||||
"service_history": service_history,
|
||||
}
|
||||
print(f"[DentaQuest step2] Success: {output}")
|
||||
print(f"[DentaQuest step2] Success: { {k: v for k, v in output.items() if k != 'service_history'} }")
|
||||
return output
|
||||
|
||||
except Exception as e:
|
||||
|
||||
@@ -8,6 +8,7 @@ import os
|
||||
import time
|
||||
|
||||
from selenium_DentaQuest_eligibilityCheckWorker import AutomationDentaQuestEligibilityCheck
|
||||
from tuftssco_preauth_procedures import extract_preauth_procedures
|
||||
|
||||
SUBMITTED_URL = "https://providers.dentaquest.com/pre-auth-claims/submitted/"
|
||||
|
||||
@@ -20,7 +21,8 @@ class AutomationTuftsSCOPreAuthCheck(AutomationDentaQuestEligibilityCheck):
|
||||
step1: open Pre-authorizations and Claims > Submitted, clear the date range,
|
||||
search by pre-auth / claim number.
|
||||
step2: open the pre-auth from the result row and save its detail page as a PDF
|
||||
(filed under the patient's Approval folder by the backend).
|
||||
(filed under the patient's Approval folder by the backend), and read its
|
||||
procedure lines for the patient's Preauth History.
|
||||
"""
|
||||
|
||||
def __init__(self, data):
|
||||
@@ -111,6 +113,9 @@ class AutomationTuftsSCOPreAuthCheck(AutomationDentaQuestEligibilityCheck):
|
||||
return {"status": "error", "message": f"Detail page for #{number} did not load."}
|
||||
time.sleep(2) # let the procedure table finish rendering
|
||||
|
||||
# Procedure lines for the patient's Preauth History
|
||||
procedures = extract_preauth_procedures(self.driver)
|
||||
|
||||
# 3) The page's Print button opens Chrome's print dialog, which Selenium can't drive;
|
||||
# printing to PDF through DevTools produces the same printable page.
|
||||
pdf = self.driver.execute_cdp_cmd("Page.printToPDF", {
|
||||
@@ -141,6 +146,7 @@ class AutomationTuftsSCOPreAuthCheck(AutomationDentaQuestEligibilityCheck):
|
||||
"message": f"Tufts SCO pre-auth #{number}" + (f": {status}." if status else "."),
|
||||
"preAuthNumber": number,
|
||||
"preAuthStatus": status,
|
||||
"procedures": procedures,
|
||||
"approval_pdf_path": pdf_path,
|
||||
}
|
||||
except Exception as e:
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
import re
|
||||
import time
|
||||
|
||||
from selenium.webdriver.common.by import By
|
||||
|
||||
# "Procedure information" table on a DentaQuest pre-auth detail page, columns in this order:
|
||||
# [expand] | Submitted code | Tooth / arch / quad / surface | Paid code | Total submitted |
|
||||
# Deductible amount | Member responsibility | Plan payment | Provider responsibility | Status | Processing policy
|
||||
# Rows are found by their content (a "D####" code cell followed by money cells), since
|
||||
# the column headers may be rendered apart from the data rows.
|
||||
_ROWS_JS = """
|
||||
const cellText = (el) => (el.innerText || el.textContent || '').replace(/\\s+/g, ' ').trim();
|
||||
const out = [];
|
||||
for (const row of document.querySelectorAll('tr, [role="row"]')) {
|
||||
let cells = Array.from(row.querySelectorAll('td, th, [role="cell"], [role="gridcell"]'));
|
||||
if (cells.length === 0) cells = Array.from(row.children);
|
||||
const texts = cells.map(cellText);
|
||||
if (texts.some(t => /^D\\d{4}$/.test(t))) out.push(texts);
|
||||
}
|
||||
return out;
|
||||
"""
|
||||
|
||||
_CODE_RE = re.compile(r"^D\d{4}$")
|
||||
_MONEY_RE = re.compile(r"^-?\$[\d,]+\.\d{2}$")
|
||||
|
||||
# Fallback for one line of page text, e.g.
|
||||
# D3320 29 / / LR / D3320 $1,050.00 $0.00 $0.00 $564.00 $486.00 Approved
|
||||
_LINE_RE = re.compile(
|
||||
r"^(D\d{4})\s+(.*?)\s*(D\d{4})\s+"
|
||||
r"(\$[\d,.]+)\s+(\$[\d,.]+)\s+(\$[\d,.]+)\s+(\$[\d,.]+)\s+(\$[\d,.]+)\s+(\S.*)$"
|
||||
)
|
||||
|
||||
|
||||
def parse_row_cells(rows):
|
||||
"""Map row cell texts to procedure dicts: submittedCode, toothQuadArchSurface,
|
||||
paidAmount (the "Plan payment" column), status."""
|
||||
result = []
|
||||
for cells in rows:
|
||||
code_i = next((i for i, c in enumerate(cells) if _CODE_RE.match(c)), None)
|
||||
if code_i is None:
|
||||
continue
|
||||
rest = cells[code_i + 1:]
|
||||
money = [i for i, c in enumerate(rest) if _MONEY_RE.match(c)]
|
||||
# Total submitted, deductible, member responsibility, plan payment, provider responsibility
|
||||
if len(money) < 5:
|
||||
continue
|
||||
status_i = money[4] + 1
|
||||
result.append({
|
||||
"submittedCode": cells[code_i],
|
||||
"toothQuadArchSurface": rest[0] if not _CODE_RE.match(rest[0]) else "",
|
||||
"paidAmount": rest[money[3]],
|
||||
"status": rest[status_i] if status_i < len(rest) else "",
|
||||
})
|
||||
return result
|
||||
|
||||
|
||||
def parse_page_text(text):
|
||||
"""Procedure rows from the page's text, one row per line."""
|
||||
result = []
|
||||
for line in text.splitlines():
|
||||
line = re.sub(r"\s+", " ", line).strip()
|
||||
m = _LINE_RE.match(line)
|
||||
if m:
|
||||
result.append({
|
||||
"submittedCode": m.group(1),
|
||||
"toothQuadArchSurface": m.group(2),
|
||||
"paidAmount": m.group(7),
|
||||
"status": m.group(9),
|
||||
})
|
||||
return result
|
||||
|
||||
|
||||
def extract_preauth_procedures(driver, timeout=10):
|
||||
"""Read the procedure lines from the pre-auth detail page. [] when none were found."""
|
||||
deadline = time.time() + timeout
|
||||
procedures = []
|
||||
while True:
|
||||
try:
|
||||
procedures = parse_row_cells(driver.execute_script(_ROWS_JS) or [])
|
||||
if not procedures:
|
||||
text = driver.find_element(By.TAG_NAME, "body").get_attribute("innerText") or ""
|
||||
procedures = parse_page_text(text)
|
||||
if procedures:
|
||||
break
|
||||
except Exception as e:
|
||||
print(f"[extract_preauth_procedures] reading page failed: {e}")
|
||||
if time.time() >= deadline:
|
||||
break
|
||||
time.sleep(1)
|
||||
|
||||
print(f"[extract_preauth_procedures] {len(procedures)} row(s): {procedures}")
|
||||
return procedures
|
||||
File diff suppressed because one or more lines are too long
@@ -536,6 +536,17 @@ exports.Prisma.PatientServiceHistoryScalarFieldEnum = {
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.PatientPreauthHistoryScalarFieldEnum = {
|
||||
id: 'id',
|
||||
patientId: 'patientId',
|
||||
preAuthNumber: 'preAuthNumber',
|
||||
submittedCode: 'submittedCode',
|
||||
toothQuadArchSurface: 'toothQuadArchSurface',
|
||||
paidAmount: 'paidAmount',
|
||||
status: 'status',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.LabRxTemplateScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
@@ -734,6 +745,7 @@ exports.Prisma.ModelName = {
|
||||
ProcedureTimeslot: 'ProcedureTimeslot',
|
||||
PatientConversation: 'PatientConversation',
|
||||
PatientServiceHistory: 'PatientServiceHistory',
|
||||
PatientPreauthHistory: 'PatientPreauthHistory',
|
||||
LabRxTemplate: 'LabRxTemplate',
|
||||
CommissionBatch: 'CommissionBatch',
|
||||
CommissionBatchItem: 'CommissionBatchItem',
|
||||
|
||||
+1851
-1
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "prisma-client-c7b726f8dec2423c71eb4d61965ee1e9b83a8a9a3265ebe2cf951adace1b60b4",
|
||||
"name": "prisma-client-32b9f11a0c5c7afdeeb154c1948bfe50de9e1462e57080389ada2ebd794fa5e4",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "default.js",
|
||||
|
||||
@@ -93,6 +93,7 @@ model Patient {
|
||||
conversation PatientConversation?
|
||||
cloudFolders CloudFolder[] @relation("PatientCloudFolder")
|
||||
serviceHistory PatientServiceHistory[]
|
||||
preauthHistory PatientPreauthHistory[]
|
||||
|
||||
@@index([insuranceId])
|
||||
@@index([createdAt])
|
||||
@@ -763,6 +764,24 @@ model PatientServiceHistory {
|
||||
@@map("patient_service_history")
|
||||
}
|
||||
|
||||
// Procedure lines of a pre-auth, read by Check PreAuth (Tufts SCO). Replaced per
|
||||
// pre-auth number on each check, so a patient keeps one set of lines per pre-auth.
|
||||
model PatientPreauthHistory {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
preAuthNumber String
|
||||
submittedCode String
|
||||
toothQuadArchSurface String?
|
||||
paidAmount String? // "Plan payment" as shown by the portal, e.g. $564.00
|
||||
status String?
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([patientId])
|
||||
@@map("patient_preauth_history")
|
||||
}
|
||||
|
||||
model LabRxTemplate {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "patient_preauth_history" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"patientId" INTEGER NOT NULL,
|
||||
"preAuthNumber" TEXT NOT NULL,
|
||||
"submittedCode" TEXT NOT NULL,
|
||||
"toothQuadArchSurface" TEXT,
|
||||
"paidAmount" TEXT,
|
||||
"status" TEXT,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "patient_preauth_history_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "patient_preauth_history_patientId_idx" ON "patient_preauth_history"("patientId");
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "patient_preauth_history" ADD CONSTRAINT "patient_preauth_history_patientId_fkey" FOREIGN KEY ("patientId") REFERENCES "Patient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
@@ -93,6 +93,7 @@ model Patient {
|
||||
conversation PatientConversation?
|
||||
cloudFolders CloudFolder[] @relation("PatientCloudFolder")
|
||||
serviceHistory PatientServiceHistory[]
|
||||
preauthHistory PatientPreauthHistory[]
|
||||
|
||||
@@index([insuranceId])
|
||||
@@index([createdAt])
|
||||
@@ -764,6 +765,24 @@ model PatientServiceHistory {
|
||||
@@map("patient_service_history")
|
||||
}
|
||||
|
||||
// Procedure lines of a pre-auth, read by Check PreAuth (Tufts SCO). Replaced per
|
||||
// pre-auth number on each check, so a patient keeps one set of lines per pre-auth.
|
||||
model PatientPreauthHistory {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
preAuthNumber String
|
||||
submittedCode String
|
||||
toothQuadArchSurface String?
|
||||
paidAmount String? // "Plan payment" as shown by the portal, e.g. $564.00
|
||||
status String?
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([patientId])
|
||||
@@map("patient_preauth_history")
|
||||
}
|
||||
|
||||
model LabRxTemplate {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"generatorVersion": "1.0.0",
|
||||
"generatedAt": "2026-11-06T03:35:54.009Z",
|
||||
"generatedAt": "2026-11-09T16:51:33.389Z",
|
||||
"outputPath": "/home/ee/Desktop/DentalManagement09/packages/db/shared",
|
||||
"files": [
|
||||
"schemas/enums/TransactionIsolationLevel.schema.ts",
|
||||
@@ -39,6 +39,7 @@
|
||||
"schemas/enums/ProcedureTimeslotScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/PatientConversationScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/PatientServiceHistoryScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/PatientPreauthHistoryScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/LabRxTemplateScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/CommissionBatchScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/CommissionBatchItemScalarFieldEnum.schema.ts",
|
||||
@@ -232,6 +233,11 @@
|
||||
"schemas/objects/PatientServiceHistoryWhereUniqueInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryOrderByWithAggregationInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryScalarWhereWithAggregatesInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryWhereInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryOrderByWithRelationInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryWhereUniqueInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryOrderByWithAggregationInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryScalarWhereWithAggregatesInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateWhereInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateOrderByWithRelationInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateWhereUniqueInput.schema.ts",
|
||||
@@ -490,6 +496,13 @@
|
||||
"schemas/objects/PatientServiceHistoryCreateManyInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryUpdateManyMutationInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryUncheckedUpdateManyInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCreateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUncheckedCreateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUpdateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUncheckedUpdateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCreateManyInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUpdateManyMutationInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUncheckedUpdateManyInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateCreateInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateUncheckedCreateInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateUpdateInput.schema.ts",
|
||||
@@ -581,11 +594,13 @@
|
||||
"schemas/objects/PatientDocumentListRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientConversationNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryListRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryListRelationFilter.schema.ts",
|
||||
"schemas/objects/SortOrderInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/PdfGroupOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientAvgOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientMaxOrderByAggregateInput.schema.ts",
|
||||
@@ -827,6 +842,11 @@
|
||||
"schemas/objects/PatientServiceHistoryMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistorySumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryAvgOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistorySumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateAvgOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateMaxOrderByAggregateInput.schema.ts",
|
||||
@@ -960,6 +980,7 @@
|
||||
"schemas/objects/PatientConversationCreateNestedOneWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/ClaimUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
@@ -970,6 +991,7 @@
|
||||
"schemas/objects/PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/NullableDateTimeFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/NullableStringFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/NullableIntFieldUpdateOperationsInput.schema.ts",
|
||||
@@ -986,6 +1008,7 @@
|
||||
"schemas/objects/PatientConversationUpdateOneWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/ClaimUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
@@ -996,6 +1019,7 @@
|
||||
"schemas/objects/PatientConversationUncheckedUpdateOneWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/StaffCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
@@ -1196,6 +1220,8 @@
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutPatientConversationsNestedInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedOneWithoutServiceHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateOneRequiredWithoutServiceHistoryNestedInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedOneWithoutPreauthHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateOneRequiredWithoutPreauthHistoryNestedInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutLabRxTemplatesInput.schema.ts",
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutLabRxTemplatesNestedInput.schema.ts",
|
||||
"schemas/objects/NpiProviderCreateNestedOneWithoutCommissionBatchesInput.schema.ts",
|
||||
@@ -1489,6 +1515,10 @@
|
||||
"schemas/objects/PatientServiceHistoryUncheckedCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryCreateOrConnectWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryCreateManyPatientInputEnvelope.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUncheckedCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCreateOrConnectWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCreateManyPatientInputEnvelope.schema.ts",
|
||||
"schemas/objects/UserUpsertWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutPatientsInput.schema.ts",
|
||||
@@ -1528,6 +1558,10 @@
|
||||
"schemas/objects/PatientServiceHistoryUpdateWithWhereUniqueWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryUpdateManyWithWhereWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryScalarWhereInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryScalarWhereInput.schema.ts",
|
||||
"schemas/objects/PatientCreateWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/PatientCreateOrConnectWithoutAppointmentsInput.schema.ts",
|
||||
@@ -2033,6 +2067,13 @@
|
||||
"schemas/objects/PatientUpdateToOneWithWhereWithoutServiceHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateWithoutServiceHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateWithoutServiceHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientCreateWithoutPreauthHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateWithoutPreauthHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientCreateOrConnectWithoutPreauthHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUpsertWithoutPreauthHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateToOneWithWhereWithoutPreauthHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateWithoutPreauthHistoryInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateWithoutPreauthHistoryInput.schema.ts",
|
||||
"schemas/objects/UserCreateWithoutLabRxTemplatesInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateWithoutLabRxTemplatesInput.schema.ts",
|
||||
"schemas/objects/UserCreateOrConnectWithoutLabRxTemplatesInput.schema.ts",
|
||||
@@ -2152,6 +2193,7 @@
|
||||
"schemas/objects/PatientDocumentCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateManyWithoutPatientInput.schema.ts",
|
||||
@@ -2179,6 +2221,9 @@
|
||||
"schemas/objects/PatientServiceHistoryUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryUncheckedUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryUncheckedUpdateManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUncheckedUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureCreateManyAppointmentInput.schema.ts",
|
||||
"schemas/objects/ClaimCreateManyAppointmentInput.schema.ts",
|
||||
"schemas/objects/AppointmentFileCreateManyAppointmentInput.schema.ts",
|
||||
@@ -2433,6 +2478,11 @@
|
||||
"schemas/objects/PatientServiceHistorySumAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryMinAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryMaxAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryCountAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryAvgAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistorySumAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryMinAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryMaxAggregateInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateCountAggregateInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateAvgAggregateInput.schema.ts",
|
||||
"schemas/objects/LabRxTemplateSumAggregateInput.schema.ts",
|
||||
@@ -2493,6 +2543,7 @@
|
||||
"schemas/objects/PatientCountOutputTypeCountDocumentsArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeCountCloudFoldersArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeCountServiceHistoryArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeCountPreauthHistoryArgs.schema.ts",
|
||||
"schemas/objects/AppointmentCountOutputTypeArgs.schema.ts",
|
||||
"schemas/objects/AppointmentCountOutputTypeCountProceduresArgs.schema.ts",
|
||||
"schemas/objects/AppointmentCountOutputTypeCountClaimsArgs.schema.ts",
|
||||
@@ -2558,6 +2609,7 @@
|
||||
"schemas/objects/ProcedureTimeslotSelect.schema.ts",
|
||||
"schemas/objects/PatientConversationSelect.schema.ts",
|
||||
"schemas/objects/PatientServiceHistorySelect.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistorySelect.schema.ts",
|
||||
"schemas/objects/LabRxTemplateSelect.schema.ts",
|
||||
"schemas/objects/CommissionBatchSelect.schema.ts",
|
||||
"schemas/objects/CommissionBatchItemSelect.schema.ts",
|
||||
@@ -2596,6 +2648,7 @@
|
||||
"schemas/objects/ProcedureTimeslotArgs.schema.ts",
|
||||
"schemas/objects/PatientConversationArgs.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryArgs.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryArgs.schema.ts",
|
||||
"schemas/objects/LabRxTemplateArgs.schema.ts",
|
||||
"schemas/objects/CommissionBatchArgs.schema.ts",
|
||||
"schemas/objects/CommissionBatchItemArgs.schema.ts",
|
||||
@@ -2633,6 +2686,7 @@
|
||||
"schemas/objects/ProcedureTimeslotInclude.schema.ts",
|
||||
"schemas/objects/PatientConversationInclude.schema.ts",
|
||||
"schemas/objects/PatientServiceHistoryInclude.schema.ts",
|
||||
"schemas/objects/PatientPreauthHistoryInclude.schema.ts",
|
||||
"schemas/objects/LabRxTemplateInclude.schema.ts",
|
||||
"schemas/objects/CommissionBatchInclude.schema.ts",
|
||||
"schemas/objects/CommissionBatchItemInclude.schema.ts",
|
||||
@@ -3215,6 +3269,23 @@
|
||||
"schemas/upsertOnePatientServiceHistory.schema.ts",
|
||||
"schemas/aggregatePatientServiceHistory.schema.ts",
|
||||
"schemas/groupByPatientServiceHistory.schema.ts",
|
||||
"schemas/findUniquePatientPreauthHistory.schema.ts",
|
||||
"schemas/findUniqueOrThrowPatientPreauthHistory.schema.ts",
|
||||
"schemas/findFirstPatientPreauthHistory.schema.ts",
|
||||
"schemas/findFirstOrThrowPatientPreauthHistory.schema.ts",
|
||||
"schemas/findManyPatientPreauthHistory.schema.ts",
|
||||
"schemas/countPatientPreauthHistory.schema.ts",
|
||||
"schemas/createOnePatientPreauthHistory.schema.ts",
|
||||
"schemas/createManyPatientPreauthHistory.schema.ts",
|
||||
"schemas/createManyAndReturnPatientPreauthHistory.schema.ts",
|
||||
"schemas/deleteOnePatientPreauthHistory.schema.ts",
|
||||
"schemas/deleteManyPatientPreauthHistory.schema.ts",
|
||||
"schemas/updateOnePatientPreauthHistory.schema.ts",
|
||||
"schemas/updateManyPatientPreauthHistory.schema.ts",
|
||||
"schemas/updateManyAndReturnPatientPreauthHistory.schema.ts",
|
||||
"schemas/upsertOnePatientPreauthHistory.schema.ts",
|
||||
"schemas/aggregatePatientPreauthHistory.schema.ts",
|
||||
"schemas/groupByPatientPreauthHistory.schema.ts",
|
||||
"schemas/findUniqueLabRxTemplate.schema.ts",
|
||||
"schemas/findUniqueOrThrowLabRxTemplate.schema.ts",
|
||||
"schemas/findFirstLabRxTemplate.schema.ts",
|
||||
@@ -3725,6 +3796,19 @@
|
||||
"schemas/results/PatientServiceHistoryAggregateResult.schema.ts",
|
||||
"schemas/results/PatientServiceHistoryGroupByResult.schema.ts",
|
||||
"schemas/results/PatientServiceHistoryCountResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryFindUniqueResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryFindFirstResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryFindManyResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryCreateResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryCreateManyResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryUpdateResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryUpdateManyResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryUpsertResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryDeleteResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryDeleteManyResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryAggregateResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryGroupByResult.schema.ts",
|
||||
"schemas/results/PatientPreauthHistoryCountResult.schema.ts",
|
||||
"schemas/results/LabRxTemplateFindUniqueResult.schema.ts",
|
||||
"schemas/results/LabRxTemplateFindFirstResult.schema.ts",
|
||||
"schemas/results/LabRxTemplateFindManyResult.schema.ts",
|
||||
@@ -3813,6 +3897,7 @@
|
||||
"schemas/variants/pure/ProcedureTimeslot.pure.ts",
|
||||
"schemas/variants/pure/PatientConversation.pure.ts",
|
||||
"schemas/variants/pure/PatientServiceHistory.pure.ts",
|
||||
"schemas/variants/pure/PatientPreauthHistory.pure.ts",
|
||||
"schemas/variants/pure/LabRxTemplate.pure.ts",
|
||||
"schemas/variants/pure/CommissionBatch.pure.ts",
|
||||
"schemas/variants/pure/CommissionBatchItem.pure.ts",
|
||||
@@ -3852,6 +3937,7 @@
|
||||
"schemas/variants/input/ProcedureTimeslot.input.ts",
|
||||
"schemas/variants/input/PatientConversation.input.ts",
|
||||
"schemas/variants/input/PatientServiceHistory.input.ts",
|
||||
"schemas/variants/input/PatientPreauthHistory.input.ts",
|
||||
"schemas/variants/input/LabRxTemplate.input.ts",
|
||||
"schemas/variants/input/CommissionBatch.input.ts",
|
||||
"schemas/variants/input/CommissionBatchItem.input.ts",
|
||||
@@ -3891,6 +3977,7 @@
|
||||
"schemas/variants/result/ProcedureTimeslot.result.ts",
|
||||
"schemas/variants/result/PatientConversation.result.ts",
|
||||
"schemas/variants/result/PatientServiceHistory.result.ts",
|
||||
"schemas/variants/result/PatientPreauthHistory.result.ts",
|
||||
"schemas/variants/result/LabRxTemplate.result.ts",
|
||||
"schemas/variants/result/CommissionBatch.result.ts",
|
||||
"schemas/variants/result/CommissionBatchItem.result.ts",
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistoryOrderByWithRelationInputObjectSchema as PatientPreauthHistoryOrderByWithRelationInputObjectSchema } from './objects/PatientPreauthHistoryOrderByWithRelationInput.schema';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './objects/PatientPreauthHistoryWhereInput.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './objects/PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryCountAggregateInputObjectSchema as PatientPreauthHistoryCountAggregateInputObjectSchema } from './objects/PatientPreauthHistoryCountAggregateInput.schema';
|
||||
import { PatientPreauthHistoryMinAggregateInputObjectSchema as PatientPreauthHistoryMinAggregateInputObjectSchema } from './objects/PatientPreauthHistoryMinAggregateInput.schema';
|
||||
import { PatientPreauthHistoryMaxAggregateInputObjectSchema as PatientPreauthHistoryMaxAggregateInputObjectSchema } from './objects/PatientPreauthHistoryMaxAggregateInput.schema';
|
||||
import { PatientPreauthHistoryAvgAggregateInputObjectSchema as PatientPreauthHistoryAvgAggregateInputObjectSchema } from './objects/PatientPreauthHistoryAvgAggregateInput.schema';
|
||||
import { PatientPreauthHistorySumAggregateInputObjectSchema as PatientPreauthHistorySumAggregateInputObjectSchema } from './objects/PatientPreauthHistorySumAggregateInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryAggregateSchema: z.ZodType<Prisma.PatientPreauthHistoryAggregateArgs> = z.object({ orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), PatientPreauthHistoryCountAggregateInputObjectSchema ]).optional(), _min: PatientPreauthHistoryMinAggregateInputObjectSchema.optional(), _max: PatientPreauthHistoryMaxAggregateInputObjectSchema.optional(), _avg: PatientPreauthHistoryAvgAggregateInputObjectSchema.optional(), _sum: PatientPreauthHistorySumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryAggregateArgs>;
|
||||
|
||||
export const PatientPreauthHistoryAggregateZodSchema = z.object({ orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), PatientPreauthHistoryCountAggregateInputObjectSchema ]).optional(), _min: PatientPreauthHistoryMinAggregateInputObjectSchema.optional(), _max: PatientPreauthHistoryMaxAggregateInputObjectSchema.optional(), _avg: PatientPreauthHistoryAvgAggregateInputObjectSchema.optional(), _sum: PatientPreauthHistorySumAggregateInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistoryOrderByWithRelationInputObjectSchema as PatientPreauthHistoryOrderByWithRelationInputObjectSchema } from './objects/PatientPreauthHistoryOrderByWithRelationInput.schema';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './objects/PatientPreauthHistoryWhereInput.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './objects/PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryCountAggregateInputObjectSchema as PatientPreauthHistoryCountAggregateInputObjectSchema } from './objects/PatientPreauthHistoryCountAggregateInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryCountSchema: z.ZodType<Prisma.PatientPreauthHistoryCountArgs> = z.object({ orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), PatientPreauthHistoryCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCountArgs>;
|
||||
|
||||
export const PatientPreauthHistoryCountZodSchema = z.object({ orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), PatientPreauthHistoryCountAggregateInputObjectSchema ]).optional() }).strict();
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistorySelectObjectSchema as PatientPreauthHistorySelectObjectSchema } from './objects/PatientPreauthHistorySelect.schema';
|
||||
import { PatientPreauthHistoryCreateManyInputObjectSchema as PatientPreauthHistoryCreateManyInputObjectSchema } from './objects/PatientPreauthHistoryCreateManyInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryCreateManyAndReturnSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateManyAndReturnArgs> = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), data: z.union([ PatientPreauthHistoryCreateManyInputObjectSchema, z.array(PatientPreauthHistoryCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateManyAndReturnArgs>;
|
||||
|
||||
export const PatientPreauthHistoryCreateManyAndReturnZodSchema = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), data: z.union([ PatientPreauthHistoryCreateManyInputObjectSchema, z.array(PatientPreauthHistoryCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistoryCreateManyInputObjectSchema as PatientPreauthHistoryCreateManyInputObjectSchema } from './objects/PatientPreauthHistoryCreateManyInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryCreateManySchema: z.ZodType<Prisma.PatientPreauthHistoryCreateManyArgs> = z.object({ data: z.union([ PatientPreauthHistoryCreateManyInputObjectSchema, z.array(PatientPreauthHistoryCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateManyArgs>;
|
||||
|
||||
export const PatientPreauthHistoryCreateManyZodSchema = z.object({ data: z.union([ PatientPreauthHistoryCreateManyInputObjectSchema, z.array(PatientPreauthHistoryCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistorySelectObjectSchema as PatientPreauthHistorySelectObjectSchema } from './objects/PatientPreauthHistorySelect.schema';
|
||||
import { PatientPreauthHistoryIncludeObjectSchema as PatientPreauthHistoryIncludeObjectSchema } from './objects/PatientPreauthHistoryInclude.schema';
|
||||
import { PatientPreauthHistoryCreateInputObjectSchema as PatientPreauthHistoryCreateInputObjectSchema } from './objects/PatientPreauthHistoryCreateInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedCreateInputObjectSchema as PatientPreauthHistoryUncheckedCreateInputObjectSchema } from './objects/PatientPreauthHistoryUncheckedCreateInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryCreateOneSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateArgs> = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), include: PatientPreauthHistoryIncludeObjectSchema.optional(), data: z.union([PatientPreauthHistoryCreateInputObjectSchema, PatientPreauthHistoryUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateArgs>;
|
||||
|
||||
export const PatientPreauthHistoryCreateOneZodSchema = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), include: PatientPreauthHistoryIncludeObjectSchema.optional(), data: z.union([PatientPreauthHistoryCreateInputObjectSchema, PatientPreauthHistoryUncheckedCreateInputObjectSchema]) }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './objects/PatientPreauthHistoryWhereInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryDeleteManySchema: z.ZodType<Prisma.PatientPreauthHistoryDeleteManyArgs> = z.object({ where: PatientPreauthHistoryWhereInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryDeleteManyArgs>;
|
||||
|
||||
export const PatientPreauthHistoryDeleteManyZodSchema = z.object({ where: PatientPreauthHistoryWhereInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistorySelectObjectSchema as PatientPreauthHistorySelectObjectSchema } from './objects/PatientPreauthHistorySelect.schema';
|
||||
import { PatientPreauthHistoryIncludeObjectSchema as PatientPreauthHistoryIncludeObjectSchema } from './objects/PatientPreauthHistoryInclude.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './objects/PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryDeleteOneSchema: z.ZodType<Prisma.PatientPreauthHistoryDeleteArgs> = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), include: PatientPreauthHistoryIncludeObjectSchema.optional(), where: PatientPreauthHistoryWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryDeleteArgs>;
|
||||
|
||||
export const PatientPreauthHistoryDeleteOneZodSchema = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), include: PatientPreauthHistoryIncludeObjectSchema.optional(), where: PatientPreauthHistoryWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const PatientPreauthHistoryScalarFieldEnumSchema = z.enum(['id', 'patientId', 'preAuthNumber', 'submittedCode', 'toothQuadArchSurface', 'paidAmount', 'status', 'createdAt'])
|
||||
|
||||
export type PatientPreauthHistoryScalarFieldEnum = z.infer<typeof PatientPreauthHistoryScalarFieldEnumSchema>;
|
||||
@@ -47,6 +47,7 @@ export const PatientFindFirstOrThrowSelectSchema: z.ZodType<Prisma.PatientSelect
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
serviceHistory: z.boolean().optional(),
|
||||
preauthHistory: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -88,6 +89,7 @@ export const PatientFindFirstOrThrowSelectZodSchema = z.object({
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
serviceHistory: z.boolean().optional(),
|
||||
preauthHistory: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistoryIncludeObjectSchema as PatientPreauthHistoryIncludeObjectSchema } from './objects/PatientPreauthHistoryInclude.schema';
|
||||
import { PatientPreauthHistoryOrderByWithRelationInputObjectSchema as PatientPreauthHistoryOrderByWithRelationInputObjectSchema } from './objects/PatientPreauthHistoryOrderByWithRelationInput.schema';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './objects/PatientPreauthHistoryWhereInput.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './objects/PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryScalarFieldEnumSchema } from './enums/PatientPreauthHistoryScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const PatientPreauthHistoryFindFirstOrThrowSelectSchema: z.ZodType<Prisma.PatientPreauthHistorySelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
preAuthNumber: z.boolean().optional(),
|
||||
submittedCode: z.boolean().optional(),
|
||||
toothQuadArchSurface: z.boolean().optional(),
|
||||
paidAmount: z.boolean().optional(),
|
||||
status: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistorySelect>;
|
||||
|
||||
export const PatientPreauthHistoryFindFirstOrThrowSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
preAuthNumber: z.boolean().optional(),
|
||||
submittedCode: z.boolean().optional(),
|
||||
toothQuadArchSurface: z.boolean().optional(),
|
||||
paidAmount: z.boolean().optional(),
|
||||
status: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const PatientPreauthHistoryFindFirstOrThrowSchema: z.ZodType<Prisma.PatientPreauthHistoryFindFirstOrThrowArgs> = z.object({ select: PatientPreauthHistoryFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => PatientPreauthHistoryIncludeObjectSchema.optional()), orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientPreauthHistoryScalarFieldEnumSchema, PatientPreauthHistoryScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryFindFirstOrThrowArgs>;
|
||||
|
||||
export const PatientPreauthHistoryFindFirstOrThrowZodSchema = z.object({ select: PatientPreauthHistoryFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => PatientPreauthHistoryIncludeObjectSchema.optional()), orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientPreauthHistoryScalarFieldEnumSchema, PatientPreauthHistoryScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -47,6 +47,7 @@ export const PatientFindFirstSelectSchema: z.ZodType<Prisma.PatientSelect> = z.o
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
serviceHistory: z.boolean().optional(),
|
||||
preauthHistory: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -88,6 +89,7 @@ export const PatientFindFirstSelectZodSchema = z.object({
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
serviceHistory: z.boolean().optional(),
|
||||
preauthHistory: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistoryIncludeObjectSchema as PatientPreauthHistoryIncludeObjectSchema } from './objects/PatientPreauthHistoryInclude.schema';
|
||||
import { PatientPreauthHistoryOrderByWithRelationInputObjectSchema as PatientPreauthHistoryOrderByWithRelationInputObjectSchema } from './objects/PatientPreauthHistoryOrderByWithRelationInput.schema';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './objects/PatientPreauthHistoryWhereInput.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './objects/PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryScalarFieldEnumSchema } from './enums/PatientPreauthHistoryScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const PatientPreauthHistoryFindFirstSelectSchema: z.ZodType<Prisma.PatientPreauthHistorySelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
preAuthNumber: z.boolean().optional(),
|
||||
submittedCode: z.boolean().optional(),
|
||||
toothQuadArchSurface: z.boolean().optional(),
|
||||
paidAmount: z.boolean().optional(),
|
||||
status: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistorySelect>;
|
||||
|
||||
export const PatientPreauthHistoryFindFirstSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
preAuthNumber: z.boolean().optional(),
|
||||
submittedCode: z.boolean().optional(),
|
||||
toothQuadArchSurface: z.boolean().optional(),
|
||||
paidAmount: z.boolean().optional(),
|
||||
status: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const PatientPreauthHistoryFindFirstSchema: z.ZodType<Prisma.PatientPreauthHistoryFindFirstArgs> = z.object({ select: PatientPreauthHistoryFindFirstSelectSchema.optional(), include: z.lazy(() => PatientPreauthHistoryIncludeObjectSchema.optional()), orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientPreauthHistoryScalarFieldEnumSchema, PatientPreauthHistoryScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryFindFirstArgs>;
|
||||
|
||||
export const PatientPreauthHistoryFindFirstZodSchema = z.object({ select: PatientPreauthHistoryFindFirstSelectSchema.optional(), include: z.lazy(() => PatientPreauthHistoryIncludeObjectSchema.optional()), orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientPreauthHistoryScalarFieldEnumSchema, PatientPreauthHistoryScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -47,6 +47,7 @@ export const PatientFindManySelectSchema: z.ZodType<Prisma.PatientSelect> = z.ob
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
serviceHistory: z.boolean().optional(),
|
||||
preauthHistory: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -88,6 +89,7 @@ export const PatientFindManySelectZodSchema = z.object({
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
serviceHistory: z.boolean().optional(),
|
||||
preauthHistory: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistoryIncludeObjectSchema as PatientPreauthHistoryIncludeObjectSchema } from './objects/PatientPreauthHistoryInclude.schema';
|
||||
import { PatientPreauthHistoryOrderByWithRelationInputObjectSchema as PatientPreauthHistoryOrderByWithRelationInputObjectSchema } from './objects/PatientPreauthHistoryOrderByWithRelationInput.schema';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './objects/PatientPreauthHistoryWhereInput.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './objects/PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryScalarFieldEnumSchema } from './enums/PatientPreauthHistoryScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const PatientPreauthHistoryFindManySelectSchema: z.ZodType<Prisma.PatientPreauthHistorySelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
preAuthNumber: z.boolean().optional(),
|
||||
submittedCode: z.boolean().optional(),
|
||||
toothQuadArchSurface: z.boolean().optional(),
|
||||
paidAmount: z.boolean().optional(),
|
||||
status: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistorySelect>;
|
||||
|
||||
export const PatientPreauthHistoryFindManySelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
preAuthNumber: z.boolean().optional(),
|
||||
submittedCode: z.boolean().optional(),
|
||||
toothQuadArchSurface: z.boolean().optional(),
|
||||
paidAmount: z.boolean().optional(),
|
||||
status: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const PatientPreauthHistoryFindManySchema: z.ZodType<Prisma.PatientPreauthHistoryFindManyArgs> = z.object({ select: PatientPreauthHistoryFindManySelectSchema.optional(), include: z.lazy(() => PatientPreauthHistoryIncludeObjectSchema.optional()), orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientPreauthHistoryScalarFieldEnumSchema, PatientPreauthHistoryScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryFindManyArgs>;
|
||||
|
||||
export const PatientPreauthHistoryFindManyZodSchema = z.object({ select: PatientPreauthHistoryFindManySelectSchema.optional(), include: z.lazy(() => PatientPreauthHistoryIncludeObjectSchema.optional()), orderBy: z.union([PatientPreauthHistoryOrderByWithRelationInputObjectSchema, PatientPreauthHistoryOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientPreauthHistoryWhereInputObjectSchema.optional(), cursor: PatientPreauthHistoryWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientPreauthHistoryScalarFieldEnumSchema, PatientPreauthHistoryScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistorySelectObjectSchema as PatientPreauthHistorySelectObjectSchema } from './objects/PatientPreauthHistorySelect.schema';
|
||||
import { PatientPreauthHistoryIncludeObjectSchema as PatientPreauthHistoryIncludeObjectSchema } from './objects/PatientPreauthHistoryInclude.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './objects/PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryFindUniqueOrThrowSchema: z.ZodType<Prisma.PatientPreauthHistoryFindUniqueOrThrowArgs> = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), include: PatientPreauthHistoryIncludeObjectSchema.optional(), where: PatientPreauthHistoryWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryFindUniqueOrThrowArgs>;
|
||||
|
||||
export const PatientPreauthHistoryFindUniqueOrThrowZodSchema = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), include: PatientPreauthHistoryIncludeObjectSchema.optional(), where: PatientPreauthHistoryWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistorySelectObjectSchema as PatientPreauthHistorySelectObjectSchema } from './objects/PatientPreauthHistorySelect.schema';
|
||||
import { PatientPreauthHistoryIncludeObjectSchema as PatientPreauthHistoryIncludeObjectSchema } from './objects/PatientPreauthHistoryInclude.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './objects/PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryFindUniqueSchema: z.ZodType<Prisma.PatientPreauthHistoryFindUniqueArgs> = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), include: PatientPreauthHistoryIncludeObjectSchema.optional(), where: PatientPreauthHistoryWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryFindUniqueArgs>;
|
||||
|
||||
export const PatientPreauthHistoryFindUniqueZodSchema = z.object({ select: PatientPreauthHistorySelectObjectSchema.optional(), include: PatientPreauthHistoryIncludeObjectSchema.optional(), where: PatientPreauthHistoryWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,15 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './objects/PatientPreauthHistoryWhereInput.schema';
|
||||
import { PatientPreauthHistoryOrderByWithAggregationInputObjectSchema as PatientPreauthHistoryOrderByWithAggregationInputObjectSchema } from './objects/PatientPreauthHistoryOrderByWithAggregationInput.schema';
|
||||
import { PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema as PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema } from './objects/PatientPreauthHistoryScalarWhereWithAggregatesInput.schema';
|
||||
import { PatientPreauthHistoryScalarFieldEnumSchema } from './enums/PatientPreauthHistoryScalarFieldEnum.schema';
|
||||
import { PatientPreauthHistoryCountAggregateInputObjectSchema as PatientPreauthHistoryCountAggregateInputObjectSchema } from './objects/PatientPreauthHistoryCountAggregateInput.schema';
|
||||
import { PatientPreauthHistoryMinAggregateInputObjectSchema as PatientPreauthHistoryMinAggregateInputObjectSchema } from './objects/PatientPreauthHistoryMinAggregateInput.schema';
|
||||
import { PatientPreauthHistoryMaxAggregateInputObjectSchema as PatientPreauthHistoryMaxAggregateInputObjectSchema } from './objects/PatientPreauthHistoryMaxAggregateInput.schema';
|
||||
import { PatientPreauthHistoryAvgAggregateInputObjectSchema as PatientPreauthHistoryAvgAggregateInputObjectSchema } from './objects/PatientPreauthHistoryAvgAggregateInput.schema';
|
||||
import { PatientPreauthHistorySumAggregateInputObjectSchema as PatientPreauthHistorySumAggregateInputObjectSchema } from './objects/PatientPreauthHistorySumAggregateInput.schema';
|
||||
|
||||
export const PatientPreauthHistoryGroupBySchema: z.ZodType<Prisma.PatientPreauthHistoryGroupByArgs> = z.object({ where: PatientPreauthHistoryWhereInputObjectSchema.optional(), orderBy: z.union([PatientPreauthHistoryOrderByWithAggregationInputObjectSchema, PatientPreauthHistoryOrderByWithAggregationInputObjectSchema.array()]).optional(), having: PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(PatientPreauthHistoryScalarFieldEnumSchema), _count: z.union([ z.literal(true), PatientPreauthHistoryCountAggregateInputObjectSchema ]).optional(), _min: PatientPreauthHistoryMinAggregateInputObjectSchema.optional(), _max: PatientPreauthHistoryMaxAggregateInputObjectSchema.optional(), _avg: PatientPreauthHistoryAvgAggregateInputObjectSchema.optional(), _sum: PatientPreauthHistorySumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.PatientPreauthHistoryGroupByArgs>;
|
||||
|
||||
export const PatientPreauthHistoryGroupByZodSchema = z.object({ where: PatientPreauthHistoryWhereInputObjectSchema.optional(), orderBy: z.union([PatientPreauthHistoryOrderByWithAggregationInputObjectSchema, PatientPreauthHistoryOrderByWithAggregationInputObjectSchema.array()]).optional(), having: PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(PatientPreauthHistoryScalarFieldEnumSchema), _count: z.union([ z.literal(true), PatientPreauthHistoryCountAggregateInputObjectSchema ]).optional(), _min: PatientPreauthHistoryMinAggregateInputObjectSchema.optional(), _max: PatientPreauthHistoryMaxAggregateInputObjectSchema.optional(), _avg: PatientPreauthHistoryAvgAggregateInputObjectSchema.optional(), _sum: PatientPreauthHistorySumAggregateInputObjectSchema.optional() }).strict();
|
||||
@@ -33,6 +33,7 @@ export * from './enums/InsuranceContactScalarFieldEnum.schema'
|
||||
export * from './enums/ProcedureTimeslotScalarFieldEnum.schema'
|
||||
export * from './enums/PatientConversationScalarFieldEnum.schema'
|
||||
export * from './enums/PatientServiceHistoryScalarFieldEnum.schema'
|
||||
export * from './enums/PatientPreauthHistoryScalarFieldEnum.schema'
|
||||
export * from './enums/LabRxTemplateScalarFieldEnum.schema'
|
||||
export * from './enums/CommissionBatchScalarFieldEnum.schema'
|
||||
export * from './enums/CommissionBatchItemScalarFieldEnum.schema'
|
||||
@@ -634,6 +635,23 @@ export * from './updateManyAndReturnPatientServiceHistory.schema'
|
||||
export * from './upsertOnePatientServiceHistory.schema'
|
||||
export * from './aggregatePatientServiceHistory.schema'
|
||||
export * from './groupByPatientServiceHistory.schema'
|
||||
export * from './findUniquePatientPreauthHistory.schema'
|
||||
export * from './findUniqueOrThrowPatientPreauthHistory.schema'
|
||||
export * from './findFirstPatientPreauthHistory.schema'
|
||||
export * from './findFirstOrThrowPatientPreauthHistory.schema'
|
||||
export * from './findManyPatientPreauthHistory.schema'
|
||||
export * from './countPatientPreauthHistory.schema'
|
||||
export * from './createOnePatientPreauthHistory.schema'
|
||||
export * from './createManyPatientPreauthHistory.schema'
|
||||
export * from './createManyAndReturnPatientPreauthHistory.schema'
|
||||
export * from './deleteOnePatientPreauthHistory.schema'
|
||||
export * from './deleteManyPatientPreauthHistory.schema'
|
||||
export * from './updateOnePatientPreauthHistory.schema'
|
||||
export * from './updateManyPatientPreauthHistory.schema'
|
||||
export * from './updateManyAndReturnPatientPreauthHistory.schema'
|
||||
export * from './upsertOnePatientPreauthHistory.schema'
|
||||
export * from './aggregatePatientPreauthHistory.schema'
|
||||
export * from './groupByPatientPreauthHistory.schema'
|
||||
export * from './findUniqueLabRxTemplate.schema'
|
||||
export * from './findUniqueOrThrowLabRxTemplate.schema'
|
||||
export * from './findFirstLabRxTemplate.schema'
|
||||
@@ -1144,6 +1162,19 @@ export * from './results/PatientServiceHistoryDeleteManyResult.schema'
|
||||
export * from './results/PatientServiceHistoryAggregateResult.schema'
|
||||
export * from './results/PatientServiceHistoryGroupByResult.schema'
|
||||
export * from './results/PatientServiceHistoryCountResult.schema'
|
||||
export * from './results/PatientPreauthHistoryFindUniqueResult.schema'
|
||||
export * from './results/PatientPreauthHistoryFindFirstResult.schema'
|
||||
export * from './results/PatientPreauthHistoryFindManyResult.schema'
|
||||
export * from './results/PatientPreauthHistoryCreateResult.schema'
|
||||
export * from './results/PatientPreauthHistoryCreateManyResult.schema'
|
||||
export * from './results/PatientPreauthHistoryUpdateResult.schema'
|
||||
export * from './results/PatientPreauthHistoryUpdateManyResult.schema'
|
||||
export * from './results/PatientPreauthHistoryUpsertResult.schema'
|
||||
export * from './results/PatientPreauthHistoryDeleteResult.schema'
|
||||
export * from './results/PatientPreauthHistoryDeleteManyResult.schema'
|
||||
export * from './results/PatientPreauthHistoryAggregateResult.schema'
|
||||
export * from './results/PatientPreauthHistoryGroupByResult.schema'
|
||||
export * from './results/PatientPreauthHistoryCountResult.schema'
|
||||
export * from './results/LabRxTemplateFindUniqueResult.schema'
|
||||
export * from './results/LabRxTemplateFindFirstResult.schema'
|
||||
export * from './results/LabRxTemplateFindManyResult.schema'
|
||||
@@ -1232,6 +1263,7 @@ export * from './variants/pure/InsuranceContact.pure'
|
||||
export * from './variants/pure/ProcedureTimeslot.pure'
|
||||
export * from './variants/pure/PatientConversation.pure'
|
||||
export * from './variants/pure/PatientServiceHistory.pure'
|
||||
export * from './variants/pure/PatientPreauthHistory.pure'
|
||||
export * from './variants/pure/LabRxTemplate.pure'
|
||||
export * from './variants/pure/CommissionBatch.pure'
|
||||
export * from './variants/pure/CommissionBatchItem.pure'
|
||||
@@ -1271,6 +1303,7 @@ export * from './variants/input/InsuranceContact.input'
|
||||
export * from './variants/input/ProcedureTimeslot.input'
|
||||
export * from './variants/input/PatientConversation.input'
|
||||
export * from './variants/input/PatientServiceHistory.input'
|
||||
export * from './variants/input/PatientPreauthHistory.input'
|
||||
export * from './variants/input/LabRxTemplate.input'
|
||||
export * from './variants/input/CommissionBatch.input'
|
||||
export * from './variants/input/CommissionBatchItem.input'
|
||||
@@ -1310,6 +1343,7 @@ export * from './variants/result/InsuranceContact.result'
|
||||
export * from './variants/result/ProcedureTimeslot.result'
|
||||
export * from './variants/result/PatientConversation.result'
|
||||
export * from './variants/result/PatientServiceHistory.result'
|
||||
export * from './variants/result/PatientPreauthHistory.result'
|
||||
export * from './variants/result/LabRxTemplate.result'
|
||||
export * from './variants/result/CommissionBatch.result'
|
||||
export * from './variants/result/CommissionBatchItem.result'
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './PatientPreauthHistoryWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCountOutputTypeCountPreauthHistoryArgsObjectSchema = makeSchema();
|
||||
export const PatientCountOutputTypeCountPreauthHistoryArgsObjectZodSchema = makeSchema();
|
||||
@@ -8,7 +8,8 @@ import { PatientCountOutputTypeCountPaymentArgsObjectSchema as PatientCountOutpu
|
||||
import { PatientCountOutputTypeCountCommunicationsArgsObjectSchema as PatientCountOutputTypeCountCommunicationsArgsObjectSchema } from './PatientCountOutputTypeCountCommunicationsArgs.schema';
|
||||
import { PatientCountOutputTypeCountDocumentsArgsObjectSchema as PatientCountOutputTypeCountDocumentsArgsObjectSchema } from './PatientCountOutputTypeCountDocumentsArgs.schema';
|
||||
import { PatientCountOutputTypeCountCloudFoldersArgsObjectSchema as PatientCountOutputTypeCountCloudFoldersArgsObjectSchema } from './PatientCountOutputTypeCountCloudFoldersArgs.schema';
|
||||
import { PatientCountOutputTypeCountServiceHistoryArgsObjectSchema as PatientCountOutputTypeCountServiceHistoryArgsObjectSchema } from './PatientCountOutputTypeCountServiceHistoryArgs.schema'
|
||||
import { PatientCountOutputTypeCountServiceHistoryArgsObjectSchema as PatientCountOutputTypeCountServiceHistoryArgsObjectSchema } from './PatientCountOutputTypeCountServiceHistoryArgs.schema';
|
||||
import { PatientCountOutputTypeCountPreauthHistoryArgsObjectSchema as PatientCountOutputTypeCountPreauthHistoryArgsObjectSchema } from './PatientCountOutputTypeCountPreauthHistoryArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
appointments: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountAppointmentsArgsObjectSchema)]).optional(),
|
||||
@@ -19,7 +20,8 @@ const makeSchema = () => z.object({
|
||||
communications: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountCommunicationsArgsObjectSchema)]).optional(),
|
||||
documents: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountDocumentsArgsObjectSchema)]).optional(),
|
||||
cloudFolders: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountCloudFoldersArgsObjectSchema)]).optional(),
|
||||
serviceHistory: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountServiceHistoryArgsObjectSchema)]).optional()
|
||||
serviceHistory: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountServiceHistoryArgsObjectSchema)]).optional(),
|
||||
preauthHistory: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountPreauthHistoryArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientCountOutputTypeSelectObjectSchema: z.ZodType<Prisma.PatientCountOutputTypeSelect> = makeSchema() as unknown as z.ZodType<Prisma.PatientCountOutputTypeSelect>;
|
||||
export const PatientCountOutputTypeSelectObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -11,7 +11,8 @@ import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as Communi
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -47,7 +48,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateInputObjectSchema: z.ZodType<Prisma.PatientCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateInput>;
|
||||
export const PatientCreateInputObjectZodSchema = makeSchema();
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientCreateWithoutPreauthHistoryInputObjectSchema as PatientCreateWithoutPreauthHistoryInputObjectSchema } from './PatientCreateWithoutPreauthHistoryInput.schema';
|
||||
import { PatientUncheckedCreateWithoutPreauthHistoryInputObjectSchema as PatientUncheckedCreateWithoutPreauthHistoryInputObjectSchema } from './PatientUncheckedCreateWithoutPreauthHistoryInput.schema';
|
||||
import { PatientCreateOrConnectWithoutPreauthHistoryInputObjectSchema as PatientCreateOrConnectWithoutPreauthHistoryInputObjectSchema } from './PatientCreateOrConnectWithoutPreauthHistoryInput.schema';
|
||||
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientCreateWithoutPreauthHistoryInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutPreauthHistoryInputObjectSchema)]).optional(),
|
||||
connectOrCreate: z.lazy(() => PatientCreateOrConnectWithoutPreauthHistoryInputObjectSchema).optional(),
|
||||
connect: z.lazy(() => PatientWhereUniqueInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateNestedOneWithoutPreauthHistoryInputObjectSchema: z.ZodType<Prisma.PatientCreateNestedOneWithoutPreauthHistoryInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateNestedOneWithoutPreauthHistoryInput>;
|
||||
export const PatientCreateNestedOneWithoutPreauthHistoryInputObjectZodSchema = makeSchema();
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
|
||||
import { PatientCreateWithoutPreauthHistoryInputObjectSchema as PatientCreateWithoutPreauthHistoryInputObjectSchema } from './PatientCreateWithoutPreauthHistoryInput.schema';
|
||||
import { PatientUncheckedCreateWithoutPreauthHistoryInputObjectSchema as PatientUncheckedCreateWithoutPreauthHistoryInputObjectSchema } from './PatientUncheckedCreateWithoutPreauthHistoryInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientWhereUniqueInputObjectSchema),
|
||||
create: z.union([z.lazy(() => PatientCreateWithoutPreauthHistoryInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutPreauthHistoryInputObjectSchema)])
|
||||
}).strict();
|
||||
export const PatientCreateOrConnectWithoutPreauthHistoryInputObjectSchema: z.ZodType<Prisma.PatientCreateOrConnectWithoutPreauthHistoryInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateOrConnectWithoutPreauthHistoryInput>;
|
||||
export const PatientCreateOrConnectWithoutPreauthHistoryInputObjectZodSchema = makeSchema();
|
||||
@@ -10,7 +10,8 @@ import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as Communi
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutAppointmentsInput>;
|
||||
export const PatientCreateWithoutAppointmentsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -10,7 +10,8 @@ import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as Communi
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutClaimsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutClaimsInput>;
|
||||
export const PatientCreateWithoutClaimsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -10,7 +10,8 @@ import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreate
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutCloudFoldersInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutCloudFoldersInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutCloudFoldersInput>;
|
||||
export const PatientCreateWithoutCloudFoldersInputObjectZodSchema = makeSchema();
|
||||
|
||||
+4
-2
@@ -10,7 +10,8 @@ import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreate
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutCommunicationsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutCommunicationsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutCommunicationsInput>;
|
||||
export const PatientCreateWithoutCommunicationsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -10,7 +10,8 @@ import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreate
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutConversationInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutConversationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutConversationInput>;
|
||||
export const PatientCreateWithoutConversationInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -10,7 +10,8 @@ import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreate
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutDocumentsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutDocumentsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutDocumentsInput>;
|
||||
export const PatientCreateWithoutDocumentsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -10,7 +10,8 @@ import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as Communi
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutGroupsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutGroupsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutGroupsInput>;
|
||||
export const PatientCreateWithoutGroupsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -10,7 +10,8 @@ import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as Communi
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutPaymentInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutPaymentInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutPaymentInput>;
|
||||
export const PatientCreateWithoutPaymentInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientStatusSchema } from '../enums/PatientStatus.schema';
|
||||
import { UserCreateNestedOneWithoutPatientsInputObjectSchema as UserCreateNestedOneWithoutPatientsInputObjectSchema } from './UserCreateNestedOneWithoutPatientsInput.schema';
|
||||
import { AppointmentCreateNestedManyWithoutPatientInputObjectSchema as AppointmentCreateNestedManyWithoutPatientInputObjectSchema } from './AppointmentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { AppointmentProcedureCreateNestedManyWithoutPatientInputObjectSchema as AppointmentProcedureCreateNestedManyWithoutPatientInputObjectSchema } from './AppointmentProcedureCreateNestedManyWithoutPatientInput.schema';
|
||||
import { ClaimCreateNestedManyWithoutPatientInputObjectSchema as ClaimCreateNestedManyWithoutPatientInputObjectSchema } from './ClaimCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCreateNestedManyWithoutPatientInputObjectSchema } from './PdfGroupCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
lastName: z.string(),
|
||||
dateOfBirth: z.coerce.date().optional().nullable(),
|
||||
gender: z.string(),
|
||||
phone: z.string(),
|
||||
email: z.string().optional().nullable(),
|
||||
address: z.string().optional().nullable(),
|
||||
city: z.string().optional().nullable(),
|
||||
state: z.string().optional().nullable(),
|
||||
zipCode: z.string().optional().nullable(),
|
||||
insuranceProvider: z.string().optional().nullable(),
|
||||
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(),
|
||||
status: PatientStatusSchema.optional(),
|
||||
remainingBenefit: z.string().optional().nullable(),
|
||||
thirdPartyInsurance: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutPatientsInputObjectSchema),
|
||||
appointments: z.lazy(() => AppointmentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
procedures: z.lazy(() => AppointmentProcedureCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
claims: z.lazy(() => ClaimCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
groups: z.lazy(() => PdfGroupCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutPreauthHistoryInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutPreauthHistoryInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutPreauthHistoryInput>;
|
||||
export const PatientCreateWithoutPreauthHistoryInputObjectZodSchema = makeSchema();
|
||||
@@ -10,7 +10,8 @@ import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as Communi
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutProceduresInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutProceduresInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutProceduresInput>;
|
||||
export const PatientCreateWithoutProceduresInputObjectZodSchema = makeSchema();
|
||||
|
||||
+4
-2
@@ -10,7 +10,8 @@ import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreate
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutServiceHistoryInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutServiceHistoryInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutServiceHistoryInput>;
|
||||
export const PatientCreateWithoutServiceHistoryInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -10,7 +10,8 @@ import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as Communi
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientServiceHistoryCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -46,7 +47,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutUserInput>;
|
||||
export const PatientCreateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -11,6 +11,7 @@ import { PatientDocumentFindManySchema as PatientDocumentFindManySchema } from '
|
||||
import { PatientConversationArgsObjectSchema as PatientConversationArgsObjectSchema } from './PatientConversationArgs.schema';
|
||||
import { CloudFolderFindManySchema as CloudFolderFindManySchema } from '../findManyCloudFolder.schema';
|
||||
import { PatientServiceHistoryFindManySchema as PatientServiceHistoryFindManySchema } from '../findManyPatientServiceHistory.schema';
|
||||
import { PatientPreauthHistoryFindManySchema as PatientPreauthHistoryFindManySchema } from '../findManyPatientPreauthHistory.schema';
|
||||
import { PatientCountOutputTypeArgsObjectSchema as PatientCountOutputTypeArgsObjectSchema } from './PatientCountOutputTypeArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -25,6 +26,7 @@ const makeSchema = () => z.object({
|
||||
conversation: z.union([z.boolean(), z.lazy(() => PatientConversationArgsObjectSchema)]).optional(),
|
||||
cloudFolders: z.union([z.boolean(), z.lazy(() => CloudFolderFindManySchema)]).optional(),
|
||||
serviceHistory: z.union([z.boolean(), z.lazy(() => PatientServiceHistoryFindManySchema)]).optional(),
|
||||
preauthHistory: z.union([z.boolean(), z.lazy(() => PatientPreauthHistoryFindManySchema)]).optional(),
|
||||
_count: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientIncludeObjectSchema: z.ZodType<Prisma.PatientInclude> = makeSchema() as unknown as z.ZodType<Prisma.PatientInclude>;
|
||||
|
||||
@@ -12,7 +12,8 @@ import { CommunicationOrderByRelationAggregateInputObjectSchema as Communication
|
||||
import { PatientDocumentOrderByRelationAggregateInputObjectSchema as PatientDocumentOrderByRelationAggregateInputObjectSchema } from './PatientDocumentOrderByRelationAggregateInput.schema';
|
||||
import { PatientConversationOrderByWithRelationInputObjectSchema as PatientConversationOrderByWithRelationInputObjectSchema } from './PatientConversationOrderByWithRelationInput.schema';
|
||||
import { CloudFolderOrderByRelationAggregateInputObjectSchema as CloudFolderOrderByRelationAggregateInputObjectSchema } from './CloudFolderOrderByRelationAggregateInput.schema';
|
||||
import { PatientServiceHistoryOrderByRelationAggregateInputObjectSchema as PatientServiceHistoryOrderByRelationAggregateInputObjectSchema } from './PatientServiceHistoryOrderByRelationAggregateInput.schema'
|
||||
import { PatientServiceHistoryOrderByRelationAggregateInputObjectSchema as PatientServiceHistoryOrderByRelationAggregateInputObjectSchema } from './PatientServiceHistoryOrderByRelationAggregateInput.schema';
|
||||
import { PatientPreauthHistoryOrderByRelationAggregateInputObjectSchema as PatientPreauthHistoryOrderByRelationAggregateInputObjectSchema } from './PatientPreauthHistoryOrderByRelationAggregateInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
@@ -51,7 +52,8 @@ const makeSchema = () => z.object({
|
||||
documents: z.lazy(() => PatientDocumentOrderByRelationAggregateInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationOrderByWithRelationInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderOrderByRelationAggregateInputObjectSchema).optional(),
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryOrderByRelationAggregateInputObjectSchema).optional()
|
||||
serviceHistory: z.lazy(() => PatientServiceHistoryOrderByRelationAggregateInputObjectSchema).optional(),
|
||||
preauthHistory: z.lazy(() => PatientPreauthHistoryOrderByRelationAggregateInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.PatientOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientOrderByWithRelationInput>;
|
||||
export const PatientOrderByWithRelationInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistorySelectObjectSchema as PatientPreauthHistorySelectObjectSchema } from './PatientPreauthHistorySelect.schema';
|
||||
import { PatientPreauthHistoryIncludeObjectSchema as PatientPreauthHistoryIncludeObjectSchema } from './PatientPreauthHistoryInclude.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
select: z.lazy(() => PatientPreauthHistorySelectObjectSchema).optional(),
|
||||
include: z.lazy(() => PatientPreauthHistoryIncludeObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryArgsObjectSchema = makeSchema();
|
||||
export const PatientPreauthHistoryArgsObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryAvgAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryAvgAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryAvgAggregateInputType>;
|
||||
export const PatientPreauthHistoryAvgAggregateInputObjectZodSchema = makeSchema();
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryAvgOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryAvgOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryAvgOrderByAggregateInput>;
|
||||
export const PatientPreauthHistoryAvgOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,17 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
preAuthNumber: z.literal(true).optional(),
|
||||
submittedCode: z.literal(true).optional(),
|
||||
toothQuadArchSurface: z.literal(true).optional(),
|
||||
paidAmount: z.literal(true).optional(),
|
||||
status: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional(),
|
||||
_all: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCountAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCountAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCountAggregateInputType>;
|
||||
export const PatientPreauthHistoryCountAggregateInputObjectZodSchema = makeSchema();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
preAuthNumber: SortOrderSchema.optional(),
|
||||
submittedCode: SortOrderSchema.optional(),
|
||||
toothQuadArchSurface: SortOrderSchema.optional(),
|
||||
paidAmount: SortOrderSchema.optional(),
|
||||
status: SortOrderSchema.optional(),
|
||||
createdAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCountOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCountOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCountOrderByAggregateInput>;
|
||||
export const PatientPreauthHistoryCountOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,15 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientCreateNestedOneWithoutPreauthHistoryInputObjectSchema as PatientCreateNestedOneWithoutPreauthHistoryInputObjectSchema } from './PatientCreateNestedOneWithoutPreauthHistoryInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
preAuthNumber: z.string(),
|
||||
submittedCode: z.string(),
|
||||
toothQuadArchSurface: z.string().optional().nullable(),
|
||||
paidAmount: z.string().optional().nullable(),
|
||||
status: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutPreauthHistoryInputObjectSchema)
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCreateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateInput>;
|
||||
export const PatientPreauthHistoryCreateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
patientId: z.number().int(),
|
||||
preAuthNumber: z.string(),
|
||||
submittedCode: z.string(),
|
||||
toothQuadArchSurface: z.string().optional().nullable(),
|
||||
paidAmount: z.string().optional().nullable(),
|
||||
status: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCreateManyInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateManyInput>;
|
||||
export const PatientPreauthHistoryCreateManyInputObjectZodSchema = makeSchema();
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
preAuthNumber: z.string(),
|
||||
submittedCode: z.string(),
|
||||
toothQuadArchSurface: z.string().optional().nullable(),
|
||||
paidAmount: z.string().optional().nullable(),
|
||||
status: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCreateManyPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateManyPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateManyPatientInput>;
|
||||
export const PatientPreauthHistoryCreateManyPatientInputObjectZodSchema = makeSchema();
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryCreateManyPatientInputObjectSchema as PatientPreauthHistoryCreateManyPatientInputObjectSchema } from './PatientPreauthHistoryCreateManyPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
data: z.union([z.lazy(() => PatientPreauthHistoryCreateManyPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateManyPatientInputObjectSchema).array()]),
|
||||
skipDuplicates: z.boolean().optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateManyPatientInputEnvelope> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateManyPatientInputEnvelope>;
|
||||
export const PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectZodSchema = makeSchema();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateOrConnectWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema as PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema } from './PatientPreauthHistoryCreateManyPatientInputEnvelope.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './PatientPreauthHistoryWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema).array(), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema).optional(),
|
||||
connect: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateNestedManyWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateNestedManyWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryCreateNestedManyWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedCreateWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema),
|
||||
create: z.union([z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateOrConnectWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateOrConnectWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
preAuthNumber: z.string(),
|
||||
submittedCode: z.string(),
|
||||
toothQuadArchSurface: z.string().optional().nullable(),
|
||||
paidAmount: z.string().optional().nullable(),
|
||||
status: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryCreateWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryCreateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientArgsObjectSchema as PatientArgsObjectSchema } from './PatientArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
patient: z.union([z.boolean(), z.lazy(() => PatientArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryIncludeObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryInclude> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryInclude>;
|
||||
export const PatientPreauthHistoryIncludeObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryWhereInputObjectSchema as PatientPreauthHistoryWhereInputObjectSchema } from './PatientPreauthHistoryWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
every: z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema).optional(),
|
||||
some: z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema).optional(),
|
||||
none: z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryListRelationFilterObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryListRelationFilter> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryListRelationFilter>;
|
||||
export const PatientPreauthHistoryListRelationFilterObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
preAuthNumber: z.literal(true).optional(),
|
||||
submittedCode: z.literal(true).optional(),
|
||||
toothQuadArchSurface: z.literal(true).optional(),
|
||||
paidAmount: z.literal(true).optional(),
|
||||
status: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryMaxAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryMaxAggregateInputType>;
|
||||
export const PatientPreauthHistoryMaxAggregateInputObjectZodSchema = makeSchema();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
preAuthNumber: SortOrderSchema.optional(),
|
||||
submittedCode: SortOrderSchema.optional(),
|
||||
toothQuadArchSurface: SortOrderSchema.optional(),
|
||||
paidAmount: SortOrderSchema.optional(),
|
||||
status: SortOrderSchema.optional(),
|
||||
createdAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryMaxOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryMaxOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryMaxOrderByAggregateInput>;
|
||||
export const PatientPreauthHistoryMaxOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
preAuthNumber: z.literal(true).optional(),
|
||||
submittedCode: z.literal(true).optional(),
|
||||
toothQuadArchSurface: z.literal(true).optional(),
|
||||
paidAmount: z.literal(true).optional(),
|
||||
status: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryMinAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryMinAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryMinAggregateInputType>;
|
||||
export const PatientPreauthHistoryMinAggregateInputObjectZodSchema = makeSchema();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
preAuthNumber: SortOrderSchema.optional(),
|
||||
submittedCode: SortOrderSchema.optional(),
|
||||
toothQuadArchSurface: SortOrderSchema.optional(),
|
||||
paidAmount: SortOrderSchema.optional(),
|
||||
status: SortOrderSchema.optional(),
|
||||
createdAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryMinOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryMinOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryMinOrderByAggregateInput>;
|
||||
export const PatientPreauthHistoryMinOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
_count: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryOrderByRelationAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryOrderByRelationAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryOrderByRelationAggregateInput>;
|
||||
export const PatientPreauthHistoryOrderByRelationAggregateInputObjectZodSchema = makeSchema();
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { SortOrderInputObjectSchema as SortOrderInputObjectSchema } from './SortOrderInput.schema';
|
||||
import { PatientPreauthHistoryCountOrderByAggregateInputObjectSchema as PatientPreauthHistoryCountOrderByAggregateInputObjectSchema } from './PatientPreauthHistoryCountOrderByAggregateInput.schema';
|
||||
import { PatientPreauthHistoryAvgOrderByAggregateInputObjectSchema as PatientPreauthHistoryAvgOrderByAggregateInputObjectSchema } from './PatientPreauthHistoryAvgOrderByAggregateInput.schema';
|
||||
import { PatientPreauthHistoryMaxOrderByAggregateInputObjectSchema as PatientPreauthHistoryMaxOrderByAggregateInputObjectSchema } from './PatientPreauthHistoryMaxOrderByAggregateInput.schema';
|
||||
import { PatientPreauthHistoryMinOrderByAggregateInputObjectSchema as PatientPreauthHistoryMinOrderByAggregateInputObjectSchema } from './PatientPreauthHistoryMinOrderByAggregateInput.schema';
|
||||
import { PatientPreauthHistorySumOrderByAggregateInputObjectSchema as PatientPreauthHistorySumOrderByAggregateInputObjectSchema } from './PatientPreauthHistorySumOrderByAggregateInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
preAuthNumber: SortOrderSchema.optional(),
|
||||
submittedCode: SortOrderSchema.optional(),
|
||||
toothQuadArchSurface: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
paidAmount: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
status: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
_count: z.lazy(() => PatientPreauthHistoryCountOrderByAggregateInputObjectSchema).optional(),
|
||||
_avg: z.lazy(() => PatientPreauthHistoryAvgOrderByAggregateInputObjectSchema).optional(),
|
||||
_max: z.lazy(() => PatientPreauthHistoryMaxOrderByAggregateInputObjectSchema).optional(),
|
||||
_min: z.lazy(() => PatientPreauthHistoryMinOrderByAggregateInputObjectSchema).optional(),
|
||||
_sum: z.lazy(() => PatientPreauthHistorySumOrderByAggregateInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryOrderByWithAggregationInput>;
|
||||
export const PatientPreauthHistoryOrderByWithAggregationInputObjectZodSchema = makeSchema();
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { SortOrderInputObjectSchema as SortOrderInputObjectSchema } from './SortOrderInput.schema';
|
||||
import { PatientOrderByWithRelationInputObjectSchema as PatientOrderByWithRelationInputObjectSchema } from './PatientOrderByWithRelationInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
preAuthNumber: SortOrderSchema.optional(),
|
||||
submittedCode: SortOrderSchema.optional(),
|
||||
toothQuadArchSurface: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
paidAmount: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
status: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
patient: z.lazy(() => PatientOrderByWithRelationInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryOrderByWithRelationInput>;
|
||||
export const PatientPreauthHistoryOrderByWithRelationInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,22 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
||||
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
||||
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
|
||||
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema'
|
||||
|
||||
const patientpreauthhistoryscalarwhereinputSchema = z.object({
|
||||
AND: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema).array()]).optional(),
|
||||
OR: z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema).array().optional(),
|
||||
NOT: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema).array()]).optional(),
|
||||
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
patientId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
preAuthNumber: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
submittedCode: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
toothQuadArchSurface: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
paidAmount: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
status: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryScalarWhereInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryScalarWhereInput> = patientpreauthhistoryscalarwhereinputSchema as unknown as z.ZodType<Prisma.PatientPreauthHistoryScalarWhereInput>;
|
||||
export const PatientPreauthHistoryScalarWhereInputObjectZodSchema = patientpreauthhistoryscalarwhereinputSchema;
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
|
||||
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
|
||||
import { StringNullableWithAggregatesFilterObjectSchema as StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
|
||||
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'
|
||||
|
||||
const patientpreauthhistoryscalarwherewithaggregatesinputSchema = z.object({
|
||||
AND: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
||||
OR: z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema).array().optional(),
|
||||
NOT: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
||||
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
||||
patientId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
||||
preAuthNumber: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
submittedCode: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
toothQuadArchSurface: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
paidAmount: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
status: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
createdAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryScalarWhereWithAggregatesInput> = patientpreauthhistoryscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.PatientPreauthHistoryScalarWhereWithAggregatesInput>;
|
||||
export const PatientPreauthHistoryScalarWhereWithAggregatesInputObjectZodSchema = patientpreauthhistoryscalarwherewithaggregatesinputSchema;
|
||||
@@ -0,0 +1,17 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientArgsObjectSchema as PatientArgsObjectSchema } from './PatientArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
preAuthNumber: z.boolean().optional(),
|
||||
submittedCode: z.boolean().optional(),
|
||||
toothQuadArchSurface: z.boolean().optional(),
|
||||
paidAmount: z.boolean().optional(),
|
||||
status: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
patient: z.union([z.boolean(), z.lazy(() => PatientArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistorySelectObjectSchema: z.ZodType<Prisma.PatientPreauthHistorySelect> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistorySelect>;
|
||||
export const PatientPreauthHistorySelectObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistorySumAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistorySumAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistorySumAggregateInputType>;
|
||||
export const PatientPreauthHistorySumAggregateInputObjectZodSchema = makeSchema();
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistorySumOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistorySumOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistorySumOrderByAggregateInput>;
|
||||
export const PatientPreauthHistorySumOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
patientId: z.number().int(),
|
||||
preAuthNumber: z.string(),
|
||||
submittedCode: z.string(),
|
||||
toothQuadArchSurface: z.string().optional().nullable(),
|
||||
paidAmount: z.string().optional().nullable(),
|
||||
status: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUncheckedCreateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUncheckedCreateInput>;
|
||||
export const PatientPreauthHistoryUncheckedCreateInputObjectZodSchema = makeSchema();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateOrConnectWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema as PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema } from './PatientPreauthHistoryCreateManyPatientInputEnvelope.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './PatientPreauthHistoryWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema).array(), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema).optional(),
|
||||
connect: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUncheckedCreateNestedManyWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUncheckedCreateNestedManyWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUncheckedCreateNestedManyWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryUncheckedCreateNestedManyWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
preAuthNumber: z.string(),
|
||||
submittedCode: z.string(),
|
||||
toothQuadArchSurface: z.string().optional().nullable(),
|
||||
paidAmount: z.string().optional().nullable(),
|
||||
status: z.string().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUncheckedCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUncheckedCreateWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
preAuthNumber: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
submittedCode: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
toothQuadArchSurface: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
paidAmount: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
status: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUncheckedUpdateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateInput>;
|
||||
export const PatientPreauthHistoryUncheckedUpdateInputObjectZodSchema = makeSchema();
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
preAuthNumber: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
submittedCode: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
toothQuadArchSurface: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
paidAmount: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
status: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUncheckedUpdateManyInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateManyInput>;
|
||||
export const PatientPreauthHistoryUncheckedUpdateManyInputObjectZodSchema = makeSchema();
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
preAuthNumber: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
submittedCode: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
toothQuadArchSurface: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
paidAmount: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
status: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateOrConnectWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema as PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema as PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema } from './PatientPreauthHistoryCreateManyPatientInputEnvelope.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema as PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema as PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryScalarWhereInputObjectSchema as PatientPreauthHistoryScalarWhereInputObjectSchema } from './PatientPreauthHistoryScalarWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema).array(), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
upsert: z.union([z.lazy(() => PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema).optional(),
|
||||
set: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
disconnect: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
delete: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
connect: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
update: z.union([z.lazy(() => PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
updateMany: z.union([z.lazy(() => PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
deleteMany: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUncheckedUpdateManyWithoutPatientNestedInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateManyWithoutPatientNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateManyWithoutPatientNestedInput>;
|
||||
export const PatientPreauthHistoryUncheckedUpdateManyWithoutPatientNestedInputObjectZodSchema = makeSchema();
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
preAuthNumber: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
submittedCode: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
toothQuadArchSurface: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
paidAmount: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
status: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUncheckedUpdateWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUncheckedUpdateWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryUncheckedUpdateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,18 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { PatientUpdateOneRequiredWithoutPreauthHistoryNestedInputObjectSchema as PatientUpdateOneRequiredWithoutPreauthHistoryNestedInputObjectSchema } from './PatientUpdateOneRequiredWithoutPreauthHistoryNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
preAuthNumber: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
submittedCode: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
toothQuadArchSurface: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
paidAmount: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
status: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
patient: z.lazy(() => PatientUpdateOneRequiredWithoutPreauthHistoryNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUpdateInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUpdateInput>;
|
||||
export const PatientPreauthHistoryUpdateInputObjectZodSchema = makeSchema();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
preAuthNumber: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
submittedCode: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
toothQuadArchSurface: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
paidAmount: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
status: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUpdateManyMutationInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUpdateManyMutationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUpdateManyMutationInput>;
|
||||
export const PatientPreauthHistoryUpdateManyMutationInputObjectZodSchema = makeSchema();
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryScalarWhereInputObjectSchema as PatientPreauthHistoryScalarWhereInputObjectSchema } from './PatientPreauthHistoryScalarWhereInput.schema';
|
||||
import { PatientPreauthHistoryUpdateManyMutationInputObjectSchema as PatientPreauthHistoryUpdateManyMutationInputObjectSchema } from './PatientPreauthHistoryUpdateManyMutationInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema),
|
||||
data: z.union([z.lazy(() => PatientPreauthHistoryUpdateManyMutationInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedUpdateManyWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateOrConnectWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema as PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema as PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema } from './PatientPreauthHistoryCreateManyPatientInputEnvelope.schema';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema as PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema as PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryScalarWhereInputObjectSchema as PatientPreauthHistoryScalarWhereInputObjectSchema } from './PatientPreauthHistoryScalarWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema).array(), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryCreateOrConnectWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
upsert: z.union([z.lazy(() => PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => PatientPreauthHistoryCreateManyPatientInputEnvelopeObjectSchema).optional(),
|
||||
set: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
disconnect: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
delete: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
connect: z.union([z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
update: z.union([z.lazy(() => PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
updateMany: z.union([z.lazy(() => PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUpdateManyWithWhereWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
deleteMany: z.union([z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema), z.lazy(() => PatientPreauthHistoryScalarWhereInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUpdateManyWithoutPatientNestedInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUpdateManyWithoutPatientNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUpdateManyWithoutPatientNestedInput>;
|
||||
export const PatientPreauthHistoryUpdateManyWithoutPatientNestedInputObjectZodSchema = makeSchema();
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryUpdateWithoutPatientInputObjectSchema as PatientPreauthHistoryUpdateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUpdateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedUpdateWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedUpdateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedUpdateWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema),
|
||||
data: z.union([z.lazy(() => PatientPreauthHistoryUpdateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedUpdateWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryUpdateWithWhereUniqueWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
preAuthNumber: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
submittedCode: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
toothQuadArchSurface: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
paidAmount: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
status: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUpdateWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUpdateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUpdateWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryUpdateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientPreauthHistoryWhereUniqueInputObjectSchema as PatientPreauthHistoryWhereUniqueInputObjectSchema } from './PatientPreauthHistoryWhereUniqueInput.schema';
|
||||
import { PatientPreauthHistoryUpdateWithoutPatientInputObjectSchema as PatientPreauthHistoryUpdateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUpdateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedUpdateWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedUpdateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedUpdateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryCreateWithoutPatientInput.schema';
|
||||
import { PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema as PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema } from './PatientPreauthHistoryUncheckedCreateWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientPreauthHistoryWhereUniqueInputObjectSchema),
|
||||
update: z.union([z.lazy(() => PatientPreauthHistoryUpdateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedUpdateWithoutPatientInputObjectSchema)]),
|
||||
create: z.union([z.lazy(() => PatientPreauthHistoryCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientPreauthHistoryUncheckedCreateWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInput>;
|
||||
export const PatientPreauthHistoryUpsertWithWhereUniqueWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,25 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
||||
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
||||
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
|
||||
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema';
|
||||
import { PatientScalarRelationFilterObjectSchema as PatientScalarRelationFilterObjectSchema } from './PatientScalarRelationFilter.schema';
|
||||
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema'
|
||||
|
||||
const patientpreauthhistorywhereinputSchema = z.object({
|
||||
AND: z.union([z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema).array()]).optional(),
|
||||
OR: z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema).array().optional(),
|
||||
NOT: z.union([z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema), z.lazy(() => PatientPreauthHistoryWhereInputObjectSchema).array()]).optional(),
|
||||
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
patientId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
preAuthNumber: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
submittedCode: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
toothQuadArchSurface: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
paidAmount: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
status: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
|
||||
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
|
||||
patient: z.union([z.lazy(() => PatientScalarRelationFilterObjectSchema), z.lazy(() => PatientWhereInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientPreauthHistoryWhereInputObjectSchema: z.ZodType<Prisma.PatientPreauthHistoryWhereInput> = patientpreauthhistorywhereinputSchema as unknown as z.ZodType<Prisma.PatientPreauthHistoryWhereInput>;
|
||||
export const PatientPreauthHistoryWhereInputObjectZodSchema = patientpreauthhistorywhereinputSchema;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user