Background

People with type 2 diabetes mellitus (T2DM) are at greater risk of infection and experience worse outcomes of infection than those without diabetes [1]. Infective endocarditis (IE) is an infection whose incidence has increased in recent years [2,3,4] and that is highly influenced by age and the presence of comorbidities, such as diabetes [5]. In Denmark, a study based on nationwide registries found that the incidence of IE increased from 5.0/100,000 per year in 1997 to 10.5/100,000 per year in 2017 [6]. The incidence of IE in patients with T2DM is also increasing [7]. A cohort study based on the Spanish population reported a significant increase in incidence among patients with T2DM between 2001 and 2015 (from 6.0/100,000 to 13.1/100,000 per year; p < 0.001). Furthermore, incidence was significantly higher in people with T2DM than in those without diabetes (incidence rate ratio [IRR], 2.2; 95% confidence interval [CI], 2.1–2.3) [8].

The prognosis for IE in the general population is poor, with an in-hospital mortality (IHM) of around 25% [9]. In Spain, approximately 20.8% of patients with T2DM admitted to hospital with IE die in hospital [8]. Several studies have found diabetes to be an independent predictor of IHM [5, 10, 11]. The study by Tahon et al. [11] (inclusion period of 7 years) revealed that patients with diabetes have a higher risk of dying after IE (hazard ratio [HR] 2.24; 95% CI, 1.46–3.45).

The incidence and outcome of IE may differ according to sex. Hospital-based studies show a higher incidence of IE in men and a male-to-female ratio ranging from 1.3:1 to 3:1 [12, 13]. Furthermore, several studies indicate that female sex was independently associated with mortality [14, 15]. Based on data from a multicenter cohort in Spain between 2008 and 2018, Varela Barca et al. [16] found that the OR for mortality in females was 1.41; (95% CI, 1.21 to 1.65; p < 0.001). Reported results for patients with diabetes are like those for the general population [8, 17]. In contrast, other studies report a trend toward lower IHM among women [18]. Further confusing the picture, Sevilla et al. [19], reported nonsignificant differences in IHM between both sexes. However, in this study, IHM was 28% among men vs. 35% among women (p = 0.1), thus indicating that lack of statistical power due to small populations may generate misleading conclusions [19].

Recent studies have concluded that left ventricle is subject to maladaptive changes involving left ventricular mass and myocardial mechanical energetic efficiency especially in women with newly diagnosed T2DM. This sex-differences may contribute to explain, at least in part, the stronger impact of T2DM on the excess risk of cardiovascular disease in women than in men [20].

Using a national administrative database, we compared incidence, clinical characteristics, use of therapeutic procedures, and in-hospital outcomes among patients with IE according to T2DM status and sex over a 5-year period. Propensity score matching (PSM) was used to compare outcomes between men and women with and without T2DM and between men and women with T2DM. Finally, we identified the variables independently associated with IHM for patients with T2DM and IE according to sex.

Methods

Study design, study population, and data assessment

Our cohort study was based on hospital discharge reports collected through the Hospital Discharge Records of the Spanish National Health System (RAE-CMBD, Registro de Actividad de Atención Especializada-Conjunto Mínimo Básico de Datos (RAE-CMBD) [Register of Specialized Care–Basic Minimum Database]). The study period covered 1 January 2016 to 31 December 2020. The discharge records are coded based on the International Classification of Disease, Tenth Revision (ICD-10). The RAE-CMBD was implemented in Spain in year 1987 and the methodology has remained basically unchanged overtime. Details on the RAE-CMBD are available online [21]. The total number of hospital discharges of people aged 40 year or over in Spain recorded in the RAE-CMBD from 2016 to 2020 were 16,356,876. The distribution according to year, and sex can be found in Additional file 1: Table S1. As can be seen in the table men outnumbered women in all the years studied, representing 52.36% of hospital discharges from 2016 to 2020.

The study population comprised patients aged ≥ 40 years with a diagnosis of IE (ICD-10 codes: I33.0; I33.9; I38) in primary or secondary diagnostic position registered in the discharge records, as described by Olmos et al. [3]. Only the first episode was recorded in cases where the same patient was hospitalized more than once during the study period.

We stratified the study population according to sex and to the presence of T2DM. Patients with a diagnosis code for T2DM (E11.x) in any field were classified as having T2DM. Patients with a code for type 1 diabetes mellitus (E10.x) in any field were excluded.

