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

getLetterIOPReadingBoth() public method

Get the Intraocular Pressure reading for the given eye. This is from the most recent examination that has an IOP element.
public getLetterIOPReadingBoth ( Patient $patient ) : string
$patient Patient
return string
    public function getLetterIOPReadingBoth($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($iop = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_IntraocularPressure')) {
                return $iop->getLetter_reading('right') . ' on the right, and ' . $iop->getLetter_reading('left') . ' on the left';
            }
        }
    }
OphCiExamination_API