- Schedule: last column is the Preauth column; "Claim for Column with AI" is now "Claim/Preauth for Column with AI" — that column's appointments go to PreAuth (MH, CCA, Tufts SCO, United/DentalHub; other insurances are skipped), the rest to Claim. Preauthorized appointments (hasPreauth) aren't resubmitted - PreAuth payloads carry appointmentId; appointment X-rays/attachments are sent with MH/CCA/UnitedDH/Tufts preauths (shared appendAppointmentFiles helper) - Patient form: policy holder is searchable from patients in the DB, plus "Relationship to Policy Holder/Subscriber" (Self, Spouse, Dependent Child, Other). New Patient columns policyHolderPatientId, policyHolderRelationship; browser-side schema updated so the fields aren't stripped on save - ADA form: box 12-14 filled from the linked policy holder's record; box 18 ticks the relationship (Self when the patient is the holder) - AI notes: a bare "2PA" is an image count, not tooth #2 — restored before CDT lookup so it maps to D0220 #8 / D0230 #24 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
148 lines
9.3 KiB
TypeScript
148 lines
9.3 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
export declare const PatientFindFirstOrThrowSelectSchema: z.ZodType<Prisma.PatientSelect>;
|
|
export declare const PatientFindFirstOrThrowSelectZodSchema: z.ZodObject<{
|
|
id: z.ZodOptional<z.ZodBoolean>;
|
|
firstName: z.ZodOptional<z.ZodBoolean>;
|
|
lastName: z.ZodOptional<z.ZodBoolean>;
|
|
dateOfBirth: z.ZodOptional<z.ZodBoolean>;
|
|
gender: z.ZodOptional<z.ZodBoolean>;
|
|
phone: z.ZodOptional<z.ZodBoolean>;
|
|
email: z.ZodOptional<z.ZodBoolean>;
|
|
address: z.ZodOptional<z.ZodBoolean>;
|
|
city: z.ZodOptional<z.ZodBoolean>;
|
|
state: z.ZodOptional<z.ZodBoolean>;
|
|
zipCode: z.ZodOptional<z.ZodBoolean>;
|
|
insuranceProvider: z.ZodOptional<z.ZodBoolean>;
|
|
insuranceId: z.ZodOptional<z.ZodBoolean>;
|
|
groupNumber: z.ZodOptional<z.ZodBoolean>;
|
|
policyHolder: z.ZodOptional<z.ZodBoolean>;
|
|
policyHolderPatientId: z.ZodOptional<z.ZodBoolean>;
|
|
policyHolderRelationship: z.ZodOptional<z.ZodBoolean>;
|
|
allergies: z.ZodOptional<z.ZodBoolean>;
|
|
medicalConditions: z.ZodOptional<z.ZodBoolean>;
|
|
preferredLanguage: z.ZodOptional<z.ZodBoolean>;
|
|
status: z.ZodOptional<z.ZodBoolean>;
|
|
remainingBenefit: z.ZodOptional<z.ZodBoolean>;
|
|
thirdPartyInsurance: z.ZodOptional<z.ZodBoolean>;
|
|
userId: z.ZodOptional<z.ZodBoolean>;
|
|
createdAt: z.ZodOptional<z.ZodBoolean>;
|
|
updatedAt: z.ZodOptional<z.ZodBoolean>;
|
|
user: z.ZodOptional<z.ZodBoolean>;
|
|
appointments: z.ZodOptional<z.ZodBoolean>;
|
|
procedures: z.ZodOptional<z.ZodBoolean>;
|
|
claims: z.ZodOptional<z.ZodBoolean>;
|
|
groups: z.ZodOptional<z.ZodBoolean>;
|
|
payment: z.ZodOptional<z.ZodBoolean>;
|
|
communications: z.ZodOptional<z.ZodBoolean>;
|
|
documents: z.ZodOptional<z.ZodBoolean>;
|
|
conversation: z.ZodOptional<z.ZodBoolean>;
|
|
cloudFolders: z.ZodOptional<z.ZodBoolean>;
|
|
_count: z.ZodOptional<z.ZodBoolean>;
|
|
}, "strict", z.ZodTypeAny, {
|
|
status?: boolean | undefined;
|
|
id?: boolean | undefined;
|
|
createdAt?: boolean | undefined;
|
|
userId?: boolean | undefined;
|
|
user?: boolean | undefined;
|
|
email?: boolean | undefined;
|
|
phone?: boolean | undefined;
|
|
appointments?: boolean | undefined;
|
|
procedures?: boolean | undefined;
|
|
claims?: boolean | undefined;
|
|
payment?: boolean | undefined;
|
|
updatedAt?: boolean | undefined;
|
|
dateOfBirth?: boolean | undefined;
|
|
insuranceProvider?: boolean | undefined;
|
|
city?: boolean | undefined;
|
|
state?: boolean | undefined;
|
|
zipCode?: boolean | undefined;
|
|
cloudFolders?: boolean | undefined;
|
|
communications?: boolean | undefined;
|
|
firstName?: boolean | undefined;
|
|
lastName?: boolean | undefined;
|
|
gender?: boolean | undefined;
|
|
address?: boolean | undefined;
|
|
insuranceId?: boolean | undefined;
|
|
groupNumber?: boolean | undefined;
|
|
policyHolder?: boolean | undefined;
|
|
policyHolderPatientId?: boolean | undefined;
|
|
policyHolderRelationship?: boolean | undefined;
|
|
allergies?: boolean | undefined;
|
|
medicalConditions?: boolean | undefined;
|
|
preferredLanguage?: boolean | undefined;
|
|
remainingBenefit?: boolean | undefined;
|
|
thirdPartyInsurance?: boolean | undefined;
|
|
groups?: boolean | undefined;
|
|
documents?: boolean | undefined;
|
|
conversation?: boolean | undefined;
|
|
_count?: boolean | undefined;
|
|
}, {
|
|
status?: boolean | undefined;
|
|
id?: boolean | undefined;
|
|
createdAt?: boolean | undefined;
|
|
userId?: boolean | undefined;
|
|
user?: boolean | undefined;
|
|
email?: boolean | undefined;
|
|
phone?: boolean | undefined;
|
|
appointments?: boolean | undefined;
|
|
procedures?: boolean | undefined;
|
|
claims?: boolean | undefined;
|
|
payment?: boolean | undefined;
|
|
updatedAt?: boolean | undefined;
|
|
dateOfBirth?: boolean | undefined;
|
|
insuranceProvider?: boolean | undefined;
|
|
city?: boolean | undefined;
|
|
state?: boolean | undefined;
|
|
zipCode?: boolean | undefined;
|
|
cloudFolders?: boolean | undefined;
|
|
communications?: boolean | undefined;
|
|
firstName?: boolean | undefined;
|
|
lastName?: boolean | undefined;
|
|
gender?: boolean | undefined;
|
|
address?: boolean | undefined;
|
|
insuranceId?: boolean | undefined;
|
|
groupNumber?: boolean | undefined;
|
|
policyHolder?: boolean | undefined;
|
|
policyHolderPatientId?: boolean | undefined;
|
|
policyHolderRelationship?: boolean | undefined;
|
|
allergies?: boolean | undefined;
|
|
medicalConditions?: boolean | undefined;
|
|
preferredLanguage?: boolean | undefined;
|
|
remainingBenefit?: boolean | undefined;
|
|
thirdPartyInsurance?: boolean | undefined;
|
|
groups?: boolean | undefined;
|
|
documents?: boolean | undefined;
|
|
conversation?: boolean | undefined;
|
|
_count?: boolean | undefined;
|
|
}>;
|
|
export declare const PatientFindFirstOrThrowSchema: z.ZodType<Prisma.PatientFindFirstOrThrowArgs>;
|
|
export declare const PatientFindFirstOrThrowZodSchema: z.ZodObject<{
|
|
select: z.ZodOptional<z.ZodType<Prisma.PatientSelect<import("../../generated/prisma/runtime/client").DefaultArgs>, z.ZodTypeDef, Prisma.PatientSelect<import("../../generated/prisma/runtime/client").DefaultArgs>>>;
|
|
include: z.ZodLazy<z.ZodOptional<z.ZodType<Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs>, z.ZodTypeDef, Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs>>>>;
|
|
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.PatientOrderByWithRelationInput, z.ZodTypeDef, Prisma.PatientOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.PatientOrderByWithRelationInput, z.ZodTypeDef, Prisma.PatientOrderByWithRelationInput>, "many">]>>;
|
|
where: z.ZodOptional<z.ZodType<Prisma.PatientWhereInput, z.ZodTypeDef, Prisma.PatientWhereInput>>;
|
|
cursor: z.ZodOptional<z.ZodType<Prisma.PatientWhereUniqueInput, z.ZodTypeDef, Prisma.PatientWhereUniqueInput>>;
|
|
take: z.ZodOptional<z.ZodNumber>;
|
|
skip: z.ZodOptional<z.ZodNumber>;
|
|
distinct: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, z.ZodArray<z.ZodEnum<["id", "firstName", "lastName", "dateOfBirth", "gender", "phone", "email", "address", "city", "state", "zipCode", "insuranceProvider", "insuranceId", "groupNumber", "policyHolder", "policyHolderPatientId", "policyHolderRelationship", "allergies", "medicalConditions", "preferredLanguage", "status", "remainingBenefit", "thirdPartyInsurance", "userId", "createdAt", "updatedAt"]>, "many">]>>;
|
|
}, "strict", z.ZodTypeAny, {
|
|
where?: Prisma.PatientWhereInput | undefined;
|
|
include?: Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
|
|
select?: Prisma.PatientSelect<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
|
|
orderBy?: Prisma.PatientOrderByWithRelationInput | Prisma.PatientOrderByWithRelationInput[] | undefined;
|
|
cursor?: Prisma.PatientWhereUniqueInput | undefined;
|
|
take?: number | undefined;
|
|
skip?: number | undefined;
|
|
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
|
|
}, {
|
|
where?: Prisma.PatientWhereInput | undefined;
|
|
include?: Prisma.PatientInclude<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
|
|
select?: Prisma.PatientSelect<import("../../generated/prisma/runtime/client").DefaultArgs> | undefined;
|
|
orderBy?: Prisma.PatientOrderByWithRelationInput | Prisma.PatientOrderByWithRelationInput[] | undefined;
|
|
cursor?: Prisma.PatientWhereUniqueInput | undefined;
|
|
take?: number | undefined;
|
|
skip?: number | undefined;
|
|
distinct?: "status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance" | ("status" | "id" | "createdAt" | "userId" | "email" | "phone" | "updatedAt" | "dateOfBirth" | "insuranceProvider" | "city" | "state" | "zipCode" | "firstName" | "lastName" | "gender" | "address" | "insuranceId" | "groupNumber" | "policyHolder" | "policyHolderPatientId" | "policyHolderRelationship" | "allergies" | "medicalConditions" | "preferredLanguage" | "remainingBenefit" | "thirdPartyInsurance")[] | undefined;
|
|
}>;
|
|
//# sourceMappingURL=findFirstOrThrowPatient.schema.d.ts.map
|