Three factors related to poor blood glucose control included HbA1c before admission ≤ 7 (OR=9.40; 95% CI=2.19 - 40.31; p=0.003), total disease number > 3 (OR=1.84; 95% CI=1.07 - 3.18; p=0.028) and using corticosteroid (OR=3.13; 95% CI=2.04 - 5.38; p<0.001).