Background

Type 2 diabetes (T2D) frequently affects patients with advanced heart failure, often concomitantly with other medical conditions such as obesity, thromboembolic complications, renal dysfunction, and immunosuppression, thereby increasing the risk of infection [1, 2]. Accordingly, given that heart transplantation (HT) is an alternative in advanced heart failure, T2D is deemed a risk factor that could potentially influence its outcome [3].

No consensus has been reached with respect to the impact of T2D on complications after HT: some studies report no significant increase in the risk of infection, rejection, or heightened post-transplant complications in recipients with T2D [4,5,6], whereas others have suggested the contrary [7,8,9]. These inconsistencies may be due to variations in study design, sample size, follow-up duration, and post-transplant outcomes [4,5,6,7,8,9].

Multiple studies have indicated that the number of HT in patients with diabetes has recently increased or stabilized across different regions [10]. In Spain, a population-based study conducted between 2001 and 2015 found that the admission rates for HT declined over time among individuals with T2D (from 2.05 to 1.19 cases per 100,000 inhabitants; P < 0.001) [11]. Data on survival rates following HT in patients with diabetes remain inconsistent. Some studies report lower survival rates among HT recipients with diabetes compared to their non-diabetic counterparts [8], while other studies find similar rates in both groups or even higher among HT recipients without diabetes [6, 12,13,14]. Previous investigations in Spain have shown the effect of the COVID-19 pandemic on the use of heart procedures and hospital outcomes in people with diabetes [15, 16]. However, more studies are needed on HT in this population during the pandemic.

Therefore, the objectives of our investigation were as follows: (i) to evaluate temporal trends in incidence, clinical features, complications, and hospital outcomes among patients with T2D and non-diabetic patients who underwent HT in Spain from 2002 to 2021; (ii) to compare study variables between recipients with T2D and non-diabetic patients using propensity score matching (PSM); (iii) to identify variables associated with in-hospital mortality (IHM) among patients with and without T2D; and (iv) to ascertain the influence of T2D on IHM.

Methods

Study design, study population, and data assessment

To achieve the proposed objectives, we conducted an observational, retrospective, population-based study. The study period ran from January 1, 2002, to December 31, 2021. The study was based on the Spanish National Hospital Discharge Database (RAE-CMBD, Registro de Actividad de Atención Especializada-Conjunto Mínimo Básico de Datos), which collects individual patient information (e.g., sex, age, admission, and discharge date), diagnosis (1 to 20), and procedures (0 to 20), as well as the discharge destination (home, voluntary discharge, social institution, deceased). Diagnosis includes those conditions present at admission or diagnosed during hospitalization. Procedures include therapeutic or diagnostic procedures conducted during admission. The International Classification of Diseases Ninth Revision (ICD-9-CM) was used by the RAE-CMBD for coding from 2002 to 2015, and the Tenth Revision (ICD-10) was used from 2016 to 2021 [17]. All codes applied in this investigation are shown in Supplementary Table 1.

The study population included patients aged ≥ 35 years with an ICD-9 and ICD-10 code for HT in any position of the RAE-CMBD procedure fields. It was subsequently stratified according to diabetes status as T2D patients (ICD-9 codes: 250.x0 and 250.x2; ICD-10 codes: E11.x) and non-diabetic patients, in any diagnostic position. Patients with type 1 diabetes (T1D) codes (ICD-9 codes: 250.x1 and 250.x3; ICD-10 codes: E10.x) or missing data for essential variables (age, sex, date of admission or discharge, and discharge destination) were excluded. Recipients younger than 35 years were not included because the prevalence of Type 2 Diabetes (T2D) is extremely low in this age group in our country, so these patients may have Type 1 Diabetes (T1D) [18, 19]. For the purposes of this study, we also excluded all patients who underwent multi-organ transplantation (n = 77), including those who received both a heart and kidney transplant (n = 18), as well as those who underwent re-transplantation (n = 89).

Study covariates

The study covariates collected for each HT recipient were age, sex and year of surgery. To achieve our objectives, the study years were grouped into five time periods, each consisting of four years (2002–2005, 2006–2009, 2010–2013, 2014–2017, and 2018–2021).

To assess the presence of comorbidity the Charlson Comorbidity Index (CCI) was used, excluding diabetes and heart diseases, based on a methodology described elsewhere for ICD based databases [20, 21]. The CCI is commonly used in epidemiological investigation to control the risk of in-hospital mortality according to 19 conditions present at the time of hospital admission. [20, 21]. The CCI was categorized in CCI = 0, CCI = 1 and CCI ≥ 2 and analyzed as a continuous variable.