In the RAE-CMBD are codified all the clinical conditions the patients have when admitted the hospital and those conditions that are not present on admission which are detected during the hospitalization [21]. So, patients with T2DM will have a code for this condition beside if they have been previously diagnosed and treated for T2DM in the hospital where the IE hospitalization takes place, in any other hospital or at primary care centers. If fact, in Spain most T2DM patients are diagnosed, treated, and controlled at primary care.

The main study variables were trends in the incidence of IE in patients with and without T2DM, IHM, and length of hospital stay (LOHS). We also analyzed comorbidities and therapeutic procedures in patients with IE.

Incidence rates of hospitalization for IE in persons with and without T2DM were calculated by age group and sex using data from the Spanish Institute of Statistics and applying the methods described by de Miguel-Yanes et al. [8, 22].

Comorbidity was quantified using the Charlson Comorbidity Index (CCI), which calculated based on ICD-10 codes, excluding diabetes, as described elsewhere [23, 24]. Specifically, we reported results for the following diagnoses: atrial fibrillation, COVID-19, ischemic heart disease, periannular complications/atrioventricular block, previous valve disease (aortic, mitral, tricuspid, and pulmonary), septic arterial embolism, and cardiogenic shock. Furthermore, we retrieved data on prosthetic valve carriers.

Using ICD-10 codes, we collected data on the following in-hospital procedures: dialysis, heart valve surgery (aortic, mitral, tricuspid, pulmonary), mechanical ventilation, and pacemaker implantation, irrespective of where they appeared in the procedure coding fields.

As for pathogens in patients with IE, we included Staphylococcus bacteremia, Streptococcus bacteremia, Gram-negative bacteremia, and fungemia. The ICD-10 codes used to identify these diagnoses and procedures can be found in Additional file 1: Table S2.

PSM was applied to generate subpopulations that were comparable according to their baseline conditions [25]. The three PSM analyses performed were as follows: men with and without T2DM, women with and without T2DM, men with T2DM and women with T2DM. The PSM was based on multivariable logistic regression, in which the matching variables were year of admission, age, sex, and comorbid conditions at admission. These methods have been described in detail elsewhere [8].

Statistical analysis

We obtained the incidence of hospitalizations for IE per 100,000 persons with and without T2DM for each of the 5 years analyzed. Poisson regression was used to calculate age- and sex-adjusted IRR with their 95% CI.

The descriptive statistical analysis was based on mean and standard deviation (SD) or median and interquartile range (IQR) for continuous variables and frequency and percentage for categorical variables.

Continuous variables were compared using the t test or Mann–Whitney test. Categorical variables were compared using the chi-square test.

We conducted Cochran-Armitage tests to assess the time trend from 2016 to 2020 for categorical variables. We used the linear regression T test and Jonckheere-Terpstra test for means and medians, respectively.

Multivariable trends in incidence of IE, adjusted by age and sex as required, were assessed using Poisson regression. We provided the annual percentage change (APC) with 95% confidence interval (CI).

Multivariable logistic regression analysis was applied to identify those variables that were independently associated with IHM. Separate models were constructed for men and women based on T2DM status. Finally, the effect of sex was assessed using the database of people with T2DM. The effect of T2DM was studied using the entire database of patients hospitalized with IE. The results are shown as odds ratios (ORs) with their 95% CIs.

Two-way interactions were examined to identify whether sex modified the effect of T2DM on outcomes. However, none of the statistical test for interaction between sex and T2DM showed a significant result in the multivariable models.

Stata version 14 (Stata, College Station, Texas, USA) was used for the statistical analysis and PSM. A p value < 0.05 (2-sided) was considered significant.

Ethics

The RAE-CMBD is owned by the Spanish Ministry of Health and can be accessed upon request [26]. According to Spanish legislation, neither individual written consent from the patients nor ethics committee approval is required as this registry is anonymous.

Results

A total of 9,958 patients (66.79% men and 33.21% women) aged 40 years or over were hospitalized with a diagnosis of IE in Spain during 2016–2020, so the yearly incidence has been 7.60 cases per 100,000 inhabitants’ ≥ 40 years.

