Introduction

The presence of depression in patients with type 2 diabetes (T2D) can directly or indirectly affect self-care, compliance, self-perceived health, quality of life, risk of hyperglycemia, development of incident macrovascular and microvascular complications, and risk of death [1]. Insight into the relationship between T2D and depression is essential to create appropriate awareness in physicians treating these patients. There is an increased risk of depression among patients with T2D. Cardiovascular disease (CVD) is the primary long-term risk for patients with T2D, and in this condition, the occurrence of depression is high [2, 3]. Several randomized controlled trials have investigated the effect of antidepressants or cognitive behavior therapy in patients with coronary artery disease, acute coronary syndrome, or acute myocardial infarction (MI) on reducing depression, recurrent MI, and mortality. The number of participants enrolled ranged from 101 to 2481, T2D patients comprised 30% of the population, and follow-up ranged from three months to 4 years [3,4,5,6,7]. The trials have shown that the rate is elevated in patients with MI and T2D compared to patients with MI free of T2D, but they did not include different subtypes of CVD [8, 9]. One meta-analysis based on two observational studies, including 90,412 and 144,216 patients, concluded that CVD was associated with an increased rate of depression but with no significant differences between patients developing stroke, peripheral artery disease (PAD) or chronic heart disease with or without T2D [10]. Also, heart failure (HF) was not investigated. There is no simple biological model that can explain the relationship between depression and cardiovascular disease. It can be attributed to a complex interplay of biological mechanisms, behavioral mechanisms, psychological coping mechanisms, and demographic as well as psychosocial factors [8]. Therefore, it is difficult to assume that the incidence of depression will be similar across different subtypes of CVD. Depression also affects compliance of preventive medical treatment, making patients vulnerable for CVD disease progression. While the primary focus for treatment of patients with T2D is on glycemic treatment and prevention of CVD, it is crucial to have awareness of depression. Detecting vulnerable CVD groups at risk is essential because effective management of depression in T2D patients has been shown to improve quality of life and glycemic control [11, 12]. Using the nationwide Danish registries, we aimed to: (1) Estimate the rate of depression in patients with T2D and MI, stroke, PAD, HF and patients who develop a combination or two or more CVD subtypes compared to those with the respective CVD subtype without T2D; (2) Determine if differences in age and sex drove the rate of depression; (3) Investigate how time since CVD diagnosis affects the rate of depression; (4) To compare the 5-year risk of all-cause death following a depression diagnosis between those with T2D and MI, stroke, PAD, HF, and a combination of two or more CVD subtypes and those without T2D.

Methods

Data sources

In Denmark, an identification number given at birth or immigration allows cross-linkage of health and administrative databases at the individual level and enables complete follow-up. Every citizen is granted equal access to the health care system, including primary and hospital care. Data for this study were cross-linked using six nationwide registries: (1) The Danish National Patient Registry contains information on all hospital admissions and outpatient contacts from 1977 onwards. According to The International Classification of Disease Ninth and Tenth Revision, each contact is coded with a primary diagnosis and one or more secondary diagnoses. Surgical procedures are coded using the Nordic Medico-Statistical Committee Classification of Surgical Procedures. (2) The Danish Psychiatric Central Research Register included data on psychiatric diagnoses for all inpatients and outpatients since 1995. (3) The Danish National Prescription Registry holds information (dosage, dates, and Anatomical Therapeutic Chemical [ATC] codes) on all prescriptions dispensed from a pharmacy since 1995. (4) The Danish Cause of Death Registry entails information on the date, cause, and place of death from 1970 onwards. (5) The Danish Population Registry contains information on the date of birth and sex. (6) Information on the living situation and educational level was extracted from the Civil Registration System and the Educational register.

Study population

We included incident CVD patients (between the ages of 18 and 100) with and without T2D diagnosed between 2010 and 2020. To allow for a minimum of one-year follow-up, we stopped the inclusion at 31.12.2020. The subtypes of CVD were identified from in and outpatient contacts (including primary and secondary diagnoses) in the Danish National Patient Registry using date of discharge as the diagnosis date. CVD was defined as a first-time diagnosis of MI, stroke (including ischemic and hemorrhagic stroke), PAD, or HF. We included procedural codes for lower extremity revascularization procedures in defining the PAD diagnosis. Patients with a first-time diagnosis of HF and MI within the same hospital contact were regarded as HF patients. Patients receiving multiple first-time diagnoses during the same hospital contact compromised their own group and will be referred to the combination of two or more CVD subtypes throughout the manuscript. The specific diagnoses and the procedural codes used are listed in Supplementary Table S1.

Definition of type 2 diabetes

