OEModule\OphCiExamination\components\OphCiExamination_API::getCCTAbbr PHP Метод

getCCTAbbr() публичный Метод

public getCCTAbbr ( Patient $patient ) : string | null;
$patient Patient
Результат string | null;
    public function getCCTAbbr(\Patient $patient)
    {
        if (($episode = $patient->getEpisodeForCurrentSubspecialty()) && ($cct = $this->getMostRecentElementInEpisode($episode->id, $this->getEventType()->id, 'OEModule\\OphCiExamination\\models\\Element_OphCiExamination_AnteriorSegment_CCT'))) {
            $readings = array();
            if ($cct->hasRight()) {
                $readings[] = 'r:' . $cct->right_value;
            }
            if ($cct->hasLeft()) {
                $readings[] = 'l:' . $cct->left_value;
            }
            return implode(', ', $readings);
        } else {
            return;
        }
    }
OphCiExamination_API