Introduction

Worldwide, community-acquired pneumonia (CAP) is a leading course of death and morbidity [1]. In Denmark, a 30-day mortality rate of 11% has been reported in hospitalized pneumonia patients [2] and up to 20% for patients with both pneumonia (all types, except coronavirus disease 2019 (COVID-19)) and diabetes mellitus type 2 (T2DM) [3]. Hospitalized CAP patients with hyperglycemia at admission have an increased risk of mortality and intensive care unit admission compared to patients with normoglycemia [4]. Glycemic dysregulation in hospitalized patients is multifactorial and related to the acute stress response (i.e., disease severity), diabetes status, and treatment modalities known to induce hyperglycemia, for example exogenous glucocorticoids (GCs) [5].

Chronic obstructive pulmonary disease (COPD) is common among CAP patients. Currently, treatment with systemic GCs is the standard of care for CAP patients with COPD in acute exacerbation and decreases the length of stay (LOS), time to clinical stability, and mortality [6]. However, GCs may cause glucocorticoid-induced hyperglycemia (GIH) and increased glycemic variability (GV) which could potentially counteract the beneficial effects of GCs. The explanation for the adverse effects of hyperglycemia in CAP patients such as increased mortality, increased LOS and other in-hospital complications could represent an effect of hyperglycemia per se [7], but GV could be involved too [8]. High short-term GV is associated with increased LOS and mortality in critically ill patients [9] and in non-critically ill patients independent of admission diagnosis [10]. High GV also increases superoxide production, oxidative stress, endothelial dysfunction, and inflammatory cytokine overproduction and increases the risk of hypoglycemia which increases inflammatory cytokine levels, platelet activation and endothelial dysfunction [8].

In the few published studies about GV in CAP patients, authors reported an association between high GV and increased LOS [11], while others did not [12]. However, blood glucose was measured only two to four times per day on average and not necessarily on consecutive days. A more precise quantification of GV using continuous glucose monitoring (CGM), which provides information about glucose trajectories with intervals of five minutes, may therefore prove to be a more adequate tool for assessment of GV than standard point-of-care (POC) blood glucose testing. As standard measurements of GV, an international CGM consensus report recommends registration and reporting of the variation around the mean blood glucose, i.e. standard deviation (SD) and SD relative to the mean glucose level as a percentage, i.e. coefficient of variation (CV) [13]. Postprandial glucose excursion (PPGE) is also a measurement of GV and is especially relevant in patients treated with GCs since GCs are assumed to cause postprandial hyperglycemia [14]. This study aimed to investigate to what extent GV, measured as SD, CV, and PPGE, is influenced by both treatment with GCs and a diagnosis of T2DM in patients hospitalized with CAP by use of CGM.

Method and materials

Study population

We identified CAP patients with or without T2DM and treated or not with GCs hospitalized at Copenhagen University Hospital – North Zealand, Denmark between February 2021 and June 2021.

We constructed four equal-sized groups of patients, all with CAP (N = 40): Group 1: CAP, group 2: CAP and GC treatment, group 3: CAP and T2DM, and group 4: CAP, GC treatment, and T2DM. Diabetes diagnosis was obtained through patients’ journals. To limit confounding, patients were matched by age and gender, and HbA1c was measured for all patients to avoid undiagnosed diabetes in groups 1 and 2. Acute exacerbation of COPD ended up being the only reason for GC treatment in this study. The GC regimen followed regional standard care with IV methylprednisolone (Solu-Medrol®) 40 mg followed by four days of oral prednisolone 37.5 mg per day.

Inclusion and exclusion criteria

Patients who met the following criteria were eligible for inclusion: Age ≥ 18 years, radiologically verified pneumonia and at least one symptom and/or clinical signs of pneumonia (i.e. cough, chest pain, dyspnoea, temperature ≥ 38.0 °C or < 35.0 °C, pathological auscultation) and informed written consent.

The exclusion criteria were COVID-19, incapacitation, known hypersensitivity to the band-aid of the glucose sensor, parenteral nutrition, and pancreatic disorders.

Data collection

Continuous glucose monitoring was performed using iPro2® as the recorder and an Enlite® glucose sensor (Medtronic, Northridge, CA). The CGM system was inserted in the abdominal area according to the manufacturer’s guidelines. Recordings by CGM were fully blinded during hospitalization and therefore not used for in-hospital diabetes management. Standard POC capillary blood glucose measurements were performed by ward glucometers FreeStyle Precision Pro® (Abbot, Berkshire, UK) three times daily before main meals (7:00 AM, 12:00 AM, and 5:00 PM) to calibrate the CGMs. CGM data were collected from study enrollment until discharge. At least 24 h of CGM data were required to be included in the analyses.

