public function getLetterPosteriorPolePrincipal($patient) { if ($episode = $patient->getEpisodeForCurrentSubspecialty()) { if ($episode->eye) { $method = 'getLetterPosteriorPole' . $episode->eye->name; return $this->{$method}($patient); } } }