import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.schema';
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
import { PatientStatusSchema } from '../enums/PatientStatus.schema';
import { EnumPatientStatusFieldUpdateOperationsInputObjectSchema as EnumPatientStatusFieldUpdateOperationsInputObjectSchema } from './EnumPatientStatusFieldUpdateOperationsInput.schema';
import { PatientUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema as PatientUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema } from './PatientUpdateOneRequiredWithoutAppointmentsNestedInput.schema';
import { UserUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema as UserUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutAppointmentsNestedInput.schema';
import { StaffUpdateOneWithoutAppointmentsNestedInputObjectSchema as StaffUpdateOneWithoutAppointmentsNestedInputObjectSchema } from './StaffUpdateOneWithoutAppointmentsNestedInput.schema';
import { NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectSchema as NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectSchema } from './NpiProviderUpdateOneWithoutAppointmentsNestedInput.schema';
import { AppointmentProcedureUpdateManyWithoutAppointmentNestedInputObjectSchema as AppointmentProcedureUpdateManyWithoutAppointmentNestedInputObjectSchema } from './AppointmentProcedureUpdateManyWithoutAppointmentNestedInput.schema';
import { AppointmentFileUpdateManyWithoutAppointmentNestedInputObjectSchema as AppointmentFileUpdateManyWithoutAppointmentNestedInputObjectSchema } from './AppointmentFileUpdateManyWithoutAppointmentNestedInput.schema'

const makeSchema = () => z.object({
  title: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
  date: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
  startTime: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
  endTime: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
  type: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
  typeLocked: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
  notes: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
  procedureCodeNotes: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
  status: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
  movedByAi: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
  createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
  eligibilityStatus: z.union([PatientStatusSchema, z.lazy(() => EnumPatientStatusFieldUpdateOperationsInputObjectSchema)]).optional(),
  patient: z.lazy(() => PatientUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema).optional(),
  user: z.lazy(() => UserUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema).optional(),
  staff: z.lazy(() => StaffUpdateOneWithoutAppointmentsNestedInputObjectSchema).optional(),
  npiProvider: z.lazy(() => NpiProviderUpdateOneWithoutAppointmentsNestedInputObjectSchema).optional(),
  procedures: z.lazy(() => AppointmentProcedureUpdateManyWithoutAppointmentNestedInputObjectSchema).optional(),
  files: z.lazy(() => AppointmentFileUpdateManyWithoutAppointmentNestedInputObjectSchema).optional()
}).strict();
export const AppointmentUpdateWithoutClaimsInputObjectSchema: z.ZodType<Prisma.AppointmentUpdateWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUpdateWithoutClaimsInput>;
export const AppointmentUpdateWithoutClaimsInputObjectZodSchema = makeSchema();
