Introduction

Cardiovascular disease is the leading cause of death worldwide [1]. It is also the leading cause of death in the United States (US), posing a significant economic and social burden, and the incidence of cardiovascular disease (CVD) continues to increase in the US population, increasingly affecting younger people [2].

Vitamin D is a hormone that primarily regulates calcium and phosphate metabolism [3]. It plays a role in the function of endothelial cells and glucose homeostasis, inhibiting PTH and regulating the renin-angiotensin-aldosterone system (RAAS) [4,5,6,7,8]. And it may attenuate oxidative stress, inflammatory and immune responses, thrombosis, and calcium and lipoprotein regulation [5]. In several large prospective studies and meta-analyses, vitamin D deficiency was considered an independent risk factor for cardiovascular outcomes and all-cause mortality [9,10,11,12]. Meanwhile, there is also an inverse relationship between serum 25-hydroxyvitamin D (25OHD) levels and CVD mortality [13, 14]. In addition, several prospective observational studies have reported that high serum vitamin D levels may be detrimental to CVD or all-cause mortality [15, 16]. Despite the accumulating mechanistic and population evidence for vitamin D prevention of CVD, published randomized controlled trials have not detected any effect of vitamin D supplementation on sudden CVD [17, 18]. They have failed to confirm the cardiovascular benefits of vitamin D supplementation in the general population or those without CVD [19, 20]. Vitamin D status remains a significant global public health issue [21]. In addition, past studies have limitations, such as small sample sizes, neglecting confounding factors such as family income, exercise status, presence of other diseases and vitamin supplementation, or inadequate adjustment for some significant covariates, which may have influenced the results. Therefore, we sought to understand better the association between vitamin D status and risk of mortality in patients with prior CVD. This study utilized the 2007–2018 National Health and Nutrition Examination Survey (NHANES) database to assess vitamin D supplementation’s potential benefits in prior CVD patients.

Materials and methods

Data source and study population

The National Health and Nutrition Examination Survey (NHANES) is a large, nationally representative statistical survey. It was designed to understand the health and nutrition status among the general U.S. population, expand national health knowledge, and address emerging public health issues. This study used NHANES data from the last 12 years (2007–2018) and was limited to patients aged 18 years or older with prior CVD. Among the 3887 eligible patients, 489 patients with incomplete serum 25(OH)D data, 171 patients taking glucocorticoids or antiepileptic drugs that could affect serum 25(OH)D levels, three pregnant patients, and four participants who were lost to follow-up were excluded. Ultimately, 3220 participants were included in the analysis (Fig. 1). All study protocols of NHANES were approved by the Institutional Review Board of the National Center for Health Statistics (NCHS). All participants provided written informed consent.

Fig. 1
figure 1

Flow diagram of study

Study variables

The primary variable was serum 25(OH)D levels. Serum samples were examined at the National Center for Environmental Health, the Centers for Disease Control and Prevention, and the Laboratory Sciences Division in Atlanta, GA. High-performance liquid chromatography tandem mass spectrometry (HPLC-MS/MS) was used to quantify 25-hydroxyvitamin D3 (25OHD3), 3-epi-25-hydroxyvitamin D3 (epi-25OHD3) and-25-hydroxyvitamin D2 (25OHD2) in human serum samples. Serum 25(OH)D concentration was equal to 25-hydroxyvitamin D2 (25OHD2) concentration plus 25-hydroxyvitamin D3 (25OHD3) concentration.

Regarding the question, “Have you ever been diagnosed with coronary heart disease, congestive heart failure, angina pectoris, heart attack, or stroke by a physician or other health professional?”, Those who responded “yes” were considered to have prior CVD.

