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

getLetterMaxCRTForSide() public method

get the maximum CRT for the patient for the given side.
public getLetterMaxCRTForSide ( $patient, $side ) : mixed
$patient
$side
return mixed
    public function getLetterMaxCRTForSide($patient, $side)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($el = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_OCT')) {
                return $el->{$side . '_crt'} . 'um';
            }
        }
    }
OphCiExamination_API