Introduction

Inpatient hyperglycemia, defined as blood glucose ≥ 140 mg/dl, is a common scenario in hospitals across the world, affecting patients with prior diagnosis of diabetes or those with stress hyperglycemia (i.e., without a prior diagnosis of diabetes) [13]. It is reported that about 20–40% of hospitalized patients in the USA [413], up to 18–31% in the UK [14] and 18.4% in Spain [15], have inpatient hyperglycemia. In addition, data from the UK also suggest that over 20% of people without a diagnosis of diabetes presenting to an emergency department may have newly recognized hyperglycemia [16]. Extensive evidence suggests a strong association between inpatient hyperglycemia, in persons with and without diabetes, and increased morbidity, mortality, and healthcare utilization [14, 17, 18]. In this article, we review the scientific evidence for the management of inpatient hyperglycemia in non-critically ill patients with type 2 diabetes, with emphasis on recent studies assessing non-insulin therapies (Table 1).

Table 1 Current anti-diabetic treatment patterns in hospitalized patients with diabetes: USA, UK, and Spain

Historical Overview of the Management of Hyperglycemia in Non-critical Hospital Settings

It may appear unreasonable that 20 years ago, there was not a standard of care for the management of hospitalized patients with hyperglycemia. In some hospitals, many clinicians did not pay attention to hyperglycemia, with the management relying on continuing home medications, including metformin, and sulfonylureas, with the addition of sliding scale insulin (SSI) therapy [9]. In addition, there has been a heavy reliance on the reactive approach of using SSI [23, 24]. In a prospective observational study in the late 1990s, Queale et al. demonstrated that over 75% of patients hospitalized were treated with SSI regimens, which was associated with increased risk of hyperglycemia [23]. In recent retrospective studies at large academic medical centers in the USA, 31–40% of non-critical patients with hyperglycemia were treated with SSI alone [9, 22].

During the past two decades, an increased focus has been placed on the inpatient management of hyperglycemia, particularly in the intensive care unit (ICU). The initial study from Van den Berghe et al., as a prospective, randomized trial in 2001, showed an impressive 42% relative reduction in mortality in intensively treated patients in the surgical ICU [13]. The Leuven protocol used in this trial included the administration of an insulin infusion with an intensive glycemic target of a blood glucose between 80 and 110 mg/dl. Based on these single-center results in a surgical ICU, the use of intensive insulin (subcutaneous and intravenous) regimens was adopted in all ICU and non-ICU settings around the world. However, the same investigators and several large multi-center randomized control trials failed to replicate the benefits of intensive insulin therapy in the ICU, reporting no mortality benefits [25]. Definitive data against intensive insulin therapy in the ICU was available with the publication of the multinational Normoglycemia in Intensive Care Evaluation–Survival Using Glucose Algorithm Regulation (NICE-SUGAR) trial [26]. The results of the NICE-SUGAR trial showed an absolute increase in the rate of death at 90 days with intensive glucose control (27.5%, vs. 24.9% with conventional control; odds ratio, 1.14; P = 0.02). In addition, severe hypoglycemia occurred more frequently in the intensive treatment group than in the conventional-control group (6.8% vs. 0.5%, P<0.001). From this point on, a more relaxed glycemic target of 140–180 mg/dl has been recommended for most patients in the ICU.

In non-ICU settings, the lack of evidence triggered randomized controlled trials to assess benefits of improved glycemic outcomes in general medicine and surgical patients. The RABBIT2 trial showed that the basal-bolus insulin regimen was superior to SSI alone [27]. This was further confirmed by other studies, with observational and prospective randomized trials also supporting the benefits of a proactive approach to the management of inpatient hyperglycemia in non-critically ill hospitalized patients [28, 29•, 30]. Several scientific papers from the medical community, patient advocacy, and regulatory bodies raised the need for the creation of clinical practice guidelines and a change in the standard of care [31]. Consequently, several organizations in the US and in Europe developed their guidelines, with pioneers such as the American Association of Clinical Endocrinology, The Endocrine Society, the Joint British Diabetes Societies for Inpatient Care, and the Spanish Diabetes Society leading the movement [13, 32, 33]. While these clinical practice guidelines represent a step forward in the field, many of the recommendations are based on consensus expertise, due to the lack of randomized controlled trials, particularly in the use of non-insulin therapy and optimal glycemic targets.

