Introduction

Hyperglycemic crises, such as a hyperosmolar hyperglycemic state (HHS) and diabetic ketoacidosis (DKA), are severe acute complications of diabetes mellitus [1]. HHS, which is typical but not exclusive of patients with type 2 diabetes mellitus (T2DM), is characterized by marked hyperglycemia, hyperosmolarity, and severe dehydration [2]. DKA, typical but not exclusive of patients with type 1 diabetes mellitus (T1DM) or insulin-deficient diabetes [3], is characterized by hyperglycemia, metabolic acidosis with elevated anion gap due to increased ketone body concentrations, and variable degrees of osmolality and dehydration [1]. Both entities share common symptoms, such as weight loss, polydipsia, and polyuria [4], the latter being a major cause of dehydration. In addition, infectious symptoms can be common to both conditions, given that infections often act as precipitants of these crises [5]. However, there are some differences in the symptom presentation of  HHS and DKA. The course of HHS is generally slow and insidious, whereas that of DKA is typically abrupt [6]. This is because the accumulation of ketones that occurs in DKA can produce acute symptoms characteristic of DKA: acetone breath, Kussmaul breathing, vomiting, and abdominal pain [4]. This acute symptomatology can lead patients with DKA to seek medical attention quickly, so the polyuria of DKA usually has a short evolution time and produces only a state of mild hypovolemia. However, if the DKA is not treated in time, hyperglycemia and dehydration can progress, producing a hyperosmolar state similar to that of HHS, which can contribute to altered mental status [7]. Therefore, cases can overlap between HHS and DKA [5, 8,9,10].

Both HHS and hyperosmolar DKA, which can be collectively referred to as hyperosmolar hyperglycemic crises (HHC), have a high mortality rate [8], including in the long term [11, 12]. HHC must be treated intensively with fluids and insulin [1]. In the initial phase, intravenous insulin therapy is recommended, with a transition to subcutaneous insulin therapy when the hyperglycemia is corrected and the patient is able to tolerate oral feeding [1]. Intensive insulin therapy carries a risk of hypoglycemia during treatment of hyperglycemic crises. In fact, hypoglycemia, along with hypokalemia, is the most common complication of hyperglycemic crises [8]. Several studies have shown that the incidence of hypoglycemia during hyperglycemic crises depends on the dosage and amount of insulin received [13,14,15,16,17,18,19,20]. In addition, 2 studies performed in patients admitted for DKA demonstrated a higher incidence of hypoglycemia in patients with low body weight [18], fever [21], hepatic disease [21], and impaired renal function [18, 21]. Thus, few studies have analyzed risk factors other than insulin therapy for the occurrence of hypoglycemia during the treatment of hyperglycemic crises.

Hypoglycemia alone can lead to severe symptoms, such as seizures, coma, or even death [22]. In addition, particularly during HHC, too rapid correction of hyperglycemia, and thus osmolality, could lead to cerebral edema, a rare but potentially fatal complication in adults [23]. For these reasons, it is essential to avoid hypoglycemia during HHC, and it is recommended that glucose should not be lowered below 200–300 mg/dL during the first few hours of treatment [1], which takes place during the initial intravenous insulin therapy phase (IIITP).

Previous studies in patients hospitalized for any reason have shown that hypoglycemia is a marker of poor short- and long-term prognosis [24,25,26]. However, only 1 study has analyzed the prognostic value of hypoglycemia specifically during the management of hyperglycemic crises in adult patients, showing that hypoglycemia of less than 40 mg/dL within 48 h of admission is associated with increased mortality during hospitalization [8]. To our knowledge, no studies in adults have analyzed the long-term prognostic value of hypoglycemia during hyperglycemic crises. The aim of the present study was to analyze, in patients admitted for HHC, the risk factors for the occurrence of hypoglycemia and the mid- and long-term prognostic value of hypoglycemia during the treatment of HHC, both in the IIITP and in the later subcutaneous insulin therapy phase (LSITP). To our knowledge, this is the first study of these characteristics.

Methods

Study design and setting

