gets the element of type $element for the given patient in the given episode.
public getElementForLatestEventInEpisode ( Episode $episode, string $element ) : unknown | ||
$episode | Episode | - the episode |
$element | string | - the element class |
return | unknown | - the element type requested, or null |
/** * Extends parent method to prepend model namespace * * @param \Episode $episode * @param string $kls * @return \BaseEventTypeElement */ public function getElementForLatestEventInEpisode($episode, $kls) { if (strpos($kls, "models") == 0) { $kls = 'OEModule\\OphCiExamination\\' . $kls; } return parent::getElementForLatestEventInEpisode($episode, $kls); }