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

getCCTRightNoUnits() public method

public getCCTRightNoUnits ( $patient )
    public function getCCTRightNoUnits($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;
                }
            }
        }
        return 'NR';
    }
OphCiExamination_API