This was a retrospective cohort study conducted on adult patients who were hospitalized for HHC at a university hospital in Spain from June 2014 to October 2023. All the patients included fulfilled HHC criteria on admission, as adapted from previous criteria [1, 2, 8]: blood glucose > 1000 mg/dL, or blood glucose > 500 mg/dL and plasma osmolality ≥ 315 mOsm/kg. Among the patients with HHC, those with metabolic acidosis (pH ≤ 7.30 and bicarbonate ≤ 18 mEq/L) with positive ketonemia (point-of-care β-hydroxybutyrate levels ≥ 3 mmol/L) or, failing that (n = 4), positive ketonuria (≥ 3 + intensity), were considered to have hyperosmolar DKA. The remaining patients with HHC were considered to have pure HHS [1, 2, 8, 27]. Given that all the patients were admitted for symptomatic hyperglycemia ≥ 200 mg/dL, all patients had a diagnosis of diabetes on admission [28]. Patients were classified as having T1DM, T2DM, or diabetes secondary to pancreatic disease according to the American Diabetes Association (ADA) criteria [28]. All patients admitted with hyperosmolar DKA were tested for pancreatic autoimmunity and/or C-peptide to differentiate T1DM from T2DM [28].

We reviewed hospital admissions between June 2014 and December 2015 coded as 249.1, 250.1, 249.2, and 250.2; admissions between January 2016 and October 2023 coded as E08.1, E09.1, E10.1, E11.1, E13.1, E08.0, E09.0, E11.0, and E13.0; and all Endocrinology admissions between June 2014 and October 2023. The search identified 174 adults who met the above-mentioned criteria for HHC. For patients admitted more than once for HHC, the first admission meeting HHC criteria was selected. Four patients were excluded from the study because they received insulin therapy for less than 24 h due to death during the first hours after admission, thus having a very short exposure time to insulin therapy for hypoglycemia onset. A total of 170 patients (82 [48.2%] men, median age 72 years, range 19–98 years) met the criteria and were included in the study.

Consensus recommendations for the treatment of HHC were followed for all patients: first an IIITP, then transition to a LSITP when the clinical situation allowed [1]. Seven patients died during the IIITP, without receiving subcutaneous insulin. The hospital's standard protocol for monitoring glycemic control in patients admitted for HHC involves taking 5–10 capillary blood glucose measurements per day.

Main determinations

Outcomes

In-hospital hypoglycemia

A patient was considered to have hypoglycemia when he/she had at least 1 capillary blood glucose determination of ≤ 69 mg/dL during hospitalization. According to the ADA classification [22], level 1 hypoglycemia was defined as a blood glucose level between 54 and 69 mg/dL, and level 2 hypoglycemia was defined as a blood glucose level < 54 mg/dL. The total days of hospitalization with at least 1 determination in the hypoglycemia range were recorded; based on these data, the percentage of hospitalization days with hypoglycemia was calculated, using the total duration of hospitalization as the denominator.

In-hospital hypoglycemia during the IIITP

A patient was considered to have had hypoglycemia during the IIITP if he/she had at least 1 capillary blood glucose determination of ≤ 69 mg/dL from the time of admission to the time of discontinuation of intravenous insulin therapy. For patients who experienced hypoglycemia during the IIITP, the lowest capillary glucose value recorded during that phase was registered.

In-hospital hypoglycemia during the LSITP

A patient was considered to have had hypoglycemia during the LSITP if he/she had at least 1 capillary blood glucose determination of ≤ 69 mg/dL from the time of discontinuation of intravenous insulin therapy (i.e., the beginning of the subcutaneous insulin therapy) until discharge from the hospital. For patients who experienced hypoglycemia during the LSITP, the lowest capillary glucose value recorded during that phase was registered.

Length of hospital stay

It was calculated as the number of days elapsed from the date of admission to the date of discharge.

Metabolic control after hospital discharge

Follow-up glycated hemoglobin (HbA1c) was the first available determination after hospital discharge, provided that at least 2 months and no more than 12 months had elapsed after discharge. A patient was considered to have good glycemic control at discharge if he/she had a follow-up HbA1c < 7% [22].