Since the late 2000s, the American Diabetes Association and American Association of Clinical Endocrinology’s guidelines for the management of diabetes in the hospital recommended basal bolus insulin therapy as a proactive and physiological approach, opposing to the reactive approach of sliding insulin scale [1, 3]. The basal bolus regimen includes three components: (1) basal insulin, (2) bolus (nutritional/prandial) insulin given before meals, and (3) supplemental or correctional insulin. The latter term refers to the addition of supplemental rapid acting insulin to scheduled bolus doses, to correct residual hyperglycemia—not to be confused with sliding scale insulin (SSI) or variable dose subcutaneous insulin regimen as also known in the UK. The guidelines emphasized that the prolonged use of sliding scale insulin as the only regimen to mitigate inpatient hyperglycemia was not effective for most patients. Similarly, the Endocrine Society guideline for the management of diabetes recommended against using SSI alone for most patients with type 2 diabetes, with basal-bolus insulin regimen being the preferred approach for most of these patients [2]. Several other scientific societies, including the American Diabetes Association [1], the American College of Physicians [34], the Society of Critical Care Medicine [35], the Joint British Diabetes Societies for Inpatient Care [33], and the Spanish Diabetes Society [32], produced comprehensive guidelines to guide clinicians on the management of ICU and non-ICU patients with hyperglycemia.

Across the USA, several hospitals have implemented system-wide initiatives to expand the use of basal bolus insulin therapy, and decrease the use of insulin sliding scale (use of short or rapid-acting insulin without basal insulin) and non-insulin agents in non-ICU settings. In addition, several healthcare systems have implemented “Specialized Diabetes Consult Service,” including endocrinologists, advanced practitioners such as nurse practitioners and physician assistants, pharmacists, and diabetes care and education specialists to manage persons with diabetes in the hospital. The benefits of these dedicated inpatient teams have been validated in different hospital environments including academic, community, and specialized hospital services36. In the UK, the use of the diabetes inpatient nursing teams has been shown to significantly reduce length of stay and improve patient satisfaction while in hospital [37, 38].

Similarly, there is very limited evidence on the management of hospitalized patients specifically with type 1 diabetes, as opposed to insulin treated type 2 diabetes [39]. People with type 1 diabetes are a high-risk population with a higher risk of large glycemic excursions, and frequently requiring specialist care by endocrinologists or diabetologists. Recent developments on the use of continuous glucose monitoring (CGM) and automated insulin delivery systems (AIDs) have improved glycemic care for ambulatory patients with type 1 diabetes, with consensus meeting guidelines recently published—a topic beyond the scope of this article [40, 41]. Work on the safety and efficacy of closed loop devices in the hospital are ongoing [42, 43].

Evolution of Personalized Management of Diabetes in the Hospital—Role of Non-insulin Therapies

Recent evidence from randomized and observational studies, as well as the experience from inpatient diabetes services, have shown that not all patients require basal-bolus regimens as the single or universal approach to managing diabetes in the hospital setting. A need for a more personalized approach has become evident in clinical practice. The development of newer anti-hyperglycemic agents for ambulatory diabetes care, with different mechanisms of action and lower risk of hypoglycemia, has triggered the need to assess innovative approaches to the traditional basal bolus approach. Indeed, non-insulin agents are used widely in Europe and outside the USA [4447], despite guideline recommendations against it. There are many potential reasons for using non-insulin agents which include, but not limited to, the fact that the basal bolus regimen is complex, labor-intensive, and associated with risk of hypoglycemia [47]. The lack of confidence or knowledge of medical staff in managing diabetes in general is also likely to be a factor [48, 49].

Predictors of response to basal-bolus therapy have been identified, including high HbA1c levels [50]. Several prospective randomized trials and observational studies have shown that patients with mild inpatient hyperglycemia may be managed with simpler regimens, such as non-insulin therapy [51••, 9], or combination of basal or correctional insulin therapy with incretin therapy [52••, 53••, 5456], instead of basal-bolus insulin therapy.

Basal-Plus Regimen

A basal-plus approach may be preferred for patients with mild hyperglycemia, decreased oral intake, or for patients undergoing surgery. This regimen consists of a single dose of basal insulin (~0.1–0.25 units/kg/day) along with correction doses of insulin for elevated glucose levels before meals or every 6 h (if “nil by mouth”). A randomized clinical trial in 370 general medicine and surgical patients with type 2 diabetes reported that the basal-plus approach resulted in similar improvements in mean daily blood glucose levels compared to basal-bolus regimens, with a trend in reducing hypoglycemic events < 70 mg/dl (17% vs 13%)—albeit the study was not powered for this outcome. The ADA Standard of Care recommends starting with the basal-plus correction approach in patients with type 2 diabetes with poor or uncertain nutritional intake [1].