At baseline, we collected clinical data (age, gender, comorbidities, CURB-65 score as a measurement of severity of CAP, early warning score, Charlson comorbidity index, and medications before admission) and standard blood work (hemoglobin A1c (HbA1c)). For the two groups receiving GCs, CGM data were analyzed only during GC exposure which was defined as the period between the first GC dose and 24 h (six half-lives for prednisolone) after GCs were stopped. Meal registration (timing and percentage of the amount of meal consumed at breakfast, lunch, and dinner) made it possible to calculate PPGE.

Primary outcomes

GV was evaluated as SD of all CGM-glucose values, CV of all CGM-glucose values, and PPGE. PPGE was defined as the difference between the blood glucose level before meal start and the highest blood glucose level within two hours after meal start [15]. SD and CV represent the overall amplitude of GV, while PPGE characterizes GV in relation to meals. CV is less influenced by fluctuations in mean glucose level and HbA1c compared to SD [16] but should otherwise be interpreted in the same way. Only meals with an intake of at least 25% of the plate were included in these calculations.

Secondary outcomes

We assessed the percentage of time of CGM-glucose values spent in Time In Range (TIR) (3.9–10.0 mmol/L or 70–180 mg/dL), Time Above Range (TAR) (> 10.0 mmol/L or > 180 mg/dL), Time Below Range (TBR) (< 3.9 mmol/L or < 70 mg/dL) and mean glucose level (mmol/L and mg/dL). We also report the glycemic gap defined as the difference between the HbA1c-derived average glucose level [17] before admission and the mean glucose level during hospitalization (mmol/L).

Statistical analysis

Data analyses were split into daytime from 07:00:00 AM to 10:59:59 PM and nighttime from 11:00:00 PM to 06:59:59 AM when relevant. Categorical variables were compared between the four groups with Pearson’s chi-squared test. ANOVA for normally distributed data and Kruskal–Wallis test for skewed data were applied to assess differences in continuous variables.

A linear regression analysis was done to assess the effect of T2DM and GCs (explanatory variables) and a possible interaction between T2DM and GCs on primary and secondary outcomes (dependent variables). The SD variable was logarithmically transformed. For repeated measurements (of PPGE, insulin dose, and food intake), a linear mixed model was used to determine the effect of T2DM and GCs on the outcome PPGE and for determining any statistical difference among groups regarding food intake and IE of insulin per day in Table 1. For the TAR and TBR outcomes, a zero adjusted Gamma distribution [18] was used to accommodate the positivity and exact zero in the outcomes. Post hoc analyses were performed for all outcomes, adding HbA1c, BMI, and CURB-65 as explanatory variables. To analyze an association between GV and LOS we did a post hoc linear regression analysis and included SD and CV of all CGM-glucose values during the daytime and the nighttime (Model 1 and Model 2, respectively), T2DM status (yes/no), GC status (yes/no) and Charlson comorbidity index as explanatory variables. LOS per patient was registered as days, hours, and minutes and was considered as a continuous variable. The LOS variable was logarithmically transformed. Figure 1 depicts the predicted (by Model 1) LOS for Groups 1 to 4. To make Fig. 1 by use of Model 1, we used the group characteristics as input to Model 1, i.e. T2DM status (yes/no) and GC status (yes/no), and for continuous variables, we used the means for Groups 1 to 4 as inputs.

Table 1 Demographic and clinical characteristics of 40 hospitalized patients with community-acquired pneumonia with or without diabetes, treated or not with glucocorticoids
Fig. 1
figure 1

Prediction of length of stay at group levels. Dots depict the predicted (Model 1) length of stay for Groups 1 to 4. Lines depict the 95% CI

The CGM sensors used in this study has an upper detection limit for glucose levels of 22.2 mmol/L (400 mg/dL). Therefore, right-censored glucose values were estimated using a validated imputation model developed previously by authors [19]. A two-sided P-value ≤ 0.05 was considered statistically significant for all analyses.

Setting

This study is part of a large Danish prospective observational cohort study named Surviving Pneumonia conducted at Copenhagen University Hospital of Copenhagen – North Zealand, Denmark. Surviving Pneumonia represents a multipronged initiative to improve and personalize the in-hospital management of patients with CAP.

