The study evaluated the effectiveness and safety of the FEMH-eGMS electronic glucose management system integrated into electronic health records for treating hospitalized patients with type 2 diabetes. It was a randomized controlled trial comparing a group of patients using the new electronic system with a control group. The study was conducted at Far Eastern Memorial Hospital. The objective was to determine whether the electronic system improves glucose control in hospitalized diabetic patients and whether it is safe for clinical use. The results of this study contribute to understanding how information technology can improve diabetes care during hospitalization.