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

getCCTRight() public method

Get the latest right CCT measurement.
public getCCTRight ( Patient $patient ) : string
$patient Patient
return string
    public function getCCTRight($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($el = $this->getMostRecentElementInEpisode($episode->id, $this->getEventType()->id, 'OEModule\\OphCiExamination\\models\\Element_OphCiExamination_AnteriorSegment_CCT')) {
                if ($el->hasRight()) {
                    return $el->right_value . ' µm';
                }
            }
        }
    }
OphCiExamination_API