Introduction

The global continuously increasing prevalence of type 2 diabetes has been described as a pandemic, surpassing 462 million affected individuals in 2017 and estimated to be the ninth leading cause of mortality [1]. Diabetic retinopathy (DR) is the most frequent complication to diabetes and a prominent cause of blindness [2]. Many risk factors have proved significant in relation to the development of DR, including hyperglycemia, hypertension, hyperlipidemia and obesity (all modifiable) as well as duration of diabetes and pregnancy (both non-modifiable) [3]. Bariatric surgery is a well-established medical intervention in patients with type 2 diabetes and severe overweight. In addition to significant weight loss it drastically changes the metabolic profile of the patient [4], including improvement in lipids and insulin sensitivity, and sometimes leading to diabetes remission post operatively [5]. The effect of bariatric surgery on retinal microvasculature is not well established, and existing research is not in agreement on the potential effects on DR. A systematic review and meta-analysis done in 2014 found a tendency towards progression of DR, probably due to a rapid decline in HbA1c levels post-surgery, which decreased as much as 3.9% (18.6 mmol/mol) compared to pre-surgery measurements [6]. However, more recent systematic reviews and meta-analyzes from 2017, found a better prognosis of DR, with lower incident rates and less progression compared to patients who did not undergo bariatric surgery [7, 8]. To our knowledge, no larger, register-based studies have examined the need for ocular intervention (laser treatment, intravitreal anti VEGF injection or vitrectomy) after bariatric surgery, but an observational study from 2016 found no instances where surgical intervention was warranted amongst their cohort [9].

Research on the subject is still inconclusive, with smaller study populations and lacking information regarding regression as well as the potential interventional consequences of DR progression, affecting patients with type 2 diabetes undergoing bariatric surgery. Hence, in this study, we aimed to explore the effect of bariatric surgery on DR development, in an entire population of individuals with type 2 diabetes, during a 3 year follow-up period.

Methods

We performed a register-based matched cohort study utilizing the Danish registers. The cohort was identified in The Danish Registry of Diabetic Retinopathy (DiaBase), a national Danish clinical quality database, that holds information regarding all patients screened for DR in Denmark since 2013[10]. Data from various other national Danish registers were also included to enrich data; The Danish Civil Registration System [11] provided basic information on age, sex and civil status as well as enabled data linkage between registers due to the unique identification number (CPR number) given to all Danish inhabitants, The Danish National Patient Register [12] with diagnostic and treatment codes for in- and outpatient care, the Register of Laboratory Results for Research [13] with nationwide biochemical measurements and finally The Danish National Prescription Registry [14] that provided information on all prescribed and redeemed pharmaceuticals in Denmark.

The registers, utilized in this study, have been described in details by Grauslund et al. [15].

Participants

As cases, we included patients registered in DiaBase with type 2 diabetes, above the age of 18 at index date, that had undergone any form of bariatric surgery from 2013 to 2022. Index date was set as the date of bariatric surgery defined by the registration of a KJDF* (gastric bypass, gastric banding and gastric sleeve) ICD-10 surgical code. Patients registered with a KJDF* code prior to 2013, were excluded from the case population. The control group was selected amongst the remaining DiaBase population with type 2 diabetes, with no history of bariatric surgery, matched to cases by sex, age (year of birth) and level of DR at index date (Table 1). For screening specific outcomes, patients with fewer than 2 screening episodes, were excluded from both case and control groups.

Table 1 Baseline characteristics for patients with type 2 diabetes with (cases) and without (controls) bariatric surgery at index date

Outcomes

Our main outcome was DR worsening (quantifiable at screening visits) in which incident (DR level 1–4 at follow-up) and progressive DR (≥ two-step progression or progression to PDR) were pooled and assessed at month 6 and month 36, as well as the need for post-surgical ocular intervention (panretinal or focal photocoagulation, intravitreal injections or vitrectomy) assed within 1 year and after 1 year of surgery. DR improvement (≥ two-step regression) during follow-up was also evaluated at month 6 and 36. Finally, we examined changes in pharmaceutical treatments as well as biochemical measurements amongst cases and controls during follow-up.

