public function hasCVI(\Patient $patient) { if (count($this->getEvents($patient))) { return true; } $oph_info = $patient->getOphInfo(); return !$oph_info->isNewRecord; }