T2DM was diagnosed in 2,668 patients (26.79%). T2DM was more prevalent among men than among women (27.50% vs. 25.31%; p < 0.001).

Incidence of patients admitted to hospital with IE according to T2DM status

In patients with T2DM (men and women), the incidence of IE increased significantly from 15.29 cases per 100,000 persons with T2DM in 2016 to 17.69 in 2020 (p < 0.001). When the analysis was stratified by sex, this increment was significant only in men with T2DM (19.47 cases per 100,000 men with T2DM in 2016 vs. 22.84 in 2020; p = 0.003) (Table 1). Multivariable Poisson regression showed that there was a significant increase in the incidence of IE over time for people with T2DM (Age and sex adjusted APC 1.66%; 95% CI, 1.43% to 1.90%; p < 0.001) and among men with T2DM (Age adjusted APC, 2.82%; 95% CI, 2.17% to 3.48%; p = 0.005).

Table 1 Incidence, clinical characteristics and in-hospital outcomes of patients hospitalized with infective endocarditis in Spain from 2016 to 2020 according to T2DM status

In women with T2DM and in patients without T2DM (both sex, men and women separately), the incidence of admissions remained stable over the study period after bivariate and multivariate analysis.

The incidence of IE was significantly higher in people with T2DM than in people without for all the years analyzed (p < 0.001). The age- and sex-adjusted IRR was 2.86 (95% CI, 2.74–2.99; Poisson regression) for the incidence of IE in people with T2DM compared with those without.

Over time, the CCI increased significantly in patients with and without T2DM (p < 0.001 and p = 0.006). Furthermore, the presence of previous tricuspid valve disease increased significantly (p = 0.011 in patients with T2DM and p < 0.001 in patients without T2DM). The presence of previous aortic valve disease increase significantly only in patients without T2DM (25.7% in 2016 vs 33.43% in 2020; p = 0.001) (Table 1).

LOHS was around 19 days for all the years analyzed and diabetes status, and IHM remained stable in patients with T2DM (19.02% in 2016 vs. 19.88% in 2020; p = 0.622) and in patients without T2DM (16.32% in 2016 vs. 18.3%; p = 0.058) (Table 1).

As can be seen in Fig. 1, for the period 2016–2020, the prevalence of Staphylococcus bacteremia (32.7% vs. 27.6%; p < 0.001) and Gram-negative bacteremia (8.9% vs. 7.7%; p = 0.051) were higher among patients with T2DM whereas, Streptococcus bacteremia was more frequent among those without T2DM (24.2% vs. 19.2%; p < 0.001).

Fig. 1
figure 1

Distribution of more frequent pathogens in patients with and without T2DM with infective endocarditis in Spain (2016–2020)

Over time, the distribution of pathogens in IE patients with and without T2DM remained stable, although we found that Staphylococcus bacteremia decreased significantly in patients with T2DM (p = 0.001) but increased significantly in patients without diabetes (p = 0.007) (Additional file 1: Table S3).

Admissions to hospital with a diagnosis of IE: Clinical characteristics and hospital outcomes according to T2DM status

The incidence of IE was significantly higher in women with T2DM than in those without T2DM (11.91 cases per 100,000 vs. 4.01 cases per 100,000; p < 0.001) (Table 2). The Poisson regression corresponding age-adjusted IRR obtained was 2.97 (95% CI, 2.75–3.21).

Table 2 Distribution of study covariates and hospital outcomes of WOMEN with and without T2DM with infective endocarditis in Spain (2016–2020), before and after propensity score matching (PSM)

Before PSM, mean age was significantly higher among women with T2DM than in those without (75.58 [SD = 9 years] vs. 73.13 [SD = 12.57 years]), and women with T2DM also had a higher mean CCI (1.41 vs. 1.13: p < 0.001) and more specific chronic conditions, such as acute renal disease, chronic renal disease, congestive heart failure, dementia, ischemic heart disease, and periannular complications/atrioventricular block (Table 2).

During hospitalization, women with T2DM received dialysis significantly more often than women without T2DM (7.63% vs. 4.25%; p < 0.001). The median LOHS was 18 days for women with and without T2DM. The crude IHM was 22.65% for women with T2DM and 20.17% for those without (p = 0.127).

After PSM, dialysis remained more frequent among T2DM women, and IHM was similar, at around 22% in women with and without T2DM (Table 2).

