OEModule\OphCoCvi\components\OphCoCvi_API::hasCVI PHP Method

hasCVI() public method

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