We defined T2D as having a redeemed prescription of a glucose-lowering drug (ATC: A10) before inclusion. We excluded patients with type 1 diabetes, gestational diabetes, and polycystic ovarian syndrome based on the prescription patterns and age criteria. Patients were regarded as having type 1 diabetes if they redeemed only insulin prescriptions (ATC: A10A) before the age of 30 years. Women in monotherapy with metformin before age 40 were regarded as possible polycystic ovarian syndrome. Women redeeming glucose-lowering drugs 42 weeks before and 30 days after giving birth were regarded as gestational diabetes and thus excluded. Patients redeeming a prescription of Saxenda (Liraglutide, ATC: A10BJ02) were also excluded, as this drug was not approved for treating T2D patients in the study period of interest [13].

Outcome

The primary outcome was incident depression, defined by the first use of an antidepressant (ATC: N06A, N05BA) or first hospital contact (including in- and out-hospital contacts, primary, and secondary diagnoses) for depression. Diagnosis codes used are available in Supplementary Table S1.

Follow-up

Patients were included at the time of CVD diagnosis and followed until depression, 5 years after CVD development, emigration, all-cause death, or the end of the study (December 31, 2021). To estimate the 5-year risk of all-cause death following depression, we created a cohort of persons diagnosed with depression and alive at the time of the depression diagnosis. Persons diagnosed with depression were followed from the date of depression diagnosis until death, emigration, or the end of the study (December 31, 2021).

Comorbidities and educational level

Comorbidities were identified from prior in- and out-hospital contacts up to 10 years prior to the date of inclusion. Information on concomitant medical therapy was obtained from dispensed prescriptions, as listed in the Danish National Prescription Registry, and defined by at least one redeemed prescription six months before the inclusion date. Hypertension was defined as treatment with at least two classes of anti-hypertensive drugs six months before inclusion as done previously [14]. Educational level was defined as the highest level of completed education and classified according to the Internal Standard Classification of Education.

Statistical analysis

Baseline characteristics were described by the use of proportions for categorical variables and means and standard deviations (SD) or medians and interquartile ranges (IQR) for continuous variables. A reverse Kaplan–Meier estimator estimated the median follow-up time [15]. Crude incidence rates (IR) were calculated per 1000 person-years along with crude incidence rate ratios (IRR), and the exact Poisson method was used to compute 95% confidence intervals. To investigate how T2D affects the association between CVD subtypes (MI, stroke, PAD, HF, and combination of two or more CVD subtypes) and depression, a time-dependent Poisson regression model was estimated with an interaction term between T2D and CVD subtypes to compare the adjusted IRR of depression among patients with MI, stroke, PAD, HF, and a combination of two or more CVD disease subtypes compared to same CVD group but free of T2D. The model included the following covariates: age groups (< 60y, 60–80y, > 80), gender, comorbidities (atrial fibrillation, cancer, chronic obstructive pulmonary disease, hypertension, chronic kidney disease, and liver disease), CVD duration (0–1y, > 1–3y, > 3–5y), a living situation known at the time of CVD diagnosis (living alone versus not living alone), and educational level known at the time of CVD diagnosis. Age, comorbidities, and CVD duration were included as time-updated covariates. All estimates are reported with 95% confidence intervals. To investigate potential differences across subgroups, we reproduced the abovementioned analysis in subgroups of specific patient characteristics to assess whether the IRRs of depression were similar across age groups (< 60y, 60–80y, > 80), gender, and duration of CVD (0–1y, > 1–3y, > 3–5y). To describe mortality after depression, we report the 5-year risk of all-cause mortality following a diagnosis of depression among CVD subtypes with and without T2D within the study period using the Kaplan–Meier estimator [16]. Patients developing more than one CVD subtype prior to diagnosis of depression compromised their own subgroup. All analyses were performed in R version 4.2.1 [17].

Ethics

By law, registered-based research has been granted permission to be performed without ethical approval or informed consent. Therefore, the project has been approved by the Knowledge Centre on Data Protection Compliance—The Capitol Region of Denmark (approval number: P-2010-191).

Results

Study population

The study population consisted of 166,096 patients. As shown in Fig. 1, 45,845 had MI, 63,691 had a stroke, 19,959 had PAD, 35,568 had HF, and 979 were diagnosed with a combination of two or more CVD subtypes. Baseline T2D within each group ranged from 11 to 17%. Baseline characteristics of the cohort according to the subtype of CVD with and without T2D are shown in Table 1. Patients with CVD and T2D compared to CVD patients free of T2D were characterized by being older, more likely to be male, living alone, less likely to have a master's or Ph.D., and more likely to receive concomitant medication.