In-hospital and long-term mortality

Mortality during hospitalization was recorded. Long-term all-cause mortality was also registered using the electronic clinical record, which registers all patient contacts with the public health system (including hospital admissions and consultations, primary care visits, and mortality). Follow-up was extended until January 2024. Survival was calculated from the day of hospital admission until death or until the last reliable contact with the health system to account for possible misclassification due to change of address. Median follow-up was 652 days (range 2–3460 days).

Covariates

The following variables were registered from each patient: age, sex, serum glucose on admission, serum osmolality on admission (if not determined, it was calculated by using the following formula: Sodium [in mEq/L] × 2 + Glucose [in mg/dL]/18 + Urea [in mg/dL]/6), serum potassium on admission (a patient was considered to have hypokalemia if serum potassium levels were ≤ 3.5 mmol/L, and hyperkalemia if potassium levels were ≥ 5.5 mmol/L), glomerular filtration rate on admission (calculated from serum creatinine levels applying the CKD-EPI formula) [29], body mass index (BMI), pre-existing diagnosis of diabetes prior to admission (as per the ADA criteria) [28], previous ambulatory treatment with insulin, baseline HbA1c value (obtained during hospitalization or, failing that, the most recent value available in the previous year), Charlson Comorbidity Index (CCI, an estimator that includes age, baseline glomerular filtration rate, previous history of diabetes, myocardial infarction, heart failure, peripheral vascular disease, cerebrovascular accident, hemiplegia, dementia, chronic obstructive pulmonary disease, connective tissue disease, acquired immunodeficiency syndrome, peptic ulcer disease, liver disease, solid tumor, leukemia, and lymphoma) [30], admission to an intensive care unit (ICU), presence of a probable infection (a patient was considered to have a probable infection if he/she had a fever or received antibiotic treatment during hospitalization), international units (IU) of intravenous insulin received in the first 24 h of admission, duration (hours) of the  IIITP, IU of subcutaneous insulin received in the first 24 h of the LSITP, and other treatments received during hospitalization (oral or intravenous corticosteroids, sulfonylureas, meglitinides, metformin, dipeptidyl peptidase-4 inhibitors, sodium-glucose cotransporter-2 inhibitors, glucagon-like peptide-1 agonists, and thiazolidinediones).

Statistical analyses

We employed the chi-squared test to compare proportions, the Mann–Whitney test to compare numerical data between independent groups, and Spearman’s rank test to evaluate correlation. We employed Kaplan–Meier curves for the assessment of long-term mortality rates according to hypoglycemia during admission, and the log-rank test for between-group comparisons. Cox regression (proportional hazards regression) was used for multivariate analysis of survival during follow-up. Logistic regression was used for multivariate analyses of factors associated with mortality risk at a given time point. In those models, age was entered in years, CCI in points, and IIITP duration in hours. Age was not factored into the models including the CCI because age is a component of this index. The remaining variables were entered into the models as binary (yes/no), including sex (reference category, female), infection (reference category, no), HHC variant (reference category, hyperosmolar DKA), and form of hypoglycemia during hospitalization (reference category, no). Covariates were forced to enter the equation in all multivariate models. The proportional hazards assumption was checked using statistical tests and graphical diagnostics based on the Schoenfeld residuals. All tests were 2-tailed. P-values lower than 0.05 were considered statistically significant.

Results

Characteristics of the patients admitted for HHC

Of the 170 patients admitted for HHC, 125 (73.5%) had T2DM, 42 (24.7%) had T1DM, and 3 (1.8%) had diabetes secondary to pancreatic disease. Table 1 compares the characteristics of the patients with pure HHS with the patients with hyperosmolar DKA. Compared with the patients admitted with hyperosmolar DKA, the patients with pure HHS were older, had a  higher frequency of diabetes unknown prior to admission, higher T2DM frequency, higher BMI, lower hyperkalemia frequency, higher CCI (particularly, lower baseline glomerular filtration rate, and a higher frequency of heart failure, cerebrovascular accident, and cancer history), and, as expected from the diagnostic criteria, higher pH, higher bicarbonate levels, and lower β-hydroxybutyrate levels (Table 1).

