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

getDRMaculopathy() public method

Get the NSC Maculopathy grade.
public getDRMaculopathy ( Patient $patient, Episode $episode, string $side ) : string
$patient Patient
$episode Episode
$side string 'left' or 'right'
return string
    public function getDRMaculopathy($patient, $episode, $side)
    {
        if ($dr = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_DRGrading')) {
            $res = $dr->{$side . '_nscmaculopathy'};
            if ($dr->{$side . '_nscmaculopathy_photocoagulation'}) {
                $res .= ' and evidence of photocoagulation';
            } else {
                $res .= ' and no evidence of photocoagulation';
            }
            return $res;
        }
    }
OphCiExamination_API