public function getEpisode() { return Episode::model()->getCurrentEpisodeByFirm($this->patient->id, $this->firm); }