Regardless of the diagnostic position in the database, comorbid conditions including obesity and pulmonary hypertension was assessed. The concomitant heart conditions potentially leading to HT analyzed were valvular heart disease, dilated cardiomyopathy, ischemic heart disease, and congenital heart disease. Data on complications of HT and the presence of pneumonia were also collected. Complications of HT included, rejection, failure, infection, cardiac allograft vasculopathy and “other” or “unspecified” complications of HT.

To identify possible infections caused by specific microorganisms, we searched the database for the following infections: Staphylococcus bacteremia, Streptococcus bacteremia, Gram-negative bacteremia, Pseudomonas aeruginosa infection, and cytomegalovirus infection. According to the RAE-CMBD methodology, only microorganisms confirmed through culture or positive results on genetic testing (PCR) can be recorded.

The use of hemodialysis, extracorporeal membrane oxygenation (ECMO), and tracheostomy were evaluated regardless of the position of procedures in the database.

The ICD9 and ICD10 codes for comorbidities, procedures and complications are shown in Supplementary Tables 1 and 2.

Length of hospital stay (LOHS) was defined as the number of days between admission and discharge. IHM was the proportion of deaths during the hospital admission for HT. Finally, the type of hospital admission, whether categorized as “Urgent” or “Programmed,“ was described and analyzed.

Propensity score matching

The PSM method consisted of selecting for each patient with a T2D code a patient without a T2D code and with the same or closest propensity score (PS) obtained through multivariable logistic regression. We followed this approach to match the structure of the confounding factors for both groups. We used year of hospitalization, sex, age, and all comorbidities present on admission, including obesity and pulmonary hypertension, as matching conditions to calculate the PS [22].

The chosen matching method was one-to-one using calipers with a width equal to 0.2 of the standard deviation of the logit of the PS. Estimating the absolute standardized difference before and after matching enabled us to evaluate the quality of the PSM process. Populations are considered to be well balanced when the absolute standardized differences are < 10% after PSM [22]. A love plot was generated to visualize how populations become comparable after PSM. PSM has been previously used by other authors to compare the outcomes of HT according to clinical conditions and procedures [23,24,25,26,27,28,29,30].

Statistical analysis

A statistical analysis was conducted to describe and compare the total number and covariates of patients who underwent HT (with T2D and without T2D). The results obtained in the descriptive analysis were expressed as frequencies and percentages for categorical variables and as mean and standard deviation or median with interquartile range (IQR) for quantitative variables.

The temporal trend was analyzed using the Cochran-Mantel-Haenszel statistic or Cochran-Armitage test for categorical variables and a linear regression t test or Jonckheere-Terpstra test for continuous variables.

Categorical variables were compared using the Fisher exact test. Continuous variables were compared using the t test or the Mann-Whitney test, as required.

In our investigation, we aim to test multiple hypotheses concurrently within a single study. This approach increases the risk of a Type I error, making it necessary to adjust the P-value accordingly [31]. To address this, we have employed the Bonferroni adjustment. As a result, the significance level must be divided by the number of hypothesis tests conducted. In each table, we have included a footnote specifying the P-value that should be considered significant after applying the Bonferroni adjustment.

We used multivariable Cox regression to identify the variables associated with IHM among patients who underwent HT according to diabetes status. Models were constructed including sex, age, year, comorbidities (CCI and all the specific clinical conditions analyzed), and obesity as covariates. The results for these models are shown with the hazard ratio (HR) and 95% confidence interval (CI).

We used Stata version 14 to perform the statistical analysis (Stata, College Station, TX, USA). Statistical significance was set at p < 0.05 (2-tailed).

Sensitivity analysis

Using the entire database (patients with and without diabetes), we aimed to confirm the result of PSM for the effect of T2D on IHM. To do so we constructed a multivariable Cox regression model with IHM as the dependent variable adjusted for all the variables significantly associated with IHM in the bivariate analysis.

Ethics statement

The RAE-CMBD is owned by the Spanish Ministry of Health and can be accessed upon request [32]. We sent the protocol for this investigation to the Ministry, which approved it and provided us with the anonymized database. According to Spanish legislation, written consent from the patients is not required, as this is an administrative registry.

Results