Results

Baseline characteristics (Table 1)

We enrolled 40 patients who were on average 74 (range 55 to 91) years old. Matching was successful among groups (data for food intake not shown). However, inclusion time was lower for group 2 compared to group 1 (P = 0.014), and acetaminophen intake differed from expected values in groups 1 and 4 (both P < 0.01).

Primary outcomes (Table 2): measurements of GV

Table 2 Primary (SD, CV and PPGE) and secondary outcomes (TIR, TAR, TBR, mean glucose level and glycemic gap) for 40 patients hospitalized for community-acquired pneumonia

In the following, ( +) and (-) denotes the presence or not, respectively, of T2DM or treatment with GCs.

Standard deviation (SD) (95%CI)

During the daytime, SD for T2DM + GC- patients increased by a factor of 1.93 (1.40 to 2.66) compared to T2DM- GC- patients (P < 0.001). SD for T2DM- GC + patients increased by a factor of 1.42 (1.04 to 1.97) compared to T2DM- GC- patients (P = 0.031). During the nighttime, SD for T2DM + GC- patients increased by a factor of 2.29 (1.38 to 3.81) compared to T2DM- GC- patients (P < 0.01). GC + status did not affect SD during the nighttime per se (P = 0.451). There was no statistically significant interaction between GC treatment and T2DM on SD during the daytime or the nighttime (P = 0.717 and P = 0.790, respectively).

Coefficient of variation (CV) (95% CI)

During the daytime, CV of T2DM + GC- patients increased by 5.1 (0.0 to 10.1) percentage points compared to T2DM- GC- patients (P = 0.046). During the nighttime, CV for T2DM + GC- patients increased by 8.1 (1.0 to 15.2) percentage points compared to T2DM- GC- patients (P = 0.026). CV for T2DM- GC + patients were not statistically different from T2DM- GC- patients during the daytime or the nighttime (P = 0.721 and P = 0.887, respectively). There was no interaction between T2DM and GC treatment during the daytime or the nighttime on CV (P = 0.805 and P = 0.444, respectively).

Postprandial glucose excursions (PPGE) (95% CI)

PPGE increased by 1.5 (0.4 to 2.7) mmol/L (27 (7 to 49) mg/dL) at breakfast for T2DM + GC- patients compared to T2DM- GC- patients (P = 0.018). Treatment with GCs was not associated with a significant change in PPGE at all meals. However, at lunch, an interaction between T2DM + and GC + status was found (meaning that the effect of GCs depended on diabetes status) with an increase in postprandial glucose level of 2.5 (0.7 to 4.3) mmol/L (45 (13 to 77) mg/dL) in T2DM + GC + patients compared to T2DM- GC- patients (P = 0.018).

Secondary outcomes (Table 2)

Time in range (TIR) (95% CI)

During the daytime, TIR for T2DM + GC- patients was 27 (44 to 9) percentage points lower compared to T2DM- GC- patients (P < 0.01) while GC + status did not affect TIR per se. There was an interaction between GC + and T2DM + status with a decrease by 31 (56 to 6) percentage points for T2DM + GC + patients compared to T2DM- GC- patients (P = 0.017). During the nighttime, T2DM + and GC + status did not affect TIR per se but an interaction between GC + and T2DM + status was observed (P = 0.032).

Time above range (TAR) (95%CI)

During the daytime, TAR increased by a factor of 14.19 (6.09 to 33.06) for T2DM + GC- patients and a factor of 7.57 (3.25 to 17.64) for T2DM- CG + patients compared to T2DM- GC- patients (both P < 0.001). During the nighttime, TAR for T2DM + GC- and T2DM- GC + patients increased by a factor of 40 compared to T2DM- GC- patients (both P < 0.01). Interaction between T2DM + and GC + status for the daytime and the nighttime changed TAR by a factor of 0.27 (0.09 to 0.80) and 0.07 (0.01 to 0.74), respectively, compared to T2DM- GC- patients (P = 0.023 and P = 0.034, respectively).

Time below range (TBR) (95%CI)

During the daytime, TBR was 84 (42 to 96) % lower for T2DM + GC- patients and 79 (22 to 94) % lower for T2DM- GC + patients, compared to T2DM- GC- patients (P = 0.001 and P = 0.026, respectively). TBR for the nighttime is not reported due to overparameterization of the model.

Mean glucose level (95%CI)