Crude incidence was significantly higher in men with T2DM than in men without T2DM (23.29 cases per 10,000 vs. 8.77 cases per 10,000; p < 0.001). The age-adjusted IRR estimated for men T2DM vs. men without T2DM was 2.65 (95% CI, 2.51–2.80) (Table 3).

Table 3 Distribution of study covariates and hospital outcomes of MEN with and without T2DM with infective endocarditis in Spain (2016–2020), before and after propensity score matching (PSM)

The differences in the distribution of age and comorbidities between men with and without T2DM were significant before PSM, as in women. However, chronic obstructive pulmonary disease (COPD) was more prevalent among men with T2DM (13.83% vs. 9.29%; p < 0.001) and atrial fibrillation (29.8% vs. 26.51%; p = 0.007). The prevalence of previous valve disease was lower in men with T2DM (Table 3).

As in women, men with T2DM more frequently received dialysis (6.45% vs. 4.42%; p = 0.001). Pacemakers were also more frequent in men with T2DM than in those without T2DM (6.62% vs. 5.06%; p = 0.013), although men with T2DM less frequently underwent heart valve surgery (18.37% vs. 23.29%; p < 0.001). LOHS was around 19 days in both men with and men without T2DM. The crude IHM was 16.51% for men with T2DM and 15.35% for those without (p = 0.244) (Table 3).

After PSM, we found that dialysis and presence of a pacemaker continued to be more frequent in men with T2DM (Table 3).

Sex-differences in the incidence, clinical characteristics, and hospital outcomes in patients with T2DM admitted to hospital with a diagnosis of IE

Incidence of IE was significantly higher in men with T2DM than in women with T2DM. The overall incidence of hospitalizations for IE over the period 2016–2020 was 1.85 times higher among men with T2DM than among women with T2DM (age-adjusted IRR, 1.85; 95% CI, 1.54–3.31; Poisson regression).

When we compared men and women with T2DM, we observed that men were younger (71.61 ± 9.88 years vs. 75.58 ± 9 years; p < 0.001) and that women had higher prevalence of dementia (4.05% vs. 1.69%; p < 0.001), atrial fibrillation (38.02% vs. 29.8%; p < 0.001), previous mitral valve disease (31.94% vs. 21.98%; p < 0.001), and previous tricuspid valve disease (11.2% vs. 5.69%; p < 0.001). However, COPD and atrial fibrillation were more prevalent in men with T2DM (Table 4).

Table 4 Distribution of study covariates and hospital outcomes of MEN AND WOMEN with T2DM with infective endocarditis in Spain (2016–2020), before and after propensity score matching (PSM)

After PSM, women with T2DM had higher mean CCI values (1.41 ± 0.99 vs. 1.26 ± 1.05; p = 0.004), and men with T2DM received dialysis significantly less often than women with T2DM (4.89% vs. 7.63%; p < 0.001). The difference in IHM was statistically significant (p = 0.018), with mortality of 18.0% for men with T2DM and 22.65% for women with T2DM.

As for the pathogen isolated, after PSM, Gram-negative bacteremia was significantly more prevalent in women with T2DM than in men with T2DM (12.16% vs. 7.27%; p = 0.001) (Additional file 1: Table S4).

Variables associated with IHM in diabetic men and women with IE: Multivariable analysis

Multivariable adjustment showed that the IHM was associated with old age (≥ 76 years old) and the presence of acute renal disease, congestive heart failure, septic arterial embolism, and cardiogenic shock among men and women with T2DM (Table 5). Ischemic heart disease was associated with IHM in women with T2DM, but not in men.

Table 5 Multivariable analysis of factors associated with in-hospital mortality with infective endocarditis, among T2DM patients according to sex

The need for mechanical ventilation during admission was associated to higher IHM in T2DM patients irrespective of sex: men, OR, 2.58 (95%CI, 1.74–3.81); women, OR, 3.16 (95%CI, 1.76–5.69). However, the need for pacemaker was associated to lower IHM only in men with T2DM (OR, 0.29; 95% CI, 0.14–0.61).

As for pathogens, Streptococcus bacteremia was associated with lower IHM in men and women with T2DM, as compared with T2DM patients with no positive blood cultures. Although Staphylococcus bacteremia was associated to a higher IHM only in men with T2DM (OR, 1.33; 95%CI, 1.01–1.78).