Fig. 1
figure 1

Flowchart of the study cohort. n number, T2D type 2 diabetes

Table 1 Patient characteristics of the study population at time of CVD diagnosis

Type 2 diabetes and the rate of depression

The median follow-up time was: 4.4 years (IQR: 1.9; 5.0), in which 22,103 (13%) experienced the outcome of depression (Fig. 2). Only 1,082 patients were first diagnosed with an in-/out-hospital contact, and a redeemed prescription of an antidepressant was first identified in 18,883 patients. The events, the crude incidence rates, and adjusted IRRs of depression are shown in Fig. 2. T2D increased the incidence rate ratio of depression among all CVD subtypes. There were differences in crude incidence rates among the CVD subtypes, where patients with multiple CVD subtypes had a much higher incidence of depression overall compared to the other CVD subtypes. Effects among age groups and gender are shown in Table S2, and Figure S1 in the supplementary material. T2D increased the rate of depression in all age groups, but the effect of T2D diminished with increasing age. We did not observe significant differences between males and females in the other CVD subtypes when considering age. It should be noted that the adjusted incidence rate ratios were generally lower than the unadjusted ones, suggesting that confounding factors may explain some of the observed associations.

Fig. 2
figure 2

Crude incidence rates and adjusted incidence rate ratios of depression among subtypes of cardiovascular disease with type 2 diabetes compared to subtypes of cardiovascular disease free of type 2 diabetes. The incidence rate ratios were adjusted for age, gender, educational level, living situation, and comorbidities (atrial fibrillation, cancer, chronic obstructive pulmonary disease, hypertension, chronic kidney disease and liver disease). T2D type 2 diabetes, CVD cardiovascular disease, PY person-years, IR incidence rate per 1000 person-years, CI confidence interval, MI myocardial infarction, HF heart failure, PAD peripheral artery disease, =  > 2 CVD’s a combination of two or more cardiovascular disease subtypes

Duration of cardiovascular disease and development of depression

The effect of T2D remained constant and elevated across all 5 years after the development of MI, stroke, PAD, or HF. The adjusted IRRs of depression 0–1 year, > 1–3 years, and > 3–5 years after CVD diagnosis are shown in Fig. 3 and Table S4 in the supplementary material. The absolute rates were the highest in the 0–1 year after CVD diagnosis and dropped in the rest of the follow-up period, but the effect of T2D on depression remained elevated with time. For patients with stroke and HF, the effect of T2D on depression slightly increased over time.

Fig. 3
figure 3

Crude incidence rates and adjusted incidence rate ratios of depression among subtypes of cardiovascular disease with type 2 diabetes compared to subtypes of cardiovascular disease free of type 2 diabetes according to duration of cardiovascular disease. The incidence rate ratios were adjusted for age, gender, educational level, living situation, and comorbidities (atrial fibrillation, cancer, chronic obstructive pulmonary disease, hypertension, chronic kidney disease and liver disease). T2D type 2 diabetes, CVD cardiovascular disease, PY person-years, IR incidence rate per 1000 person-years, CI confidence interval, MI myocardial infarction, HF heart failure, PAD peripheral artery disease, =  > 2 CVD’s a combination of two or more cardiovascular disease subtypes

Risk of all-cause death following a diagnosis of depression

A total of 22,103 patients with depression were included in the second cohort. Demographic characteristics and comorbidities at the time of inclusion (time of depression diagnosis) are depicted in Table S6 in the supplementary material. Patients with T2D were older, more likely to be male, and suffer from comorbidities. Following a diagnosis of depression, the median survival time was 4.0 years (IQR: 3.2; 6.3), and 10,196 patients died during the study period. The risk of all-cause death following depression in groups of CVD subtypes is depicted in Fig. 4. The 5-year risk of all-cause death for patients with MI, stroke, PAD, HF, or a combination of two or more CVD subtypes, and T2D was: 43.3% (38.6:47.9), 51.1% (48.1;54.0), 57.3% (52.9;61.7), 73.0% (69.0;77.0), and 61.1% (39.5;82.8), respectively. The 5-year risk of all-cause death for patients with MI, stroke, PAD, HF, or a combination of two or more CVD subtypes free of T2D was: 32.2% (30.4;33.9), 37.1% (36.1;38.1), 48.4% (45.9;51.0), 68.8% (66.8;70.8), and 58.5% (49.4;67.6), respectively. T2D among patients with CVD significantly increased the 5-year risk of all-cause death following a diagnosis of depression.

Fig. 4
figure 4

