The purpose of this study is to advance the quality of care among inpatients with diabetes in the VHA. When patients with diabetes are admitted to the hospital, there is a greater chance that they will have a complication that lengthens their stay in the hospital. We are testing whether managing their diabetes before admission makes a difference in occurrence of in-hospital complications.