As found with PSM, being a women with T2DM was significantly associated to higher IHM when compared to T2DM men (OR, 1.24; 95% CI, 1.02–1.59) (Table 5).

Finally, T2DM was not associated with IHM in the whole population of patients with IE: men, OR, 0.87 (95%CI, 0.72–1.05); women, OR, 0.93 (95%CI, 0.72–1.2) (Table 6).

Table 6 Multivariable analysis of factors associated with in-hospital mortality with infective endocarditis, among all patients according to sex

Discussion

This nationwide registry and population-based observational cohort study showed that the incidence of hospitalizations for IE was higher in men and women with T2DM than in those without T2DM for all the years analyzed. No differences in IHM were found between patients with and without T2DM, although IHM was significantly higher in women with T2DM than in men with T2DM. Comorbidity, in-hospital dialysis, and mechanical ventilation were associated with higher IHM in T2DM patients. In the fully adjusted model, being a women with T2DM was associated to a 24% higher IHM after IE than men with T2DM.

Incidence of IE according to T2DM status

In our investigation 9,958 cases of IE in subjects aged 40 years were identified over a 5-year period (2016–2020), this represents a yearly incidence of 7.60 cases per 100,000 inhabitants’ ≥ 40 years. The epidemiological and clinical characteristics of IE are known to exhibit substantial geographical variability [4, 6, 27,28,29]. The reported incidence of IE among different studies is not entirely similar ranging between 3 and 15 cases per 100,000 in population-based studies, with considerable differences noted even in similar countries [4, 6, 27,28,29]. Very recently, in a territory-wide study in Hong Kong the incidence of IE was recorded as 5.4 (95% CI 5.1 to 5.7) cases per 100,000 person-year between 2016 and 2019, and after adjustment for age and sex, the incidence did not significantly change over time [27]. In Portugal, from 2010 to 2018, the incidence of IE varied between 6.25 cases and 9.35 per 100,000 [28]. Studies conducted in other European countries and the USA have reported higher figures [4, 6, 29].

In Spain IE is an uncommon disease with low incidences when compared with other counties. Results of the Grupo Español de Endocarditis Infecciosa [Spanish Collaboration on Endocarditis] (GAMES), an observational, multicentric, prospective study based on a nationwide registry that included all consecutive patients with a diagnosis of definite IE according to the modified Duke criteria, have reported an incidence ranging from 3 to 4 cases per 100.000 inhabitants’ year [16, 30, 31].

In our population the incidence only rose among people with T2DM remaining stable among those who don’t have this condition. Trend in the incidence show conflicting results with some countries showing increments and other no changes overtime [4, 6, 27,28,29, 32]. Talha et al. conducted a systematic review that included population-based incidence of IE in patients, irrespective of age, in European countries. The pooled regression estimate was 4.1% ± 1.2% per year increase in IE incidence, amounting to a compound increase in incidence of 106% over 18 years (2000–2018) [32].

In Spain the increase in the general population and among those with T2DM has been reported before, even if the increment seems to be slower than in other countries [3, 8, 30, 31, 33]. The trend suggests that, as reported elsewhere, the increase could be partly explained by aging, the burden of comorbidity, and a progressively higher number of invasive procedures [2, 34]. In our study, the mean CCI and frequency of previous tricuspid and aortic valve disease increased significantly over time in patients with T2DM.

As expected, we found that incidence was higher in patients with T2DM, irrespective of sex. Cellular immunity and phagocytic function tend to be impaired in persons with diabetes, thus predisposing them to severe infections [1, 35].

In our opinion the increase overtime in the prevalence of comorbidities among patients with and without T2DM hospitalized with IE is probably due to the aging of the Spanish population and has been previously described in Spain and in other countries [3, 27,28,29, 31]. However, improvements in the coding practices overtime may have also contributed to the increment.

Differences in the clinical characteristics, hospital outcomes and microorganisms according to T2DM status