Use of DPP-4 Inhibitors

Given the safety profile of incretin agents, several investigators have assessed the efficacy of DPP-4 inhibitors alone or in combination with basal insulin in hospitalized non-ICU patients with type 2 diabetes. Several prospective randomized and observational studies have shown that therapy with DPP-4 inhibitors is well tolerated and associated with lower risk of hypoglycemia, and in non-inferior glycemic outcomes compared to basal-bolus insulin regimens in patients with mild hyperglycemia. In a multi-center, prospective, non-inferiority, randomized trial, Pasquel et al. compared the safety and efficacy of sitagliptin with basal insulin to the traditional basal-bolus regimen among hospitalized, non-critically ill patients with type 2 diabetes [51••]. The authors reported that mean blood glucose in the basal plus sitagliptin group was not inferior to that in the basal-bolus group (mean difference 1.8 mg/dl), with no differences in hypoglycemia or hospital complications. Hence, they concluded that basal plus DPP-4 regimen may be an alternative to the labor-intensive basal-bolus regimen in select patients. In an accompanying editorial article, Nauck and Meier suggested that this study was a step forward in the era of personalized and individualized care of inpatient hyperglycemia [57]. Taking into consideration that patients with high insulin needs were excluded, up to 26% have recommended glycemic outcomes (HbA1c < 7%), and 38% had admission glucose < 200 mg/dl, this study suggested that patients with mild-to-moderate inpatient hyperglycemia, frail or elderly patients, and those with renal failure or high risk of hypoglycemia may be safely managed with this simplified approach of DPP-4 inhibitors with basal insulin combination. Other studies using saxagliptin [58] in general medicine and linagliptin in general surgery patients [53••] have confirmed these findings.

Overall, therapy with DPP-4 inhibitors, particularly when combined with low-dose basal insulin, has shown to provide similar glycemic outcomes compared to basal-bolus insulin, and is associated with less hypoglycemia and lower treatment burden [59]. Hence, it is reasonable to recommend that for hospitalized patients with admission glucose below 180–200 mg/dl, the use of basal insulin plus correctional insulin and/or DPP-4 inhibitors may be considered. Since previous HbA1c can be a predictor for achieving recommended inpatient glycemic outcomes, patients having previous target or near-target glycemic outcomes—as evident by HbA1c < 8%, or with low insulin requirements (< 0.5 units/kg/day), or with poor oral intake—particularly those undergoing non-cardiac surgery, can be candidates for therapy with DPP-4 inhibitors plus correction by rapid insulin or combined therapy with basal insulin.

Use of GLP-1 Agents

Following the validation studies of GLP-1 agonists on the initial positive outcomes in the prevention of cardiovascular events, there was an increased interest in assessing the safety and efficacy of these agents in hospitalized patients—particularly patients with cardiac disease or undergoing cardiac surgery. Few pilot studies using intravenous formulations of GLP-1 agonists or native GLP-1 in patients undergoing cardiac surgery showed no safety signals, but there was a need for larger studies to confirm their preliminary results [6063].

A few randomized controlled studies using liraglutide have reported improvement in glycemic outcomes. Polderman et al. administered low-dose liraglutide (0.6 mg) the evening before surgery and found that mean glucose 1-h post-surgery was lower, compared to insulin infusion or bolus insulin, but with more nausea reported [64]. In another study in non-critically ill patients, Fayfman et al. found that treatment with short-acting exenatide twice daily plus basal insulin resulted in better glycemic outcomes compared to either basal-bolus or exenatide alone, but also demonstrated higher rates of gastro-intestinal side effects [52••]. While these pilot studies showed promising results, there is a need for larger studies, and using newer longer-acting agents, to determine if there is a benefit of using GLP-1 agonists in the hospital to counterbalance the gastro-intestinal side effects. With newer, weekly, and more potent GLP-1 agonists already approved for diabetes, weight management and cardiovascular prevention—benefits beyond glycemic outcomes—and with ongoing developments of twin-incretins, one unanswered question remains on the impact of these agents administered before admission and continued effect during hospitalization, but no data is available to our knowledge. The use of GLP-1 agonists in hospitalized patients has been reviewed in detail elsewhere [65].