Table 1 Comparison of patients with pure hyperglycemic hyperosmolar state (HHS) and hyperosmolar diabetic ketoacidosis (DKA)

Prevalence of hypoglycemia during hospitalization for HHC and associated risk factors

A total of 106 (62.4%) patients experienced hypoglycemia during hospitalization; 53 (31.2%) presented only level 1 hypoglycemia, and 53 (31.2%) patients presented at least 1 episode of level 2 hypoglycemia. Forty-five (26.5%) patients developed hypoglycemia during the IIITP. Of the 163 patients who received insulin during the LSITP, 86 (52.7%) developed hypoglycemia during this phase.

Table 2 shows a comparison of patients with and without hypoglycemia at any time during hospitalization, during the IIITP, and during the LSITP. Patients who had hypoglycemia during the IIITP had lower BMI, lower frequency of hyperkalemia, higher intravenous insulin doses in the first 24 h of admission, and longer IIITP duration. Patients who had hypoglycemia during the LSITP were older, had higher CCI, higher frequency of ambulatory treatment with insulin prior to admission, lower serum osmolality on admission, higher frequency of infection during admission, and higher subcutaneous insulin doses in the first 24 h of the LSITP. A history of myocardial infarction was more frequent in patients who had hypoglycemia during any time of hospitalization. There was no significant association between the occurrence of hypoglycemia and any of the other variables listed in Table 2: sex, known diagnosis of diabetes before admission, type of diabetes, other tests on admission (HbA1c, serum glucose, and glomerular filtration rate), history of heart failure, cerebrovascular accident or cancer, type of hyperglycemic crisis (pure HHS or hyperosmolar DKA), ICU admission, use of non-insulin antidiabetic agents, or use of systemic corticoids (which were used in 36 patients, primarily as supportive therapy for infections [n = 11], supportive therapy for cancer [n = 10], and immunosuppressive therapy for solid organ transplantation [n = 5]).

Table 2 Characteristics of patients with hypoglycemia during hospitalization for hyperosmolar hyperglycemic crises

Longitudinal studies in relation to hypoglycemia during hospitalization for HHC

Length of hospital stay

The patients who had hypoglycemia during hospitalization had longer hospital stays than those who did not (Table 2). However, there was no significant correlation between the days of hospitalization and the proportion of days of hospitalization with at least 1 episode of hypoglycemia (Rho = 0.036; p = 0.646).

Glycemic control after hospital discharge

Follow-up HbA1c was available for 68 patients discharged from the hospital. Mean follow-up HbA1c was lower in patients with T2DM (n = 45) than in patients with T1DM (n = 23) (6.9% versus 9.2%, respectively; p < 0.001). Thirty-three (48.5%) patients had good glycemic control at discharge (i.e., follow-up HbA1c < 7%).

Follow-up HbA1c was higher in patients who had level 2 hypoglycemia during hospitalization (n = 16; mean HbA1c, 8.9%) than in those who did not (n = 52; mean HbA1c, 7.4%; p = 0.007). When selecting patients with T2DM, mean follow-up HbA1c was also higher in patients who had level 2 hypoglycemia (n = 7; mean HbA1c 8.4%) than in those who did not (n = 38; mean HbA1c 6.7%; p = 0.040). When selecting patients with available follow-up HbA1c who experienced hypoglycemia during hospitalization (n = 35), the lowest capillary glucose value recorded during hospitalization was lower in patients who had poor glycemic control (HbA1c ≥ 7%) after discharge (n = 21; mean 47 mg/dL) than in those who had good glycemic control after discharge (n = 14; mean 58 mg/dL; p = 0.004). There was a directly proportional correlation between the percentage of hospitalization days with hypoglycemia and the follow-up HbA1c level (Rho = 0.268, p = 0.027).

All-cause mortality