The clinical profile of IE patients with T2DM differed from that of patients without T2DM (higher rates of comorbidities, and risk factors for IE such as older age, presence of a pacemaker, and in-hospital dialysis). Our findings indicate that during admission for IE, men and women with T2DM received dialysis more frequently than matched non-T2DM men and women. In a study about risk factors and outcomes of early acute kidney injury in IE, the authors concluded that IE due to history of diabetes (OR, 2.34; 95% CI, 1.25–4.37; p < 0.01) was associated with early acute kidney injury [36]. Furthermore, dialysis was more frequently used in T2DM women than in T2DM men. Rates of dialysis in women with T2DM are higher because women with IE experience more hospital complications than men, potentially affecting treatment decisions that involve a less invasive approach than dialysis. As reported elsewhere, dialysis was a risk factor for IHM in both men and women with T2DM [8].

We were not surprised to find that crude IHM in patients with and without T2DM remained stable between 2016 and 2020, probably because of recent improvements in the management and pharmacological treatment of T2DM patients in Spain [37].

The organisms responsible for IE also differed significantly. Staphylococcus species was more frequent in T2DM patients and proved to be a risk factor for IHM in men with T2DM. This finding is consistent with those of previous studies and likely due to increased health care utilization in T2DM patients, who are thus exposed to nosocomial infections and immune dysfunction, leaving them more susceptible to skin and soft tissue infections [7].

A remarkable finding or our study was the surprisingly high (7%) proportion of gram-negative bacteremia. Previous hospital cohorts’ studies conducted in our country have reported lower values, ranging from 4.5% to 5.5% of IE patients [19, 31, 38, 39].

However, in Portugal, using administrative data 11.9% of cultures were codified as a gram-negative bacterium [28]. Possible reasons for this high prevalence may include advancements in culturing methods and a survival bias due to the good prognosis of the HACEK group IE [39, 40]. However future investigations should assess the validity of ICD codes for microorganisms in our country.

Sex differences in the incidence and outcomes of IE among patients with T2DM

In our study, the incidence of hospitalizations for IE was higher in T2DM men than in T2DM women. These results are consistent with the findings of previous studies on IE in the general population, which demonstrated that IE is more frequent in males [12, 13]. The aortic valve was the most frequently previously affected in men, whereas in women, the mitral valve was affected in 31.94% of cases. This finding agrees with previously published results, since the location of IE differed between the sexes because of differences in the predisposing lesions [14, 16]. The reasons for this sex-specific difference remain unclear, although a higher rate of predisposing heart conditions in men [13] may contribute to a lower incidence of IE in women. Hormonal factors are thought to protect women from endothelial damage and, therefore, lower their susceptibility to IE [41].

Many aspects of IE are similar in male and female patients, as reported by Polishchuk et al. [14]. We did not find any differences between T2DM men and women in LOHS, heart valve surgery procedures, mechanical ventilation, or presence of a pacemaker. However, regarding isolation of the pathogen, we found significantly more cases of Gram-negative bacteremia in women with T2DM than in men with T2DM. Other studies have reported similar results [19]. Gram-negative bacteremia could have its origin in urinary tract infections, which are more common among women. Surprisingly, we did not confirm findings from a previous study, in which Staphylococcus aureus was more often the causative microorganism in women than in men (30.1% vs. 23.1%; p < 0.001) [16]. These variations may reflect the local epidemiology of IE, diagnostic criteria, initiation of antibiotics before blood cultures, and the diagnostic protocol used to establish etiology [42].

Variables associated with IHM among patients hospitalized with IE

The results of the present study are consistent with the literature finding that older age, acute renal disease, congestive heart failure, septic arterial embolism, and cardiogenic shock were factors associated with IHM after IE in patients with T2DM [7]. However, our multivariable analysis did not show T2DM to be associated with higher IHM. Contrasting and similar results have been published [8, 34]. Further larger, prospective, and more detailed studies are needed to clarify this issue. These should cover variables such as therapy for DM and glycemic control.

The multivariable analysis showed that female sex was an factor associated with mortality in T2DM patients with IE after controlling for the remaining variables analyzed. The few studies that have analyzed the influence of sex on the outcomes of IE in the general population reported contradictory results [14, 16,17,18]. In Spain, Varela-Barca et al. [16] found that IHM was 41% higher in women than in men (OR, 1.41; 95% CI 1.21–1.65). These authors indicate that since hormonal differences protect young women from cardiovascular disease, women develop heart disease later in life. Our findings reflect this observation in that the age of presentation of the IE episode differed significantly between the sexes (75.58 ± 9 years in women with T2DM and 71.61 ± 9.88 years in men with T2DM). Data reported elsewhere show that the higher mortality rate in women is associated with poorer baseline characteristics in women [16, 17]. We also found a significant difference in the mean CCI between women and men with T2DM (1.41 [SD = 0.99] and 1.26 [SD = 1.05], respectively). Finally, in Spain, this association has been linked to sex-related differences in the frequency of heart valve surgery [17, 43], although this did not differ between men and women in our study.

