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

getLetterAnteriorSegmentPrincipal() public method

public getLetterAnteriorSegmentPrincipal ( $patient )
    public function getLetterAnteriorSegmentPrincipal($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($episode->eye) {
                $method = 'getLetterAnteriorSegment' . $episode->eye->name;
                return $this->{$method}($patient);
            }
        }
    }
OphCiExamination_API