Between the years 2002 and 2021, a total of 4429 HTs were performed in Spain. Of these, 19.14% (n = 848) were in patients with a code for T2D. The prevalence of T2D has remained stable over time, with values slightly below 20% (p = 0.388).

Temporal trends in the number and characteristics of heart recipients according to diabetes status

As displayed in Table 1, there was a small increase in the number of HTs among recipients with T2D between 2002 and 2005 (n = 171) and 2018–2021 (n = 186). Women accounted for between 13% and 15.7% of patients, respectively. Over time, mean age increased (57.68 years in 2002–2005 vs. 59.27 years in 2018–2021; p = 0.025), as did comorbidity based on the mean CCI (p < 0.001), the frequency of obesity (7.6% vs. 12.37%; p = 0.020), and pulmonary hypertension (14.04% vs. 16.13%; p = 0.022).

Table 1 Clinical characteristics of hospital admissions for heart transplantation among patients with and without type 2 diabetes mellitus (T2D) in Spain, 2002–2021

In patients with T2D, dilated cardiomyopathy was the heart condition most frequently coded (60.26%), followed by ischemic heart disease (56.49%). However, the frequency of ischemic heart disease decreased between 2002 and 2005 and 2018–2021 (59.06% vs. 52.15%; p = 0.020), and that of the other heart conditions remained stable.

Trends were similar in patients with and without T2D, although in the latter, higher values were recorded for the number of women undergoing HT (16.64% in 2002–2005 vs. 26.92% in 2018–2021; p < 0.001) and the frequency of valvular heart disease, ischemic heart disease, and congenital heart disease (all p < 0.001).

Temporal trends in the prevalence of complications, procedures, and hospital outcomes among heart recipients according to diabetes status

As can been seen in Table 2, the proportion of recipients with T2D who experienced complications of HT increased significantly from 26.9% in 2002–2005 to 42.47% in 2018–2021 (p < 0.001). Significant increases over time were observed for the incidence of Staphylococcus bacteremia (2.92% vs. 10.22%; p < 0.001), Gram-negative bacteremia (2.92% vs. 4.84%; p < 0.001), and Pseudomonas aeruginosa (1.75% vs. 7.53%; p = 0.015). The procedures whose frequencies increased significantly over time were hemodialysis (5.85% vs. 17.74%; p < 0.001) and ECMO (0% vs. 17.74%; p < 0.001). IHM decreased, albeit not significantly, from 14.62 to 11.29% (p = 0.419), and the LOHS rose from a median of 24 days in 2002–2005 to 28 days in 2018–2021 (p < 0.001).

Table 2 Complications, isolate pathogens, procedures and outcomes of hospital admissions for heart transplantation among patients with and without type 2 diabetes (T2D) in Spain, 2002–2021

Regarding non-diabetic patients, the percentage of those with complications recorded in the discharge report increased significantly (p < 0.001), as did the presence of pneumonia and pathogens such as Gram-negative microorganisms, Pseudomonas aeruginosa, and cytomegalovirus (all p < 0.001). The frequency of hemodialysis, ECMO, and tracheostomy also increased significantly (all p < 0.001).

In non-T2D recipients, LOHS increased over time (26 days in 2002–2005 vs. 33 days in 2018–2021; p < 0.001). However, the IHM decreased from 17.17% in 2002–2005 to 15.38% in 2018–2021 (non-significant, p = 0.248).

Comparison of characteristics, clinical variables, and hospital outcomes between heart recipients according to diabetes status

Before PSM, when all patients hospitalized from 2002 to 2021 were grouped (see Table 3), there were more women in the non-diabetic group than in the T2D group (23.22% vs. 14.74%; p < 0.001). However, recipients with T2D were significantly older than non-T2D patients (58.91 years vs. 54.99 years; p < 0.001) and had more comorbid conditions according to the mean CCI (1.8 vs. 1.63; p < 0.001). Specifically, recipients with T2D more frequently had peripheral vascular disease and kidney disease (21.37% and 18.45% vs. 16.22% and 10.22%, respectively). Moreover, recipients with T2D were more frequently obese (7.42% vs. 3.51%; p < 0.001) and had ischemic heart disease (56.92% vs. 43.06%; p < 0.001). Nonetheless, non-T2D patients more frequently had valvular heart disease, congenital heart disease, complications of HT, pneumonia, Staphylococcus bacteremia, Gram-negative bacteremia, and cytomegalovirus infection. After PSM, the differences observed between patients with and without T2D became non-significant, except for pneumonia (6.97% in the non-diabetic group vs. 3.04% in the T2D group; p < 0.001) and Gram-negative bacteremia (7.87% in the non-diabetic group vs. 5.4% in the T2D group; p = 0.036).