Potential confounding variables were included in the analysis. Sociodemographic factors included age, sex (male, female), race/ethnicity (Non-Hispanic White, Non-Hispanic Black, Mexican American, and others), education level (below high school, high school, above high school), smoking status (never smoker, former smoker, current smoker), drinking status ( nondrinker, low-to-moderate drinker, heavy drinker), family income-poverty ratio (≤ 1.0, 1–3, > 3), leisure-time physical activity (inactive, insufficiently active, active), heart rate, BMI, and health-related illnesses including diabetes (yes), hypertension (yes), hyperlipidemia (yes), kidney failure (yes), cancer (yes), and, family history of heart disease (yes). Laboratory tests included hemoglobin, white blood cells, lymphocytes, monocytes, triglycerides, total cholesterol, high-density lipoprotein (HDL), low-density lipoprotein (LDL), fasting blood glucose, serum creatinine, serum uric acid, aspartate aminotransferase (AST), alanine aminotransferase (ALT), albumin, glycated hemoglobin, calcium, and phosphorus. In addition, for smoking status, participants who reported smoking less than 100 cigarettes in their lifetime were considered as never smokers. Participants who had smoked more than 100 cigarettes throughout their lifetime but had quit smoking were classified as former smokers, whereas those who were still smoking were classed as current smokers. Drinking status was categorized as a nondrinker, low-to-moderate drinker (< 2 drinks/day in men and < 1 drink/day in women), or heavy drinker (≥ 2 drinks/day in men and ≥ 1 drink/day in women). Physical activity levels were assessed using metabolic equivalent (MET) intensity levels [22]. Leisure-time physical activity included inactive (metabolic equivalent < 3), insufficiently active (metabolic equivalent3-6), and active (metabolic equivalent > 6) [23]. MET scores were calculated according to Additional file 1 [24].

Outcomes

The primary outcome of our study was risk of all-cause mortality. The time of the incident was calculated from the collection of the blood sample to the date of death or census (December 31, 2019). All studies were conducted according to the guidelines, and detailed information about NHANES is available at https://www.cdc.gov/nchs/nhanes/. Publicly available.

Statistical analysis

Vitamin D grading was based on serum 25(OH)D levels. The Endocrine Society Clinical Practice Guidelines consider severe vitamin D deficiency when serum 25 (OH) D levels are below 25.0 nmol/L, moderate deficiency when serum 25 (OH) D levels are between 25.0 and 49.9 nmol/L, insufficient when serum 25 (OH) D levels are between 50.0 and 74.9 nmol/L, and sufficient when serum 25 (OH) D levels are higher than 75 nmol/L [25]. Mean ± standard deviation (SD) or median (interquartile range) for continuous variables and frequency (percentage) for categorical variables according to baseline serum 25(OH)D categories. Chi-squared test (for categorical variables), One-Way ANOVA test (for normal distribution), and Kruskal-Wallis H-test (for skewed distribution) were used to test for differences among different serum 25(OH)D.

Serum 25(OH)D concentration was not normally distributed, thus it was natural log-transformed. Hazard ratios (HRs) and 95% confidence intervals (CIs) were calculated for associations between serum 25(OH)D concentration after natural log transformation and all-cause mortality using univariate and multivariable Cox regression models. The reference group consisted of individuals with serum 25(OH)D after natural log transformation (4.31–4.50). Minimally-adjusted model adjusted for age, sex, race/ethnicity, education level, and family income-poverty ratio. Fully-adjusted model successively adjusted for age, sex, race/ethnicity, education level, smoking status, renal failure, hypercholesterolemia, diabetes, cancer, family history of heart disease, family income-poverty ratio, BMI, WBC, HDL, TC glucose, albumin, creatinine, leisure-time physical activity, calcium, and glycated hemoglobin. Additionally, stratified analyses were conducted based on gender, age, race, education level, smoking status, hypercholesterolemia, renal failure, family income-poverty ratio, leisure-time physical activity, glycohemoglobin, and BMI. The adjustment strategy is the same as in the fully-adjusted model except the variable itself. Log-likelihood ratio test was used to assess the interaction effects between serum 25(OH)D concentration and subgroup variables. No adjustments were made for multiple comparisons.

