Echocardiography is independently associated with survival time and readmission rates in patients with type 2 diabetes.