Use of SGLT2 Inhibitors

SGLT2 inhibitors, along with GLP-1 inhibitors, have changed the treatment paradigm in ambulatory patients with type 2 diabetes, shifting from a glucose-centric approach to include prevention of cardiovascular events and kidney disease progression, weight loss, and prevention of hypoglycemia1. Previous work looked at the effect of dapagliflozin on corticosteroid-induced hyperglycemia in people hospitalized with an acute exacerbation of chronic obstructive pulmonary disease (COPD), where it failed to demonstrate an improvement in hyperglycemia [66]. Another recent pilot randomized controlled trial evaluated the safety and efficacy of empagliflozin compared to placebo in patients hospitalized with acute decompensate heart failure with (83%) and without diabetes (17%). The authors reported no differences in dyspnea score, diuretic response, N-terminal pro-brain natriuretic peptide (NT-ProBNP), and length of stay (LOS). As expected, and confirming ambulatory studies, there was a decrease in deaths, and hospital readmission for heart failure during the outpatient follow-up to 60 days [67]. Another pilot study of persons with type 2 diabetes assessed the efficacy and safety of empagliflozin as add-on therapy when admitted for acute heart failure [68]. During the initial seven days of hospitalization, there was no difference in left ventricular function, NT-ProBNP, creatinine, and hematocrit. While these two studies are just preliminary data, both confirmed that use of SGLT2 inhibitors in the inpatient setting may be safe, but with limited efficacy benefits. These results are expected since efficacy outcomes are likely be noticed after longer follow-up, and not during a short period of inpatient stay (~< 7 days).

More recently, a study looking to see if people hospitalized with COVID-19 and at least one cardiovascular risk factor (i.e., not limited to those with diabetes) would benefit from dapagliflozin showed that there were no differences in outcomes compared to placebo [7]. Other preliminary work has suggested that the use of SGLT2 inhibitors is relatively safe, with low levels of hypoglycemia, acidosis (as measured by plasma bicarbonate), or ketonemia [69]. However, these data are complicated by the dropout rate of almost 55% of those taking these drugs. Concerns for diabetes ketoacidosis (DKA) have also limited the use of these agents in the hospital, with the DARE study reporting only 2 “mild” cases [7]. A further review of the literature identified 42 reports of peri-operative euglycemic DKA up to 2019, with presentation ranging from few hours up to 6 weeks after surgery [70].

At this stage, the use of SGLT2 inhibitors in the hospital is still experimental in patients with diabetes, but adding this therapy during the discharge process may improve clinical inertia and allow more patients to benefits from these agents. These drugs are potentially beneficial if their safety can be assured [71]. International consensus guidelines for management and prevention of euglycemic DKA in patients with type 1 diabetes have been published and can provide excellent guidance [72], but there are not specific recommendations for patients with type 2 diabetes.

Use of Metformin

The use of metformin in the hospital have not been recommended by clinical guidelines due to concerns with lactic acidosis risk and other side effects [13]. Several single-center retrospective studies, however, have reported no increased risk of adverse events. Metformin is used in up to 20–50% of patients admitted to hospitals in developing countries [44, 73, 74]. While there is controversy, it is customary to stop metformin in patients undergoing radiological studies with utilization of intravenous contrast for 72 h from the start of the procedure, such as percutaneous coronary intervention (PCI) [75, 76]. However, several observational studies have shown a low risk of metformin-associated lactic acidosis after radiological procedures or PCI [77, 78], particularly in patients with GFR > 30–60 mL/min/1.73 m2. However, metformin should not be used in patients at risk of lactic acidosis, such as those with renal failure, sepsis, hypoxia, liver failure, and alcoholism. A recent review of metformin use in the hospital confirmed the lack of sound quality evidence to support its continued use [79]. The authors concluded that if perons are relatively stable, with no renal impairment and no increased risk of lactic acidosis, then it may be possible to safely continue it.

Use of Sulfonylureas

