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

getDRClinicalRet() public method

Get the clinical diabetic retinopathy grade.
public getDRClinicalRet ( Patient $patient, Episode $episode, string $side ) : string
$patient Patient
$episode Episode
$side string 'left' or 'right'
return string
    public function getDRClinicalRet($patient, $episode, $side)
    {
        if ($dr = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_DRGrading')) {
            if ($ret = $dr->{$side . '_clinicalret'}) {
                return $ret->name;
            }
        }
    }
OphCiExamination_API