We further applied a two-piecewise linear regression model to examine the threshold effect of serum 25(OH)D on logHR using a smooth function (Fig. 2). Threshold levels (i.e., turning points) were determined using trial and error, choosing the turning points that give the greatest model possibilities. A single-line linear regression model and a two-stage linear regression model were also investigated for their log-likelihood ratios. In order to avoid the reduction of statistical test efficiency and bias caused by direct exclusion of missing values, we used multiple imputation, based on 5 replications and a chained equation approach method in the R MI procedure, to account for missing data. The newly generated five sets of data were used for Cox regression analysis and their results were combined. All analyses were conducted using Empower (R) (www.empowerstats.com) and R (http://www.R-project.org).

Fig. 2
figure 2

Smooth curve fitting demonstrates the relationship between serum 25(OH)D after natural log transformation and risk of all-cause death. The predicted log(relative risk) for all-cause death in the y-axis and the continuous covariate in the x-axis. Smooth curve fit is indicated by the solid red line. The 95% confidence interval is represented by the blue band. The adjustment strategy is the same as the fully-adjusted model

Results

A total of 3220 patients with CVD (aged 66.3 ± 12.7 years and 1837 [57%] men) were included in this analysis. Table 1 shows the baseline characteristics according to serum 25(OH)D levels. Among them, 159 (5%) had severe vitamin D deficiency, 769 (23.8%) had a moderate deficiency, 1017 (31.6%) had inadequacy, and 1275 (39.6%) were adequate. Compared to patients with severe vitamin D deficiency, patients with higher serum 25 (OH)D concentrations were more likely to be elderly, male, accept higher education, current non-smokers, with higher family income, less drink, and more exercise. They had lower BMI, slower heart rate, higher prevalence of hyperlipidemia, lower prevalence of diabetes, lower percentage of glycosylated hemoglobin, but higher prevalence of cancer, higher white blood cells, lower LDL, lower total cholesterol, higher serum creatinine, higher albumin, and higher survival ratio.

Table 1 Baseline characteristics of participants

All sociodemographic and health-related disease factors were statistically significant at different serum 25(OH)D classification levels except drinking status at baseline, and family history of heart disease. In laboratory tests, monocytes, total cholesterol, triglycerides, serum uric acid and serum phosphate were not statistically significant with different serum 25(OH)D subgroup levels.

We used smooth curve fitting to intuitively evaluate the functional relationship between serum 25(OH)D after natural log-transformed and the risk of all-cause death (Fig. 2). In the Fig. 2, a log (relative risk) of 0 means that the relative risk is 1 (having no effect on all-cause death), while a log (relative risk) of 1 means that the relative risk is 2.71 (i.e., the probability of all-cause death increases by 2.71 times). Using a two-stage linear regression model and a recursive algorithm and adjusting for variables, the inflection point was estimated to be 4.5 (Table 2).

Table 2 Nonlinearity addressing of serum 25(OH)D level after natural log transformation and all-cause mortality

During 18,560 person years of follow-up, 930 deaths (median 5.25 years), three multivariable Cox regression models were used to explore the association between serum 25(OH)D after natural log-transformed and risk of all-cause mortality (Table 3). In the Cox regression analysis, patients with severe vitamin D deficiency, moderate deficiency, and insufficiency had a higher risk of all-cause mortality than patients with serum 25(OH)D after natural log-transformed of 4.31–4.5 (Table 3). In the fully adjusted model, hazard ratios (HRs) and 95% confidence intervals (CIs) from lowest to highest serum 25(OH)D categories after natural log-transformed (< 3.22, 3.22–3.91, 3.91–4.31, 4.31–4.5, and ≥ 4.5) were 1.81 (1.31, 2.50), 1.34 (1.07, 1.66), 1.28 (1.05, 1.56), 1.00 (reference), and 1.10 (0.89, 1.37).

Table 3 Univariate and multivariate results by cox regression

After adjusting the variables, a stratified analysis of the relationship between serum 25(OH)D after natural log-transformed and the risk all-cause mortality is shown in Table 4. The population with serum 25(OH)D after natural log-transformed of 4.31-4.5was used as reference. When analyses were stratified by gender, age, race, education level, smoking status, hypercholesterolemia, renal failure, family income-poverty ratio, leisure-time physical activity, glycohemoglobin, and BMI, consistent results were observed in people over age 60 who were male, white people ,high school educated, former smoker, and had BMI(25–30), family income-poverty ratio(1–3), glycohemoglobin(< 7%) and played active physical activity. We tested the robustness of the association between serum 25(OH)D and the risk all-cause mortality in different subgroups by interaction. In the model, the interaction tests for covariates with serum 25(OH)D were non-significant except for BMI.

Table 4 Subgroup analyses by the stratified cox regression model

Discussion

In this study, we used data from the NHANES (2007–2018) database to explore whether there is an independent association between serum 25(OH)D levels and risk of all-cause mortality in people with prior cardiovascular disease (CVD). In this large US cohort study based on the NHANES database, we found a non-linear relationship (L-shaped curve) between serum 25(OH)D and risk of all-cause mortality in patients with prior cardiovascular disease. No association was maintained when the serum 25(OH)D after natural log-transformed was higher than 4.5, a negative association was found when the serum 25(OH)D after natural log-transformed was lower than 4.5. Only 29% of patients with prior CVD in the cohort had insufficient serum 25(OH)D, possibly because of vitamin D supplementation. Understanding the level of vitamin D in patients with prior CVD and optimizing its range may help to improve the subsequent health status of patients with prior CVD.

Previously, attention has focused on the general CVD-free population, and observational studies have examined the relationship between vitamin D and all-cause or cause-specific mortality, with varying results. In a recent randomized placebo-controlled trial of older Australians, vitamin D supplementation did not reduce all-cause mortality [26]. In a New Zealand randomized controlled trial of community-dwelling adults aged 50 to 84 years (n = 5108) with a median follow-up of 3.3 years, monthly high-dose vitamin D supplementation was not found to prevent cardiovascular disease [27]. Also, in a randomized controlled study of 25,871 participants in the United States, with a median follow-up of 5.3 years, the incidence of cardiovascular events was not reduced after supplementation with vitamin D [28]. However, in another randomized controlled study of 90 patients with stable coronary artery disease residing in Beijing, the result indicated its benefit for coronary artery disease, suggesting it could be an adjunctive therapy for patients with coronary artery disease [18]. Participants with stable cardiovascular disease (n = 946) in San Francisco, with a median follow-up period of 8.0 years, low levels of 25-hydroxyvitamin D were found to be associated with cardiovascular events, but after adjustment, there was no independent association [29]. In subjects with heart failure, a case-control study with a case group (n = 3009) versus a control group (n = 46,825) [30] and an RCT study also showed contrasting results [31]. The design of the clinical study, the control of covariates, and the lack of follow-up time may limit the finding of actual results. Low and high levels of 25(OH)D in the general population (n = 247,574) in Copenhagen were associated with mortality in a nonlinear manner [15]. Another cohort study included from the UK Biobank study illustrated that elevated serum 25(OH)D levels in patients with CVD (n = 37,079) were independently associated with reduced mortality and nonlinearly in all-cause mortality [32]. A L-shaped relationship was obtained in a non-linear Mendelian randomization analyses of 44,519 CVD cases [33]. These were similar to our findings.

Approximately 25-57% of the US population has been investigated to be deficient in vitamin D [34]. Vitamin D deficiency is relevant to unfavorable bone outcomes [35]. The primary source of vitamin D in humans is that it is obtained in small amounts, primarily through skin synthesis under the influence of sunlight (i.e., UV) [36]. Others comes from fish and mushrooms [37]. Vitamin D deficiency may be associated with many risk factors include inflammatory pathways, nitric oxide regulation, oxidative stress, and renin-angiotensin-aldosterone system activation [37]. Vitamin D significantly reduces endothelial dysfunction and damage induced by oxidative stress [38]. 25(OH)D3 also regulates transcriptional endothelial NO synthase [39]. Vitamin D deficiency is also significantly associated with oxidative stress, inflammation, and major chronic diseases associated with aging [40], with impaired signaling causing hypertension [41]. It also has anti-inflammatory and anti-foam cell effects [42]. Some studies have illustrated that vitamin D supplementation may be beneficial in preventing and treating CAD in a porcine model [27]. Vitamin D deficiency-mediated signaling can overstimulate cardiomyocytes, including increased contractility and myocardial hypertrophy, and produce heart failure [43]. Vitamin D may also protect against stroke through receptor-mediated signaling pathways [44]. Based on the stratified analysis, we observed the advantage to reduce risk of all-cause mortality with the increase of serum 25(OH)D after natural log-transformed (4.31) in patients with prior cardiovascular disease, particularly in elderly patients (≥ 60 years old) race White BMI (25–30 kg/m2) hypercholesterolemia (yes) glycohemoglobin (< 7%) and family income-poverty ratio (1–3). Therefore, for patients with prior cardiovascular disease, we should consider the serum vitamin D level, particularly in a elderly patients (> 60 years old), White people, glycohemoglobin (< 7%), hypercholesterolemia and normal figure patients.

A recent paper reported no essential health benefits of vitamin supplementation in an elderly population [45]. It seems to suggest that vitamin D needs are not consistent among different populations.

In populations without vitamin D deficiency, a recent review summarized the results of Mendelian Randomization studies of vitamin D levels conducted during 2017–2020. In vitamin D-enriched adults, vitamin D supplementation alone did not provide health benefits, but vitamin D deficiency should permanently be corrected [46]. Another recent review showed that the level of biomarkers related to chronic heart metabolic diseases and cancer is significantly reduced by vitamin D [47]. In a survey of different countries, different diseases, and different supplements, it was found that current research disagrees with the recommendation of fish oil and vitamin supplementation to weaken the risk of disease in people without nutritional deficiencies [48] and that excessive vitamin D activity can also induce vascular calcification [49]. Our study also found that the protective effect decreased from strong to weak with increasing serum vitamin D concentration, reaching a maximum protective impact at a particular value. Compared with vitamin D after natural log-transformed (4.31–4.5), in patients without vitamin D deficiency, continued increases in vitamin D did not continue to increase the protective effect, but when severe vitamin D deficiency occurred, the risk of all-cause mortality is significant, a finding that provides evidence for a threshold value of serum vitamin D in patients with prior CVD. Vitamin D could be a cheap and safe adjunctive therapy due to broad safety profile [35].

Our study has some strengths. It is the first study to find a significant relationship between serum vitamin D levels and the risk of all-cause mortality in people with prior CVD using the US sample pool (NHANES 2007–2018). Our study had a large sample size to provide a better overview of the US population, adjusted for more confounding factors and laboratory indicators, and performed subgroup analyses and interactions to assess the true association between serum vitamin D and the risk of all-cause mortality in people with prior cardiovascular disease.

However, this study has some shortcomings. First, demographic data in the database with self-reported dietary data with questionnaire data might introduce bias and be unavoidable. Therefore, this sample only applies to populations with adults with prior cardiovascular disease. Second, other covariates not included may influence the results. Third, the relationship between serum vitamin D and different types of death was not explored in previous cardiovascular patients. In addition, not differentiating the specific type of cardiovascular event for which the patient was included in the study and its relationship with the end point evaluated. Finally, we only analyzed a single measurement of serum vitamin D levels, and concentrations of serum 25(OH)D in the state of health prior to the cardiovascular event remain unknown.

Conclusions

After multivariable adjustment, increases in serum 25(OH)D levels in American adults with the prior cardiovascular disease show a L-shaped relationship with risk of all-cause mortality, and increases in serum 25(OH)D levels above a certain threshold do not continue to reduce risk of all-cause mortality. The causal relationship between serum levels of 25(OH)D and all-cause mortality in adults with cardiovascular disease needs further investigation.