isReserve()) { return; } try { $this->patientService->autoCreateOnAppointmentConfirm($appointment); } catch (\Throwable $e) { $this->logger->error('Auto-creating the patient record on confirm failed', [ 'appointment_uuid' => $appointment->getUuid(), 'exception' => $e, ]); } } }