A total of 90 (52.9%) patients died during the whole follow-up: 50 died during the first year of follow-up (11 died during hospitalization and 39 died after discharge), 11 died between the first and second year of follow-up, and 29 died after the second year of follow-up. Patients with pure HHS had higher mortality than patients with hyperosmolar DKA (Table 1). Mortality during hospitalization was higher in patients who had hypoglycemia during the IIITP than in those who did not (Table 2). When selecting patients who experienced hypoglycemia during the IIITP (n = 45), the lowest capillary glucose value recorded during the IIITP was lower in patients who died during hospitalization (mean, 43 mg/dL) than in those who did not (mean, 54 mg/dL; p = 0.022).

Mortality during the follow-up period was higher among those who experienced hypoglycemia during the IIITP compared to those who did not (Fig. 1). Similarly, in the univariate survival analysis, mortality during follow-up was higher in patients who developed hypoglycemia during the LSITP (Fig. 1).

Fig. 1
figure 1

Probability of survival (Kaplan–Meier curves) in patients stratified according to the various forms of hypoglycemia during hospitalization for hyperosmolar hyperglycemic crises. Vertical ticks represent censored data. P-values were calculated with the log-rank test

On Cox regression analysis (proportional risk model), the association between hypoglycemia during the IIITP and mortality risk persisted after adjusting for covariates, including age, sex, CCI, diagnosis of pure HHS (versus hyperosmolar DKA), infection during hospitalization, and IIITP duration (Table 3). In these models, older age, higher CCI, and a diagnosis of pure HHS were significant risk factors for long-term mortality (data not shown; Additional file 1). However, after adjusting for the aforementioned covariates, the association between hypoglycemia during the LSITP and mortality risk was no longer present (Table 3).

Table 3 Multivariate analyses of factors associated with mortality (Cox regression)

Among the 150 evaluable patients, the 1-year mortality was higher in patients with hypoglycemia during the IIITP than in patients without it (relative risk 1.70, 95% CI 1.07–2.69, p = 0.026; Table 2). Likewise, among the 141 evaluable patients, the 2-year mortality was higher in the patients with hypoglycemia during the IIITP than in those without it (relative risk 1.64, 95% CI 1.14–2.35, P = 0.012; Table 2). On multivariate analysis (logistic regression), hypoglycemia during the IIITP was associated with both 1-year and 2-year mortality after adjusting for covariates (data not shown; Additional file 1).

Discussion

To date, only 1 study had examined the prognostic value of hypoglycemia in adults admitted for hyperglycemic  crises, finding that hypoglycemia of less than 40 mg/dL during the first 48 h of treatment is associated with higher in-hospital mortality [8]. A recent study of the pediatric population in Ethiopia showed that hypoglycemia during DKA is a predictor of long-term mortality in children younger than 15 years of age [31]. Our study confirmed that early hypoglycemia during HHC is associated with higher in-hospital mortality and, to our knowledge, was the first to analyze the prognostic significance of hypoglycemia during HHC on long-term mortality. Specifically, hypoglycemia during the early IIITP for HHC was independently associated with long-term mortality. In addition, the present study also analyzed the risk factors associated with the occurrence of hypoglycemia during HHC and the effect of hypoglycemia during HHC on glycemic control after hospital discharge.

Our results showed that hypoglycemia is common during hospitalizations for HHC, occurring in more than half of the patients, particularly during the LSITP. The frequency of hypoglycemia during the IIITP (mean duration, 67 h) in our sample (present in about a quarter of patients) was proportionally similar to that observed in the first 48 h in previous studies (12–16%) [8]. Consistent with previous studies in patients hospitalized for hyperglycemic  crises, hypoglycemia was more frequent in patients with low BMI [18], in patients with probable concomitant infection [21], and in those receiving higher doses of insulin [17]. Additional risk factors found in our study for hypoglycemia during HHC were older age, the presence of a greater number of comorbidities (higher CCI), and outpatient treatment with insulin prior to admission; these had not been reported in patients admitted for hyperosmolar crises, but had been documented in patients with diabetes who were admitted for other reasons [24]. Routine blood tests on admission were not associated with hypoglycemia, except for serum potassium concentrations: patients who had hypoglycemia during the IIITP had a lower frequency of hyperkalemia. The reason for this association is unknown, since patients with hyperkalemia received similar doses of intravenous insulin and had a similar glomerular filtration rate as patients with hypo- or normokalemia (data not shown; Additional file 1). Future studies are needed to confirm this association and the reason for this effect.