During the daytime, mean glucose for T2DM + GC- patients increased by 3.0 (0.8 to 5.2) mmol/L (54 (14 to 94) mg/dL) compared to T2DM- GC- patients (P < 0.01). Mean glucose increased by 2.4 (0.1 to 4.6) mmol/L (43 (2 to 83) mg/dL) in T2DM- GC + patients compared to T2DM- GC- patients (P = 0.038). During the nighttime, mean glucose level were 2.4 (0.4 to 4.3) mmol/L (44 (7 to 77) mg/dL) higher in T2DM + GC- patients compared to T2DM- GC- patients (P = 0.018).

Glycemic gap (95% CI)

The glycemic gap increased by 1.8 (0.2 to 3.4) mmol/L (32 (4 to 61) mg/dL) in T2DM- GC + patients compared to T2DM- GC- patients (P = 0.029).

Post hoc analyses (Table 3)

Table 3 Exploratory analyses for primary (SD, CV, PPGE) and secondary (TIR, TAR, TBR, mean glucose level and glycemic gap) outcomes for 40 patients hospitalized for community-acquired pneumonia

Adding BMI and HbA1c as risk factors for developing GIH and the CURB-65 score to the prespecified models from the primary analysis did not clinically affect the main conclusions from the primary analysis. However, BMI was negatively associated with GV (SD and CV) during the nighttime, and HbA1c was negatively associated with TIR during the daytime, and positively associated with mean glucose level during both the daytime and the nighttime. The CURB-65 score was positively associated with PPGE at dinner.

Adding variables differing at baseline to the analyses did not alter conclusions (data not shown).

Length of stay (LOS) (95% CI)

LOS increased by 28 (0 to 63) % by every unit increase in SD of all CGM-glucose values during the daytime (P = 0.049).

Discussion

In this study, we found that in-hospital CGM-derived GV (assessed by SD of all CGM-glucose values) in patients with CAP was almost doubled in patients with T2DM not treated with GCs compared to patients without T2DM not treated with GCs. This applies both during the daytime and the nighttime. GC treatment per se increased GV by 42% during the daytime but not during the nighttime. The same pattern did not apply for GV assessed by CV where only a diagnosis of T2DM (but not GCs) increased CV. CV is only weakly correlated with mean glucose compared to SD, which is positively correlated with mean glucose [16]. This might be the reason why GCs had no statistically significant effect on CV. In addition, we found that GC treatment was associated with increased TAR, decreased TBR, increased mean glucose level, and a positive glycemic gap. A high and low glycemic gap has been associated with increased long-term mortality in CAP patients with and without diabetes [20]. Our post hoc analyses revealed that these findings were only slightly confounded by BMI, HbA1c, and CURB-65 score and not affected by variables differing at baseline. This indicates that a diagnosis of diabetes and/or treatment with GCs per se are the most notable markers for the risk of developing glycemic dysregulation in CAP patients. However, there may be other factors such as physical activity that might lower GV, which we did not consider [21]. In addition, COPD in acute exacerbation could per se be related to stress-hyperglycemia [22].

Two other studies with larger populations of 151 [23] and 392 [24] CAP patients (diabetes prevalence 15–20%) receiving GCs showed a higher incidence of hyperglycemia compared to CAP patients not treated with GCs. In these studies, glucose levels were measured by POC blood glucose testing. Our results support these findings. On the contrary, Torres et al. (N = 61) showed no significant effect of GCs on the incidence of hyperglycemia in CAP patients with or without diabetes [25]. This is probably because GCs worsen glycemic outcomes in only a fraction of patients without diabetes, as reviewed by Patel et al. [26]. We found the greatest glycemic dysregulation measured as TIR and PPGE at lunch in CAP patients with T2DM receiving GCs. This indicates an effect modification of T2DM on the effect of GCs on glycemic variables, meaning that the glycemic side-effect of GCs depends on diabetes status. Postprandial hyperglycemia [27], i.e. PPGE, has been correlated with increased long-term mortality in CAP patients, independent of a diabetes diagnosis. Recent studies have demonstrated a relationship between low TIR and the presence of diabetic complications as well as a correlation between low TIR and high HbA1c. Goals for patients with type 2 diabetes (and type 1) is therefore a TIR > 70% [28]. A high TIR can be obtained by decreasing TAR (or decreasing TBR) by treatment with glucose-lowering agents, however, this might increase the risk of hypoglycemia. TIR recommendations for older and high-risk patients with diabetes (e.g. patients with diabetes and hypoglycemic unawareness) should therefore probably be individualized and lowered accordingly [28]. At present, no goal of TIR during hospitalization has been defined.

