The goal of this feasibility trial is to test whether a novel insulin dosing calculator can improve blood glucose management for patients with type 2 diabetes mellitus on hospital admission. The main questions it aims to answer are: * Whether using this calculator leads to no excessive hypoglycemia? * Whether using this calculator leads to a decrease of hyperglycemia? Participants will receive initial insulin doses by the calculator on hospital admission, and the rest of care will follow standard of care. Participants will be compared with patients in the UW observational cohort who received initial insulin doses by standard of care.
See this in plain English?
AI-rewrites the medical criteria so a patient or caregiver can understand them. Always confirm with the trial site.
Clinical Significant Hypoglycemia
Timeframe: During the first 48 hours after admission