Sulfonylureas has been used extensively for many years. Their benefits beyond glucose-lowering effects are limited, with concerns for hypoglycemia [80, 81]. Several observational studies have previously shown increased risk of cardiovascular events in patients treated with sulfonylureas [8284]. However, the CAROLINA trial showed non-inferiority of glimepiride to linagliptin in regard to first occurrence of cardiovascular events in persons with elevated cardiovascular risk and type 2 diabetes [46]. Despite these concerns, sulfonylureas are used in up to 20% of hospitalized patients in the USA and UK, but data on prevalence use is limited [45, 74, 85]. As suggested by two recent risk prediction models, the use of sulfonylureas in the hospital is associated with hypoglycemia [86, 87]. The rates of hypoglycemia ranged from ~20 to 30% [45, 85, 88]. In a single-center study in the USA, Deusenberry et al. found that up to 19% of patients that continued or initiated therapy with sulfonylureas in the hospital experience a hypoglycemic episode, similar to therapy with insulin [85]. The highest risk for hypoglycemia was noted among elderly patients, with renal failure or using concurrent insulin therapy [85].

In a retrospective study of 11 acute hospitals in the UK, hypoglycemia related to sulfonylureas affected up to 30% of the cohort, with many experienced recurrent hypoglycemic episodes [12], and most hypoglycemic episodes occurring during the night or early-morning shifts. This is of great concern because the use of point-of-care capillary glucose testing performed before fasting and each meal is inadequate to detect nocturnal or prolonged hypoglycemia, compared to continuous glucose monitoring [89]. Additionally, the hypoglycemic events caused by sulfonylureas (particularly the old and long-acting agents) are frequently more severe, difficult to solve, and longer, something particularly concerning in the hospital setting [90].

There are differences in recommendations between scientific societies, such as US guidelines recommended against the use of sulfonylureas in the hospital [2], while UK guidelines allow the use of sulfonylureas to manage glucose excursions in patients taking once-daily oral steroids in the morning, if necessary, along with morning administration of basal human insulin [91]. Other European countries, like Spain, consider that secretagogues (sulfonylureas, glinides) have a relative contraindication during hospitalization, especially the long-acting sulfonylureas [32].

Use of Thiazolidinediones

Use of thiazolidinediones in ambulatory settings has decreased in recent years, trending from 28.5 to 5.6% from 2006 to 2013 [92]. Thiazolidinedione use in the hospital is less common, with estimated prevalence reports of < 10% [74]. Concerns about the time they take to achieve effective glycemic outcomes (i.e., several weeks to months) and their predisposition for fluid retention, and heart failure decompensation—particularly when combined with insulin—make these agents less attractive for inpatient use [2].

Future of Inpatient Diabetes Management

An individualized approach has been recommended to select an effective and safe treatment approach for the management of inpatient hyperglycemia in patients with type 2 diabetes. The best treatment approach should incorporate patient characteristics (e.g., duration of diabetes, BMI), severity of hyperglycemia (admission glucose, HbA1c), hypoglycemia risk (elderly, renal, or liver failure), and diabetes treatment complexity prior to admission (Table 2).

Table 2 Selection of antihyperglycemic agents in the hospital
Fig. 1
figure 1

Personalized treatment in non-ICU hospitalized patients with T2D **Regimen complexity refers to the number and type of agents (oral agents, GLP-1RA, and insulin) used in the outpatient setting, with more complex regimens referring to those including multiple agents and/or insulin therapy. SSI refers to use of correctional sliding scale insulin. Patients on multiple agents are likely to have worsening hyperglycemia if all preadmission agents are stopped and may respond better to basal + OAD or a basal-bolus approach [95]

Among frail patients (i.e., elderly, advanced kidney disease) or those with target glycemic outcomes, less aggressive regimens reduce the risk of iatrogenic hypoglycemia. The use of correction insulin alone usually works in insulin naïve and recently diagnosed patients with BG levels < 180 mg/dL [9]. If glycemic targets are not achieved in 24–48 h, adding a basal insulin (“basal-plus” regimen) at starting dose of 0.1 to 0.25 units per kg of actual body weight, plus correction and prandial insulin before meals for BG levels > 180 mg/dL, is likely to manage most patients with T2D, particularly patients who are insulin naïve. [93]

For patients with moderate (BG >200 mg/dL) or severe hyperglycemia (BG >300 mg/dl), more intensive insulin regimens are indicated, Figure 1. For patients receiving insulin therapy prior to admission, the home regimen is used to calculate the total daily dose (TDD). Insulin-naïve patients with significant hyperglycemia and adequate oral intake can be started at a TDD between 0.3 and 0.5 units/kg divided on a ratio of basal/bolus insulin of 50:50%. [94] Lower doses are recommended for those at high hypoglycemia risk.