We found that high HbA1c, irrespective of a diabetes diagnosis, was also a marker for in-hospital glycemic dysregulation. This finding is consistent with previous literature, showing that high HbA1c levels (e.g. patients with diabetes) are linked to an increased risk of developing GIH [5] and that glycemic excursion in patients with diabetes and treated with GCs due to COPD in acute exacerbation are higher than for patients without diabetes measured by CGM [29].

Treatment with GCs lowers both LOS, time to clinical stability, and mortality in CAP patients [6]. However, the development of GIH and increased GV may diminish these beneficial effects [8]. Despite this, treatment of known and new-onset hyperglycemia and a diagnosis of pre-existing diabetes are occasionally ignored in the hospital setting [30]. This is unfortunate since diabetes is associated with an increased risk of pneumonia and COPD [31]. In an international cohort study including 1961 patients with CAP, undiagnosed diabetes was 5%, while the prevalence of prediabetes was 38%. Patients with diabetes might suffer from a decrease in pulmonary function [32] and an approximately threefold higher long-term mortality has been observed in CAP patients with diabetes compared to patients without diabetes [33].

Whether pharmacologically induced normoglycaemia and/or low GV is beneficial in the acute stages of CAP remains controversial [33, 34]. Epidemiological studies have highlighted the negative effects of high GV in CAP patients, focusing especially on an increased LOS [10, 11, 35,36,37] and increased mortality [10, 27, 36]. Our results support that high GV (measured as SD of all daytime CGM-glucose values) is positively associated with LOS (see Model 1 and Fig. 1). This is worrying considering the ongoing pandemic where GCs are part of the treatment protocol for patients with COVID-19 [38], which could potentially induce great glycemic dysregulation especially in patients with diabetes [19] and prolong LOS and thereby increase work pressure on already overcrowded and stressed wards.

Randomized controlled studies of normoglycemia vs. hyperglycemia on clinical outcomes for patients with CAP are needed to overcome the problems of unrecognized bias in epidemiological studies.

Our findings add to recommendations that screening for GIH should be done 1 to 2 h after the intake of lunch with standard POC capillary blood glucose testing when prednisolone is administered in the morning [39]. This is probably due to the pharmacokinetics of prednisolone, which has the maximal hyperglycemic side-effect 8 h after intake [40]. The recommendations are based on clinical experience and not on prospectively collected data, except for a few newer studies [29, 41].

Strengths and limitations

This study included a relatively small number of patients (N = 40) distributed on four equal-sized groups, which potentially makes it difficult to find statistically significant differences that may be true (type 2 error). Our many endpoints increase the risk of finding statistically significant differences, by chance, that are not true (type 1 error). It is also a limitation that the CGM-time was only a fraction of the whole hospitalization time (70%), which means that we lost useful glucose information during both the beginning and, to a lesser extent, the end of the patients’ hospitalization. Matching was not successful regarding acetaminophen intake, which potentially can interrupt CGM-glucose readings by falsely increasing glucose levels [42]. We did not take into account that some patients received insulin while others did not. However, the use of corrective insulin was small for patients with diabetes.

We believe that the prospectively collected data on each patient is a strength. Compared to earlier studies, using in-hospital CGM as the primary source of glucose data is a very powerful method since the interval between measurements is only five minutes. With CGM, we were able to quantify the glucose-related variables in CAP patients in a much more accurate way than previously done by standard POC blood glucose testing. Furthermore, the use of blinded CGM ensured objectivity and limited clinical interference during the study period. The precision of CGM during hospitalization has been verified in previous studies [43] albeit technical and practical issues when using in-hospital CGM has also been reported [44].

Conclusions

In the present study, GV and other glycemic outcomes examined by CGM were studied in a population of hospitalized patients with CAP with or without T2DM and treated or not with GCs. Our results imply that CAP patients with T2DM treated with GCs require great clinical attention due to the increased risk of high GV (especially during the daytime and after lunch) which may limit the recovery from pneumonia. CAP patients without T2DM but treated with GCs were also at risk of developing glycemic dysregulation but to a lesser extent. Our results support that high GV is positively associated with a longer length of stay at the hospital and provide real-world evidence for the clinical experience that a screening procedure for GIH should be done after lunch.