public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('followup_quantity, followup_period_id, role_id, role_comments, community_patient', 'safe'), array('status_id', 'required'), array('status_id', 'statusDependencyValidation'), array('role_id', 'roleDependencyValidation'), array('followup_quantity', 'numerical', 'integerOnly' => true, 'min' => self::FOLLOWUP_Q_MIN, 'max' => self::FOLLOWUP_Q_MAX), array('id, event_id, status_id, followup_quantity, followup_period_id, role_id, role_comments', 'safe', 'on' => 'search'));
}