Risk of all-cause death following diagnosis of depression in patients with cardiovascular disease with and without type 2 diabetes. T2D type 2 diabetes, MI myocardial infarction, HF heart failure, PAD peripheral artery disease, =  > 2 CVD’s a combination of two or more cardiovascular disease subtypes

Discussion

Depression was common in patients with T2D and CVD, and T2D was associated with a higher rate of depression in all subtypes of CVD compared to CVD patients free of T2D. Furthermore, the association remained present with longer CVD duration. Once depression was diagnosed, T2D increased the 5-year risk of all-cause death, with the highest risk observed among HF patients.

One meta-analysis, based on two cohort studies, was conducted to investigate the impact of depression following CVD in patients with T2D [10]. They found a significantly increased rate of depression following CVD (coronary heart disease, cerebrovascular disease, myocardial infarction, or peripheral artery disease), with no differences between the different types of CVD. The first study included in the meta-analysis, by Jacob and Kostev, used patient records from general practitioners, and used diagnosis codes to define T2D and the outcome of depression, but found no significant difference in the rate of depression between the development of the subtype of CVD (coronary heart disease and of stroke) [18]. The second study, by Pan et al., included lower limb amputation in the definition of cardiovascular disease and found that the rates of depression were slightly enhanced by cardiovascular disease. However, they omitted HF and only distinguished between stroke and CVD [19]. Both studies defined the outcome of depression by in-hospital and out-hospital contacts. Only 2% of the outcome in our cohort received a depression diagnosis with an in-hospital or out-hospital contact. Our definition increased the sensitivity of the outcome, enabling a high accuracy of the effect estimate and testing for a possible hierarchal order among the rates of depression following CVD. T2D increased the rate of depression similarly across all subtypes of CVD. However, the magnitude of crude incidence rates of depression among the CVD subtypes free of T2D was different among the CVD subtypes. The difference in incidence rates of depression among patients with MI, HF, stroke, and PAD could be explained by differences in underlying mechanism, differences in behavioral risk factors of depression, differences in the invalidating capacity, or differences in the provider's ability to identify depression among these groups of patients. Since the effect of T2D was similar across all CVD subtypes, one might speculate that the level of cerebral microvascular dysfunction is independent of the CVD subtype.

Macrovascular and microvascular dysfunctions are critical consequences of hyperglycemia and insulin resistance [20,21,22,23]. This dysfunction is associated with an increased risk of cardiovascular diseases, including HF [24, 25]. Microvascular dysfunction has been associated with HF, nephropathy, and peripheral neuropathy, but especially cerebral microvascular dysfunction is associated with depression and dementia [24, 26,27,28,29].

The unified drop-in crude depression rates 12 months after the development of CVD could be a marker of the temporal incidence of depression or perhaps how depression is detected and managed in Denmark. National guidelines all recommend that patients following a diagnosis of MI, HF, and stroke receive a psychological evaluation following diagnosis [8]. No guidelines exist for patients with PAD or following lower limb amputations in Denmark. However, the adjusted IRR of depression in patients with PAD was as large as the IRR in patients with MI, and PAD could potentially be underdiagnosed due to differences in screening practice, or less severe PAD is not associated with the development of depression in a similar way as the other types of CVD. The difference could also result from providers' ability to detect or ask about depression. For example, providers could be prone to ask stroke patients about depressive symptoms and not recognize them in HF due to the shared symptoms (fatigue, loss of appetite, weight gain) [30]. The risk of death following depression diagnosis was the highest among HF patients, which has been investigated extensively before, including HF patients without T2D [31,32,33,34]. The strengths of this study are the nationwide completeness of data and the number of patients included. In addition, we used well-validated measures to asses exposure (T2D and diagnosis of CVD) and outcome (depression) [35,36,37,38]. However, since we relied on the prescription of antidiabetic drugs, antidepressants, and benzodiazepines, all patients with diet-treated T2D or mild depression were excluded, limiting the study's external validity. Additionally, we have reduced the sensitivity of depression diagnosis when including anxiety disorders in the definition as these conditions also are treated with antidepressants. Finally, we have presented an association, not causation, and residual confounding cannot be ruled out since we lacked critical information on behavioral risk factors, such as smoking, body mass index, and exercise. The severity of the CVD could also not be assessed, especially the etiology, severity, and symptoms of HF, stroke, and PAD.

Conclusion

Depression was common in patients with T2D and CVD, and T2D was associated with a higher rate of depression in all subtypes of CVD compared to CVD patients free of T2D, but significantly higher among patients with MI and PAD. Furthermore, the association remained present with longer CVD duration. Once depression was diagnosed, T2D increased the 5-year risk of all-cause death in addition to all CVD subtypes, with the highest risk in HF patients.