OEModule\OphCiExamination\components\OphCiExamination_API::getLetterVisualAcuityBoth PHP Method

getLetterVisualAcuityBoth() public method

public getLetterVisualAcuityBoth ( $patient )
    public function getLetterVisualAcuityBoth($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            $left = $this->getBestVisualAcuity($patient, $episode, 'left');
            $right = $this->getBestVisualAcuity($patient, $episode, 'right');
            return ($right ? $right->convertTo($right->value, $this->getSnellenUnitId()) : 'not recorded') . ' on the right and ' . ($left ? $left->convertTo($left->value, $this->getSnellenUnitId()) : 'not recorded') . ' on the left';
        }
    }
OphCiExamination_API