Covariates

From DiaBase, we extracted information on screening dates and level of DR at each screening (ICDR scale [16], 0–4 [0 = no DR, 1 = mild non proliferative DR (NPDR), 2 = moderate NPDR, 3 = severe NPDR and 4 = proliferative DR (PDR)]).

From The Danish Civil Registration System we used age, sex (female or male), and marital status (married/cohabitating, single or divorced).

The Danish National Patient Register provided information on surgical interventions (bariatric surgery [KJDF*], vitrectomy [(KCKD65 and DH334B) or (KCKD65 and DH431 and DH36*)], intravitreal anti VEGF injection [(KCKD05B) and not (DH34* or DH353*) within 6 months prior to injection], panretinal [KCKC15 and not DH34* within 6 months prior to injection] and focal photocoagulation [KCKC10 and DH36*]) as well as systemic illnesses used to calculate a modified (excluding diabetes) Charlson Comorbidity Index score (CCI score) 5 years prior to index date (0 [low], 1 [moderate low], 2 [moderate high] and ≥ 3 [high]). The register also provided the diagnostic codes for the classification of bodyweight (unspecified overweight [DE660, DE660A, DE668 and DE669], obesity grade 1 [DE660B], obesity grade 2 [DE660C] and obesity grade 3 [DE660E, D660F, D660G and D660H]), from which a marker of BMI was constructed.