Is remarkable that in a previous study conducted by our group, among T2DM patients who had experienced a hemorrhagic stroke, similar sex differences were detected, finding that men presented higher incidence rates, more frequent decompressive craniectomy, and lower in-hospital mortality than women [44].

We are unable to provide a rational explanation for this finding despite its importance. Limited research has been conducted so far on women’s health with cardiovascular conditions such as IE and women have been frequently excluded from clinical trials. For these reasons, the prevention, diagnosis, and treatment of cardiovascular disease in women continue to be based on findings in men, and sex-specific clinical guidelines are mostly lacking [45]. As suggested by Regensteiner et al., sex and gender should be incorporated into the design of prospective trials to ensure that outcomes and the implementation of findings are broadly and appropriately applicable to patient care [45].

Strengths and limitations

The strength of our study lies in its large sample size (data from over 9,958 episodes of IE, 26.79% with T2DM), the fact that it covers the population of an entire country (> 95% of all hospital admissions) and the standardized methodology (extensively used for research in IE in Spain).

Nevertheless, our work is subject to a series of limitations. First, the accuracy of the medical information included in the RAE-CMBD could not be verified at an individual patient level and therefore incomplete or erroneous information could have been included. Previous studies have assessed the validity of ICD codes for IE in administrative databases [4, 27, 29, 46,47,48]. Fawcett et al., reported a sensitivity of IE of 76% for specific codes in ICD-10 but more than half of cases coded by using ICD-10 as IE were not confirmed cases. The code I33 had a positive predictive value (PPV) of 82%-85%; in contrast, and the code I38 had a PPV of < 6% and accounted for many of the false-positive cases [46]. By contrast, in Canada, Tan et al. conducted a retrospective validation study of ICD-10 codes for IE against clinical Duke criteria (definite and probable) at a large acute care hospital between 2013 and 2015 finding that the ICD-10 codes had a sensitivity of 90% (95% CI 81–95), specificity of 100% (95% CI, 100–100), PPV of 78% (95% CI; 68–85) and negative predictive value of 100% (95% CI, 100–100) [47]. Concluding that that the ICD-10-CM codes for IE have strong diagnostic accuracy. However, this study is limited by a relatively small sample size from a single center [47].

In Scotland electronic hospital records of 396 episodes of suspected IE codified with ICD9 and ICD10 dating from a 5-year period (2014–2018) were manually reviewed [4]. Reporting that when IE appeared in any diagnostic code position the PPV was 67.9% (95% CI 64.0–71.8) [4]. In Taiwan among 593 adult patients with discharge ICD codes for IE (ICD-9: and ICD-10:) during 2005–2016 in a single-center setting only 57% met the modified Duke criteria (PPV 57%, 95% CI 53–61) after systematically reviewed the medical charts [48].

However, studies conducted in single centers in the USA and China using ICD 9 have reported much better results [27, 29]. Toyoda et al. identified 283 patients with any type of IE, finding a sensitivity, specificity, and PPV of the ICD-9-CM codes, for acute IE defined by the modified Duke criteria, of 94% (95% CI, 92%-97%), 99% (95% CI, 99%-99%), and 94% (95% CI, 91%-97%) respectively [29]. Li et al., in their validation exercise, there was a high diagnostic accuracy with a PPV of 88.8% (95% CI 84.8 to 92.9) [27].

Inaccurate coding may contribute to a moderate PPV and may be caused by clinicians' inexperience or attention to detail. Poor specificity of coding data could be explained by several coding erroneous practices, such as a readmission or historical cases with hospitalizations that did not address the endocarditis as a current problem. Moreover, the accuracy of ICD-based phenotyping can be affected by variations in the policies and regulations of a health insurance system, the population covered by the healthcare system, and the coding behavior of clinicians, which consequently affect the interpretation and validity of clinical research findings [46,47,48]. In Spain, as in most countries, trained health record coders enter administrative codes according to standardized protocols; however, our results may not be generalizable to countries in which entry is performed by untrained medical staff.

