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