From the Register of Laboratory Results for Research we extracted information on laboratory values for measurements of hemoglobin A1c (HbA1c [% (mmol/mol)]), plasma creatinine (P-crea [µmol/L]), albumin/creatinine ratio in urine (uACR [mg/g]), estimated glomerular filtration rate (eGFR [mL/minute/1.73 m2]), low density lipoprotein cholesterol (LDL [mmol/L]), total cholesterol (mmol/L), high density lipoprotein cholesterol (HDL [mmol/L] and triacylglyceroles (TG [mmol/L]).

Finally, we utilized The Danish National Prescription Registry, from which information on prescribed and redeemed medications (antihypertensive-, antidiabetic- [GLP1 analogues, SGLT2 inhibitors, insulins and non-insulins] and lipid lowering medications) was used.

To differentiate between patients according to type of diabetes (type 1 and type 2 diabetes), we examined patients’ diagnosis- and pharmaceutical codes from The Danish National Patient Register and The Danish National Prescription Registry and divided them using an endocrinologist recommended algorithm “Appendix”.

Statistical methods

All data analyzes were performed with Stata 17.0 (StataCorp LLC., College Station, Texas, USA). Data are presented descriptively with medians and interquartile ranges (IQR) or counts and percentages. Statistical significance was defined as p-values < 0.05 and confidence intervals not including 1. In Table 1, Wilcoxon rank-sum and Pearson's chi-square test were used for continuous and categorical variables, respectively, to determine possible differences between cases and controls. To examine the relation of bariatric surgery and DR (worsening and improvement), semi-adjusted (age and sex) and fully adjusted (age, sex and all significant differences in Table 1) multiple logistic regression models resulting in odds ratios (OR) were used (Table 3). A Cox regression model resulting in hazard ratios (HR) with same adjustment steps was used for examining post-surgical ocular intervention. OR were calculated at fixed post-surgery timepoints to assess a potential transient worsening (month six ± 3 months), and also a more long-term effect (month 36 ± 9 months) using the screening date closest to these. HR for ocular intervention were calculated short-term (index date till month 12) and long-term (month 12 till end of follow-up). To utilize data from both eyes, clustered standard errors were applied to all regression models. Cases were matched to controls with replacements and we aimed for a case control ratio of 1:5, but as some cases were matched to fewer controls due to the demands of the matching criteria, a final ratio of 1:4.8 was obtained. In cases where missing data were present, and exceeded acceptable levels, multiple imputation (MI) was used when appropriate, determined by the type of missing data (missing completely at random, missing at random or missing not at random), which was evaluated both statistically and logically using preexisting, established knowledge of covariates and how they were obtained in clinical settings.

Results

Among 238,967 patients with type 2 diabetes attending the Danish screening program for DR from 2013 to 2022, we identified 553 cases who underwent bariatric surgery during follow-up and matched them to 2677 non-bariatric controls. Included individuals were primarily female (62.9%) and had a median age of 49 years (IQR 42–55 years), they had a higher CCI score (moderate low [16.3 vs. 12.8%] and moderate high [8.9 vs. 5.5%], p < 0.01), shorter duration of diabetes (5.1 vs. 6.2 years, p < 0.01), better glycemic stability (HbA1c 6.5% vs. 7.0% [48.0 vs. 53.0 mmol/l], p < 0.01) as well as more frequent use of metformin (82.1 vs. 70.3%, < 0.01), antihypertensive medications (73.4 vs. 56.6%, < 0.01), GLP-1 analogues (49.5 vs. 21.1%, p < 0.01) and SGLT-2 inhibitors (17.7 vs. 14.4%, p = 0.04) than controls at index date. They did not differ in regards to marital status, use of insulin or cholesterol lowering medications (Table 1).

DR worsening (incident DR and progressive DR pooled) at 6 and 36 months was seen in 2.9% and 5.2% of cases and 8.4% and 7.9% of controls (Table 2). Odds for short and long-term DR worsening after bariatric surgery were OR 0.32 (CI 95% 0.12–0.84, p = 0.02) and OR 0.68 (CI 95% 0.35–1.33, p = 0.26) in the semi adjusted model (Table 3). In the fully adjusted model with MI for missing HbA1c values (9.4% and 13.7% of cases and controls respectively), results for short- and long-term worsening were OR 0.41 (CI 95% 0.13–1.33, p = 0.14) and OR 0.71 (CI 95% 0.34–1.46, p = 0.35) respectively (Table 3). We found no accounts of either short- or long-term ocular treatment needs post-surgery in our case population except for < 5 cases of intravitreal injections (too few events to statistically analyze). We performed a post-hoc analysis stratified by pre-existing DR at index date to examine whether this impacted the odds of DR development, however we found no increased odds of DR worsening at any point, in either group (Supplementary table 2).

Table 2 Post-surgical DR worsening and improvement events in cases (with bariatric surgery) and controls (without bariatric surgery) at 6 and 36 months
Table 3 Multiple regression analysis with short- and long-term odds of DR improvement and DR worsening in cases (with bariatric surgery) compared to controls (without bariatric surgery)

We examined biochemical measurements (HbA1c, lipids and nephrology) as well as medication use (insulin, non-insulin glucose lowering, antihypertensive and lipid lowering medication) pre- and post-surgery (short- and long-term) to evaluate how bariatric surgery affected these parameters (Supplementary Table 1). In pre-surgical measurements, glycemic stability was best amongst cases and a significant drop in HbA1c was seen leading up to and directly following surgery (Fig. 1). Although a slight increase in HbA1c was seen in cases long-term compared to directly after surgery, the levels still remained lower than pre-surgical measurements, and were lower than control individuals levels at all times (6.5 vs. 7.0% [48.0 vs. 53.0 mmol/mol] p < 0.001, 5.8 vs. 6.9% [39.8 vs. 52.0 mmol/mol] p < 0.001 and 5.9 vs. 7.2% [41.0 vs. 55.0] p < 0.001) (Supplementary table 1). Plasma TG levels were reduced in cases after surgery, and stayed below the upper recommended limit for patients with diabetes, whereas TG levels in controls stayed high (1.98 vs. 1.80 mmol/l; p < 0.001, 1.29 vs. 1.81 mmol/l; p < 0.001 and 1.40 vs. 1.76 mmol/l; p < 0.001) throughout follow-up. Kidney function measured by glomerular filtration (eGFR), plasma creatinine and urine albumin/creatinine ratio (uACR) were within normal limits during the follow-up time, in both groups. Due to a detected interaction between bariatric surgery and BMI in regards to DR development, we also performed a stratified analysis according to BMI at 36 months post-surgery. This showed no difference in odds of DR worsening or ocular intervention, no matter the degree of overweight.

Fig. 1
figure 1

Median HbA1c measurements in mmol/mol at fixed time points from 12 months prior to bariatric surgery until 36 months post-surgery for cases (with bariatric surgery) and at equal points for controls (without bariatric surgery)

Discussion

In this nationwide study examining the risk of DR worsening amongst individuals with type 2 diabetes who underwent bariatric surgery, we did not find evidence indicating signs of post-surgical transient or long-term worsening of DR, nor an increased need for ophthalmological intervention. Regression analysis suggested lower or equal rates of DR worsening in individuals who underwent bariatric surgery compared to persons who did not.

This positive outcome aligns with several recent, smaller studies suggesting that bariatric surgery has no detrimental effect on the development of DR in patients with type 2 diabetes [7, 8]. Our nationwide data showed good baseline glycemic stability amongst our case population, as well as a pre-surgical decline in HbA1c followed by a further post-surgical decrease in HbA1c, which might explain the low rates of progression. Previous studies disagree on the role of pre-surgical HbA1c levels in regards to DR progression; with one study showing that a higher baseline HbA1c with a significant post-surgical drop increased the risk of DR progression [17], another study did not find an association [18]. The rates of DR worsening were also lower than seen amongst the general screening population of patients with type 2 diabetes in the Danish screening program [19] suggesting that patients eligible for bariatric surgery are following the pre-surgical guidelines promoting good pre-surgical glycemic stability, weightloss and lifestyle changes, amongst other initiatives, all intended to ensure optimal results of surgery [20]. Another reason for good glycemic stability, and generally acceptable biochemical measurements amongst our population as a whole, might be the effectiveness of the screening program itself alongside other healthcare appointments at the patients primary care physician; discovering tendencies towards worsening in DR or irregularities in systemic examinations and bloodwork, thus being able to induct initiatives to improve glycemic stability, and in turn halt further progression. Finally, our case population had a shorter diabetes duration than our control population which might also be in their favor, considering the known association between diabetes duration and DR development [21]. The low progression rates support the virtually non-existent need for ocular intervention post-surgery, where no differences were detected between cases and controls, as ocular intervention is tied to PDR and progression was seen in 2.9% and 8.4% of cases and controls, respectively. Nutritional deficits following malabsorptive bariatric surgery is well known and vitamin D deficiency has been associated with DR worsening [22]. Lower levels of vitamin A could cause several ophthalmic issues such as nyctalopia, corneal and conjunctival xerosis leading to ulcerations might also be of concern [23], especially in patients with diabetes, with decreased corneal sensitivity. We were not able to conduct any sub-group analysis where cases were stratified by type of bariatric surgery, due to insufficient data on specific type’s bariatric procedures. When stratified by DR level at index date no increased odds were seen in either group, which is in accordance with previous findings [8], however the overall small number of events in our study must be taken in to consideration. We found a significant postoperative drop in plasma TG amongst our case population, which is in accordance with previous studies [24,25,26].

Our study was strengthened by the vast amount of register-based data, linked throughout several registers, providing a representative sample of the majority of the Danish population with type 2 diabetes and with an established high level of completeness [14, 27]. The long-term follow-up time was also a strength, as post-surgical changes in DR potentially could be more long-term, due to the effect of post-prandial hypoglycemia seen in some patients after bariatric surgery [28].

We must also address some limitations to the study, starting with BMI measurements. BMI (or height and weight) is not routinely registered in any nationwide Danish registers, so a marker using ICD-10 codes had to be constructed, and measurements were only available for the case population. We did not have access to information on lifestyle factors such as smoking status, alcohol consumption and other dietary choices. Another limitation to consider is that our study relied on a screening database, which means that we did not have access to data from individuals with diabetes who never attended the DR screening program and the available data for screening specific outcomes are limited to the dates of screening.

In conclusion, this population-based study adds support to the claim that bariatric surgery is safe in regards to patients with type 2 diabetes. In our population of patients, with overall good glycemic stability, undergoing bariatric surgery, we did not observe increased odds of short- or long-term DR worsening or need for ophthalmic intervention, regardless of pre-existing DR at index date.