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

getLetterAnteriorSegmentLeft() public method

return the anterior segment description for the given eye. This is from the most recent examination that has an anterior segment element.
public getLetterAnteriorSegmentLeft ( Patient $patient )
$patient Patient
    public function getLetterAnteriorSegmentLeft($patient)
    {
        if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
            if ($as = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_AnteriorSegment')) {
                return $as->left_description;
            }
        }
    }
OphCiExamination_API