public function getReportString($data)
{
$res = '';
if ($outcome_id = @$data['outcome']) {
$outcome = models\TicketAssignOutcomeOption::model()->findByPk((int) $outcome_id);
$res = $outcome->name;
if ($outcome->followup) {
if (@$data['followup_quantity'] == 1 && isset($data['followup_period'])) {
$data['followup_period'] = rtrim($data['followup_period'], 's');
}
$res .= ' in ' . @$data['followup_quantity'] . ' ' . @$data['followup_period'];
$res .= ' at ' . @$data['clinic_location'];
}
}
return $res;
}