public function getNameAndSubspecialty() { if ($this->serviceSubspecialtyAssignment) { return $this->name . ' (' . $this->serviceSubspecialtyAssignment->subspecialty->name . ')'; } else { return $this->name; } }