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