"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PatientWhereInputObjectZodSchema = exports.PatientWhereInputObjectSchema = void 0;
const z = __importStar(require("zod"));
const IntFilter_schema_1 = require("./IntFilter.schema");
const StringFilter_schema_1 = require("./StringFilter.schema");
const DateTimeNullableFilter_schema_1 = require("./DateTimeNullableFilter.schema");
const StringNullableFilter_schema_1 = require("./StringNullableFilter.schema");
const EnumPatientStatusFilter_schema_1 = require("./EnumPatientStatusFilter.schema");
const PatientStatus_schema_1 = require("../enums/PatientStatus.schema");
const DateTimeFilter_schema_1 = require("./DateTimeFilter.schema");
const UserScalarRelationFilter_schema_1 = require("./UserScalarRelationFilter.schema");
const UserWhereInput_schema_1 = require("./UserWhereInput.schema");
const AppointmentListRelationFilter_schema_1 = require("./AppointmentListRelationFilter.schema");
const AppointmentProcedureListRelationFilter_schema_1 = require("./AppointmentProcedureListRelationFilter.schema");
const ClaimListRelationFilter_schema_1 = require("./ClaimListRelationFilter.schema");
const PdfGroupListRelationFilter_schema_1 = require("./PdfGroupListRelationFilter.schema");
const PaymentListRelationFilter_schema_1 = require("./PaymentListRelationFilter.schema");
const CommunicationListRelationFilter_schema_1 = require("./CommunicationListRelationFilter.schema");
const PatientDocumentListRelationFilter_schema_1 = require("./PatientDocumentListRelationFilter.schema");
const PatientConversationNullableScalarRelationFilter_schema_1 = require("./PatientConversationNullableScalarRelationFilter.schema");
const PatientConversationWhereInput_schema_1 = require("./PatientConversationWhereInput.schema");
const CloudFolderListRelationFilter_schema_1 = require("./CloudFolderListRelationFilter.schema");
const patientwhereinputSchema = z.object({
    AND: z.union([z.lazy(() => exports.PatientWhereInputObjectSchema), z.lazy(() => exports.PatientWhereInputObjectSchema).array()]).optional(),
    OR: z.lazy(() => exports.PatientWhereInputObjectSchema).array().optional(),
    NOT: z.union([z.lazy(() => exports.PatientWhereInputObjectSchema), z.lazy(() => exports.PatientWhereInputObjectSchema).array()]).optional(),
    id: z.union([z.lazy(() => IntFilter_schema_1.IntFilterObjectSchema), z.number().int()]).optional(),
    firstName: z.union([z.lazy(() => StringFilter_schema_1.StringFilterObjectSchema), z.string()]).optional(),
    lastName: z.union([z.lazy(() => StringFilter_schema_1.StringFilterObjectSchema), z.string()]).optional(),
    dateOfBirth: z.union([z.lazy(() => DateTimeNullableFilter_schema_1.DateTimeNullableFilterObjectSchema), z.coerce.date()]).optional().nullable(),
    gender: z.union([z.lazy(() => StringFilter_schema_1.StringFilterObjectSchema), z.string()]).optional(),
    phone: z.union([z.lazy(() => StringFilter_schema_1.StringFilterObjectSchema), z.string()]).optional(),
    email: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    address: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    city: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    zipCode: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    insuranceProvider: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    insuranceId: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    groupNumber: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    policyHolder: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    allergies: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    medicalConditions: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    preferredLanguage: z.union([z.lazy(() => StringNullableFilter_schema_1.StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
    status: z.union([z.lazy(() => EnumPatientStatusFilter_schema_1.EnumPatientStatusFilterObjectSchema), PatientStatus_schema_1.PatientStatusSchema]).optional(),
    userId: z.union([z.lazy(() => IntFilter_schema_1.IntFilterObjectSchema), z.number().int()]).optional(),
    createdAt: z.union([z.lazy(() => DateTimeFilter_schema_1.DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
    updatedAt: z.union([z.lazy(() => DateTimeFilter_schema_1.DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
    user: z.union([z.lazy(() => UserScalarRelationFilter_schema_1.UserScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInput_schema_1.UserWhereInputObjectSchema)]).optional(),
    appointments: z.lazy(() => AppointmentListRelationFilter_schema_1.AppointmentListRelationFilterObjectSchema).optional(),
    procedures: z.lazy(() => AppointmentProcedureListRelationFilter_schema_1.AppointmentProcedureListRelationFilterObjectSchema).optional(),
    claims: z.lazy(() => ClaimListRelationFilter_schema_1.ClaimListRelationFilterObjectSchema).optional(),
    groups: z.lazy(() => PdfGroupListRelationFilter_schema_1.PdfGroupListRelationFilterObjectSchema).optional(),
    payment: z.lazy(() => PaymentListRelationFilter_schema_1.PaymentListRelationFilterObjectSchema).optional(),
    communications: z.lazy(() => CommunicationListRelationFilter_schema_1.CommunicationListRelationFilterObjectSchema).optional(),
    documents: z.lazy(() => PatientDocumentListRelationFilter_schema_1.PatientDocumentListRelationFilterObjectSchema).optional(),
    conversation: z.union([z.lazy(() => PatientConversationNullableScalarRelationFilter_schema_1.PatientConversationNullableScalarRelationFilterObjectSchema), z.lazy(() => PatientConversationWhereInput_schema_1.PatientConversationWhereInputObjectSchema)]).optional(),
    cloudFolders: z.lazy(() => CloudFolderListRelationFilter_schema_1.CloudFolderListRelationFilterObjectSchema).optional()
}).strict();
exports.PatientWhereInputObjectSchema = patientwhereinputSchema;
exports.PatientWhereInputObjectZodSchema = patientwhereinputSchema;
