public function getName() { if ($this->drug) { return $this->drug->name; } return $this->intervention_name; }