public function getTypeName() { $specimen_type = SpecimenType::getById($this->specimenTypeId); if ($specimen_type == null) { return LangUtil::$generalTerms['NOTKNOWN']; } return $specimen_type->getName(); }