Table 3 Comparison of characteristic, comorbidities, transplant complications and hospital outcomes among patients with and without type 2 diabetes (T2D) who underwent a heart transplantation in Spain from 2002 to 2021, before and after propensity score matching (PSM)

After PSM, recipients with T2D less frequently required hemodialysis (9.45% vs. 13.72%; p = 0.005), ECMO (6.41% vs. 10.01%; p = 0.006), and tracheostomy (4.39% vs. 6.97%; p < 0.001) than non-T2D patients.

The median LOHS was 28 days for non-T2D patients and 23 days for recipients with T2D (p < 0.001). IHM among non-T2D patients remained over 4% higher than among recipients with T2D (18.34% vs. 12.26%; p = 0.018).

The proportion of recipients with Type 2 Diabetes (T2D) who were coded for “Urgent” admission was significantly higher than that of those without diabetes (60.97% vs. 50.94%; p < 0.001).

Figure 1 shows the absolute standardized differences before and after PSM. A significant imbalance could be ruled out, since the absolute standardized differences after PSM were below 10% for all the variables included in the PS [22].

Fig. 1
figure 1

Love plot showing the comparison of covariate values for patients with and without diabetes: absolute standardized differences before and after propensity score matching (PSM). Footnote: CCI Charlson comorbidity index. COPD Chronic obstructive pulmonary disease. HT Heart transplantation ECMO extracorporeal membrane oxygenation LOHS: length of hospital stay;

Variables associated with in-hospital mortality among heart recipients according to diabetes status

Table 4 shows the results of the multivariable Cox regression analysis performed to identify variables associated with IHM after HT in patients with T2D, without T2D, and for all patients who underwent this procedure.

Table 4 Multivariable Cox regression analysis of the factors associated with mortality during hospital admission for heart transplantation in Spain, 2002–2021 according to diabetes status

For all three populations analyzed, the variable associated with lower IHM was more recent surgery; those associated with a higher IHM were older age, presenting complications of HT, and hemodialysis or ECMO during hospitalization.

The results of the sensitivity analysis confirmed those found after PSM. As can be seen in Table 4, when all patients hospitalized from 2002 to 2021 were included in the Cox multivariable model, the presence of T2D was associated with a lower IHM after HT (HR 0.77; 95%CI 0.63–0.98).

Discussion

The findings of this nationwide retrospective study, which is based on the diabetes status of over 4400 patients who underwent HT in Spain between 2002 and 2021, revealed several significant insights. First, a slight increase in the number of HTs among patients with T2D was observed when the last period (2018–2021) was compared with the first one (2002–2005). Second, IHM has decreased over the last 20 years for individuals with and without T2D. Third, IHM after HT was lower in patients with T2D than in non-diabetic individuals after adjustment based on PSM and multivariable Cox regression analysis.

Consistent with de Miguel-Yanes et al., we recorded a decrease in the number of HT procedures in patients with T2D from 2002 to 2005 to 2014–2017 [11]. Nevertheless, despite the overall decrease in transplants reported during the COVID-19 pandemic, a slight increase was observed in the last period of the study (2018–2021) [33, 34]. We posit that this result is a consequence of the increasing age of patients on the waiting lists for HT [35, 36] and that this increased age and comorbidity may have escalated the need for HT. Future studies are required to confirm this hypothesis.

The frequency of complications of HT rose in patients with and without diabetes between 2002 and 2005 and 2018–2021. Furthermore, we observed an increase in microorganisms causing bacteremia, such as Staphylococcus, Gram-negative bacteria, and Pseudomonas aeruginosa, and in the use of procedures such as hemodialysis and ECMO. This can be attributed to the high comorbidity typical of transplant recipients, immunosuppressive therapy, kidney disease, and hypertension [37], resulting in increased hospital stay in both groups in our study. Nevertheless, despite the higher number of complications and infections, we witnessed a significant reduction in IHM over the study period. Data from the Spanish Heart Transplant Registry for the general population also show a progressive improvement in HT outcomes in terms of survival in recent years, likely due to better control of primary graft failure and acute rejection [38].