Our study showed that hypoglycemia during HHC is associated with long-term all-cause mortality; however, only hypoglycemia during the IIITP maintained the association with mortality risk after adjusting for confounders. The reasons why hypoglycemia during HHC therapy is associated with mortality are not entirely known. In the early acute phase (i.e., during the IIITP), abrupt changes in plasma osmolality caused by rapid correction of hyperglycemia can lead to neurological damage [23]. Although no cases of cerebral edema were described in our series, we cannot rule out the possibility that these early hypoglycemic episodes after an abrupt change in osmolality could have left some kind of neuronal imprint that contributes to increased mortality. It is well known that hypoglycemia, even when asymptomatic, can cause a vicious cycle of recurrent hypoglycemia by leading to hypoglycemia-associated autonomic failure, the clinical syndrome of deficient glucose counter-regulation and impaired awareness of hypoglycemia [32]. Previous studies have shown that hypoglycemia in individuals with T2DM [33,34,35,36] and T1DM [35] is associated with an increased risk of cardiovascular disease. Our study also showed that a history of myocardial infarction is associated with hypoglycemia during HHC, independently of the insulin dose received (data not shown; Additional file 1). The reason for this finding is unknown, but could be related to cardiovascular disorders associated with hypoglycemia [32]. Moreover, previous studies have demonstrated that hypoglycemia (particularly, severe hypoglycemia requiring external assistance) is associated with long-term mortality [35,36,37,38], including all-cause and cardiovascular mortality, but also with noncardiovascular mortality [36, 37]. Of note, the relative risk (hazard ratio) of mortality associated with hypoglycemia in these studies was between 2- and threefold [35, 36, 38], similar to that observed in the present study. Associations between hypoglycemia and mortality might not establish a causal connection [39]. Hypoglycemia could be a marker of serious underlying disease rather than a cause of death [36, 39]. However, in some studies hypoglycemia was associated with mortality after adjusting for the CCI [38], as we did in the present study. Another factor that might contribute to long-term mortality in patients with hypoglycemia is poorer glycemic control at discharge, which our study found in patients with level 2 hypoglycemia during HHC treatment. The reason why patients with level 2 hypoglycemia had higher follow-up HbA1c levels could be that the hypoglycemic treatment at discharge might have been less intense in this group of patients to prevent new episodes of hypoglycemia. Future studies are necessary to clarify the pathways by which hypoglycemia during the IIITP of HHC is associated with short- and long-term mortality.

The study has limitations that must be acknowledged, including those that are common to all retrospective studies (particularly, information bias and the possibility that confounding factors were not adequately controlled) [40]. Post-discharge glycemic control was assessed in terms of HbA1c up to 12 months after discharge, which may be too long a time to consider that HbA1c at that point was influenced by hypoglycemia during hospitalization. In terms of strengths, it should be taken into account that this is a real-life study, with a uniform therapeutic protocol and prolonged follow-up.

Conclusions

Hypoglycemia during HHC is a marker of long-term all-cause mortality, especially when it occurs during the IIITP. The results support the recommendation not to excessively lower glucose levels during the first hours of insulin treatment [1], with particular caution in patients at high risk of hypoglycemia during the IIITP (especially those with low BMI). The results indicate that patients who experience hypoglycemia during hospitalization are a vulnerable population with high mortality rates both during and after their hospital stay. Therefore, it is crucial to emphasize preventive measures for this group of patients. More studies will be necessary to evaluate the possible neurohormonal and cardiovascular changes that patients might have undergone during hypoglycemia after treatment for HHC, as well as to evaluate other possible mechanisms that increase mortality after this form of hypoglycemia.