Patient description: The patient is a 24-year-old man who has had type 1 diabetes for 11 years. He presents to the emergency room with hyperglycemia and concern for possible diabetic ketoacidosis after not taking his insulin for 3 days. The patient reports that he is currently homeless and has lost his supply of insulin, syringes, glucometer, and glucose testing supplies. The patient states that at the time of his initial diagnosis with type 1 diabetes he was hospitalized with a glucose value >1000 mg/dL. At the time, he was experiencing polyuria, polydipsia, and polyphagia. He reports that he has been on insulin since the time of his diagnosis, and he has never been prescribed oral agents for diabetes management. Most recently, he has been using insulin glargine 55 units once daily, and insulin aspart sliding scale 3 times daily. The patient has had previous episodes of diabetic ketoacidosis, for which he was hospitalized. With this episode of hyperglycemia, he is not experiencing any nausea, vomiting, or abdominal discomfort, and he appears well. His lab studies showed: A1c: 11.3% Creatinine: 0.9 mg/dL with eGFR >60 mL/min Aspartate aminotransferase (AST): 17 U/L Alanine aminotransferase (ALT): 14 U/L Beta-hydroxybutyrate: 0.1 mmol/L Bicarbonate: 25 mEq/L Anion

Clinical trial eligibility criteria: eligible ages (years): 18.0-80.0,  Type 2 Diabetes Males or female surgical non-ICU patients ages between18 and 80 years 2. A known history of T2D > 1 month, receiving either diet alone, oral antidiabetic agents: sulfonylureas and metformin as monotherapy or in combination therapy (excluding DPP-4 inhibitors) or low-dose (≤ 0.5 units/kg/day) insulin therapy. 3. Subjects with a BG >140 mg and < 400 mg/dL at time of randomization without laboratory evidence of diabetic ketoacidosis (serum bicarbonate < 18 mEq/L or positive serum or urinary ketones)  Age < 18 or > 80 years. 2. Subjects with increased BG concentration, but without a history of diabetes (stress hyperglycemia). 3. Subjects with a history of type 1 diabetes (suggested by BMI < 25 requiring insulin therapy or with a history of diabetic ketoacidosis and hyperosmolar hyperglycemic state, or ketonuria) (43). 4. Treatment with dipeptidyl peptidase-4 (DPP4) inhibitor or Glucagon-like peptide-1 (GLP1) analogs during the past 3 months prior to admission. 5. Acute critical illness or coronary artery bypass graft (CABG) surgery expected to require admission to a critical care unit. 6. Subjects with gastrointestinal obstruction or adynamic ileus or those expected to require gastrointestinal suction. 7. Patients with clinically relevant pancreatic or gallbladder disease. 8. Patients with previous history of pancreatitis 9. Patients with acute myocardial infarction, clinically significant hepatic disease or significantly impaired renal function (GFR < 30 ml/min). 10. Chronic use of steroid with total daily dose (prednisone equivalent) >5 mg/day 11. Mental condition rendering the subject unable to understand the nature, scope, and possible consequences of the study. 12. Pregnancy or breast feeding at time of enrollment into the study. 13. Patients who received supplemental sliding scale insulin >72 hours prior to randomization 14. Patients who received basal insulin > 48 hours prior to randomization