Several epidemiological studies had previously indicated that recipients with T2D undergoing HT differ from other types of patients [7]. A recent study reported that patients with diabetes experienced poorer graft survival following transplantation (HR 1.17; 95% CI 1.08–1.26, P < 0.001), although the authors scored graft survival to further stratify the risk of patients with diabetes and found that graft survival was similar in low-risk diabetic patients and non-diabetic patients (HR 0.91; 95% CI 0.82–1.01) [23]. In our study, individuals with T2D were less likely to have pneumonia and Gram-negative bacterial infections or undergo hemodialysis, ECMO, and tracheostomy procedures. They also had a lower LOHS and lower IHM. This suggests that, owing to their pre-existing conditions at the time of transplantation, patients with diabetes have a lower risk of reduced graft survival [6] or have well-controlled postoperative blood sugar [39], although we do not have sufficient data to substantiate this argument.

As expected, after multivariable adjustments, we discovered that the use of hemodialysis and ECMO were risk factors for mortality in T2D patients who underwent HT. Shoji et al. [40] found that post-transplant dialysis patients had a higher risk of all-cause mortality (adjusted hazard ratio [aHR]: 5.2, 95% CI: 4.7–5.7, p < 0.001), and Lim et al. [41] recently observed that patients requiring ECMO as a bridge to HT were characterized by higher rates of preoperative multi-organ failure and early mortality than those who were extubated.

In line with previously published results [11, 42], and despite the fact that scores predicting early survival following HT do not consider diabetes a significant factor compared to other, more significant clinical factors [43], we found that the presence of T2D was associated with a lower risk of IHM during admission for HT. A key explanation for our results is that they likely reflect an improvement in both pre-transplant and post-transplant management of diabetes and vascular risk factors [6, 44].

The strengths of our study include the use of a national population database (RAE-CMBD) over a 20-year period and a methodology that has been used elsewhere [11]. Furthermore, the RAE-CMBD collects virtually all hospitalizations in Spain (> 95%) and our data are consistent with those published by the National Transplant Organization of Spain [45].

Our study is subject to a series of limitations. First, like other observational and retrospective studies that rely on ICD codes from discharge databases, our investigation may be affected by low sensitivity and specificity. This can depend on the physicians’ proficiency in coding hospital procedures and diagnoses, which can, in turn, influence data quality. Coding is performed for administrative rather than research purposes, primarily focusing on economic considerations. Second, our study does not consider clinical or performance parameters and cannot assess events that may occur in patients after hospital discharge. Third, ICD codes do not provide information on disease severity, functional status, the type of T2D treatment (e.g., insulin or antidiabetic drugs), or the reasoning behind the intensity of the treatment provided. Fourth, in the RAE-CMBD database, the number of ICD codes that physicians can record is limited to 20 diagnoses and 20 procedures per patient. Additionally, the cause of death is not specified in the database, and sociodemographic variables such as race, education level, and social class are not collected. Fifth, our study excluded patients who had undergone multi-organ transplantation and re-transplantation. However, this represents a very low proportion of HT patients (< 4%), as multi-organ transplantation and re-transplantation are rare procedures in our country [46]. In our opinion, excluding these cases would have minimal impact on our results but should be considered for future investigations. Finally, ICD codes in the database do not consider donor demographics and clinical conditions. As a result, we could not incorporate variables describing recipient, donor, and transplant factors, including body mass index (BMI), peak panel reactive antibodies, human leukocyte antigen mismatches, cold ischemia time, immunosuppressant therapy, induction therapy, mechanical circulatory support devices used before surgery, previous sternotomies, and clinical factors such as wound or sternotomy infections, delayed graft function, or episodes of rejection.

Despite these limitations, hospital discharge databases based on ICD codes have been used widely in epidemiological research by many authors from various countries. Such databases have proven useful for studying temporal trends as well as the characteristics, procedures, and hospital outcomes of HT recipients [9, 11, 37, 47,48,49,50].

Conclusions

In conclusion, between 2002 and 2017, the number of HT procedures in Spain decreased in patients with T2D but increased slightly in the last study period (2018–2021). Lower values were recorded in recipients with T2D than in non-T2D patients for presence of pneumonia and Gram-negative bacteremia and for the use of procedures such as hemodialysis, ECMO, and tracheostomy. In addition, LOHS and IHM were lower in recipients with T2D. The main risk factors for IHM following HT in recipients with T2D were complications of HT and the need for hemodialysis and ECMO. IHM following a heart transplant has decreased in Spain in individuals with and without T2D. Finally, the presence of T2D was associated with a lower risk of IHM than in non-diabetic patients.