Several authors have suggested that the cumulative incidence of IE may be overestimated when ICD codes are used to identify IE patients, but the mortality of IE be underestimated [46, 48].

The prevalence of diabetes (26–29%) and the sex distribution (66–68% men) found in the GAMES registry are very similar to the corresponding values found in our study population (26.79% T2DM and 66.79% men) and this suggests the validity of our results [16, 31, 34]. In any case, in our opinion, there is no reason to think that coding validity differs among patients with and without T2DM. Therefore, indicating that misclassification bias would be non-differential, and this could result in reducing the magnitude, towards the null, but not changing the direction of any possible associations [49].

Second as our data source was an administrative database supported by the information that physicians recorded in discharge reports; therefore, we lack information on clinical characteristics, glycemic control, medical treatments, and the duration of T2DM. Third, the only data available were those included in the ICD-10 coding on duration of ventilatory support, days in intensive care, and duration of dialysis. Fourth, while PSM helped to attenuate differences in baseline characteristics and clinical variables, it is difficult to eliminate residual confounding in observational studies. Fifth, our study is also limited by the fact that causative pathogens were only identified around 60%. Shah et al., in Scotland using hospital discharge codes, reported that, even with linkage to a robust national microbiology laboratory blood culture dataset, the causative organism was not identified in the majority (57%) of patients with IE [4] In Hong Kong from 2002 to 2019 the rate of culture-negative endocarditis was 35.4% [27]. In Portugal for the period 2010–2018 with a methodology very similar to ours a microorganism was coded only in 49.5% of the incident episodes of IE [28]. Better results were obtained by Toyoda et al. in the USA who reported that among the entire cohort, 75% of patients had a causative microorganism coded [29]. Another limitation of ICD codes-based investigations is that the organisms identified were assumed to be causative if they were coded during the hospitalizations with IE, but this could not be validated for individual patients. It was also not possible to differentiate between culture-negative IE and IE for which the causative organism was simply not recorded or done.

In Spain the results of hospital-based cohorts show much lower proportions of culture-negative endocarditis with figures ranging 10–20% [31, 34, 50]. In a recent study conducted among 3113 IE patients admitted to hospitals in Europe, from January 2016 to March 2019, a positive culture was obtained in 83.2%, whereas 16.8% had a culture-negative [51]. However, this very high rates are expected because in most hospitalized cohorts of patients with IE, cases were identified by the attending clinician and a high culture-positive rate in these cohorts may therefore reflect selection bias toward patients with positive blood cultures [4].

Cultures are negative in IE for three major reasons: previous administration of antimicrobial agents, inadequate microbiological techniques, infection with highly fastidious bacteria or nonbacterial pathogens [4, 50, 51].

Sixth, in our study we considered a patient to have T2DM if a code (IC10 E11.x) was recorded in any diagnosis field beside it the “Present on Admission” (POA) indicator was “Yes” or “No”. This last option means that T2DM was diagnosed during the hospitalization. However, in our study population very few patients had T2DM diagnosed when admitted with IE (< 1%), this agrees with studies conducted in other countries [52]. Seventh, in Spain the use of outpatient parenteral antibiotic treatment (OPAT) for IE has been implemented in some hospitals, even if the proportion of patient who undergo this therapy is low [53]. However, in all cases the initial treatment is provided as in-patients [53]. Unfortunately, with the RAE-CMBD we cannot distinguish patients with OPAT so the effect of this type of treatment could not be assessed. Finally, as we conducted an observational study we could establish relations between variables, but not confirm causality.

Conclusions

In conclusion, rates of hospitalization for IE only increased in men with T2DM during the period 2016–2020 and with significantly higher incidence rates in T2DM patients. Our population-based study showed that T2DM was not a predictor of IHM after IE in men and women. Our data showed major sex differences, indicating that female sex is a predictor of IHM in IE in persons with T2DM. Older age, comorbidities, dialysis, and mechanical ventilation were associated with higher IHM in men and women with T2DM and IE, whereas presence of a pacemaker predicted lower IHM only in men with T2DM. However, given the limitations of the RAE-CMBD, our conclusions must be corroborated by prospective studies including detailed clinical data.