Hospital discharge algorithm based on admission HbA1c for the management of patients with type 2 diabetes.