public function getLetterHistory($patient) { if ($episode = $patient->getEpisodeForCurrentSubspecialty()) { if ($history = $this->getElementForLatestEventInEpisode($episode, 'models\\Element_OphCiExamination_History')) { return strtolower($history->description); } } }