1 Background

The first confirmed Coronavirus disease-19 (COVID-19) case in the United States (US) was announced in January 2020. In March 2020, following the declaration of the COVID-19 pandemic by the World Health Organization, the United States started to implement shutdowns and stay-at-home orders [1]. Mitigation measures implemented to slow the spread of the novel virus included cancellations of non-urgent elective procedures and in-person visits, with a shift to telemedicine to accommodate the rapid surge in critically ill patients [2]. This resulted in a decline in hospital admissions from late March to late May of 2020 for common cardiovascular diagnoses, including acute coronary syndrome (ACS) [3, 4], heart failure [5, 6], and stroke [7]. However, it remains uncertain whether less common cardiovascular diseases were similarly affected during the COVID-19 pandemic.

Infectious and inflammatory conditions of the heart- namely infective endocarditis (IE), myocarditis, and pericarditis are relatively uncommon in the general population, with an annual incidence of 3–10 cases per 100,000 for IE [7, 8], 10 to 22 cases per 100,000 for myocarditis [9], and 27.7 cases per 100,000 population for pericarditis [10]. Despite their rarity, these conditions can lead to significant complications, including valve impairment in endocarditis [11], cardiomyopathy and heart failure in myocarditis [12], and multiple recurrences that lead to fibrosis in pericarditis [13].

Endocarditis hospitalizations have increased in the last decade primarily due to the opioid epidemic [14]. Extant research suggests that opioid use has increased during the COVID-19 pandemic, mainly due to social and economic stress [15, 16], posing the question of the effect of the pandemic on the rate of IE hospitalizations. In addition, the prevalence of comorbidities is high in persons with substance use disorder, putting them at a high risk of contracting the COVID-19 infection [17]. Emerging evidence also suggests an association between COVID-19 infection and population incidence of myocarditis and pericarditis [18].

Changes in hospitalizations and outcomes of common cardiovascular diseases during the COVID-19 pandemic are well studied; however, the impact of the COVID-19 pandemic on hospital admissions for endocarditis, myocarditis, and pericarditis has been studied primarily in Europe [19, 20], it has not been addressed in the US. Given the unique characteristics of the US population—including the high prevalence of substance use disorder, the disproportionate impact of the opioid epidemic, and differences in healthcare accessibility—it is crucial to examine these conditions in the US context. This study compared national trends in endocarditis, myocarditis, and pericarditis hospitalizations in the US before and during the COVID-19 pandemic to fill this gap in the literature.

2 Methods

2.1 Data source

The National Inpatient Sample (NIS) data for the years 2018 through 2020 were obtained from the Healthcare Cost and Utilization Project (HCUP), a family of healthcare databases and tools developed by the Agency for Healthcare Research and Quality (AHRQ) to enable research on hospital care and utilization in the United States. The NIS, one of the most extensive all-payer inpatient healthcare datasets in the country, covers 97% of hospitalizations from 46 states and the District of Columbia [21]. The data provide a stratified sample of 20% of hospital discharges from U.S. community hospitals, representing up to 7 million unweighted discharges yearly. The dataset includes a comprehensive range of de-identified clinical and nonclinical data elements, such as primary and secondary diagnoses, procedures performed during hospitalization, and patient demographics—including age, gender, race, and other factors. Additionally, it contains information on the primary payer for the hospitalization (e.g., private insurance, Medicare, Medicaid, or self-pay) and the length of the hospital stay.

2.2 Study population

The International Classification of Diseases, Tenth Revision, Clinical Modification (ICD-10-CM) codes were used to identify hospitalizations with primary or secondary diagnoses for endocarditis (I330, I339, I39, I38, A3282, B376), myocarditis (B3322, I41, I400, I401, I408, I409, I514) and pericarditis (B3323, I300, I301, I308, I309, I32) among patients 18 years of age or older. A coexisting diagnosis of COVID-19 infection was identified based on ICD-10-CM codes (U071, U00, U49, U50, U85, J1282) (Supplemental, Table S1). We defined the time from January 2018 to February 2020 as the pre-pandemic period and from March 2020 to December 2020 as the COVID-19 pandemic period.

2.3 Study variables and outcomes

Baseline characteristics included patients’ demographics (age, sex, and race/ethnicity), insurance status (Medicare/Medicaid/Private/Others), and hospital location (Northeast/Midwest/ South/West).

The primary outcome of interest was the monthly number of hospitalizations for each of the three heart conditions. The secondary outcomes were length of stay (LOS) and in-hospital mortality.

2.4 Statistical analysis

In accordance with HCUP guidelines, the statistical analysis incorporated key variables to account for the complex multistage sampling design of the NIS dataset. Specifically, the DISCWT variable was used for weighting to generate nationally representative estimates, the NIS_STRATUM variable accounted for stratification by hospital characteristics, and the HOSP_NIS variable adjusted for clustering at the hospital level. These variables were applied within the SAS Proc Survey procedure, ensuring accurate variance estimation and reliable standard errors for national hospitalization estimates [22]. Frequencies and percentages are reported for categorical variables. The Chi-square test was used to compare percentages prior to and during the COVID-19 pandemic. The mean and standard error are reported for continuous variables with a t-test for the comparison of means.

In an interrupted time series analysis design, the COVID-19 national emergency declaration, which was declared on March 11, 2020 and ended on May 11, 2023, was considered as a possible interruption (intervention) [23] to the monthly trends of endocarditis, myocarditis, and pericarditis hospitalizations. Segmented regression analysis was performed using the Proc Autoreg procedure described by Slavova et al. [24, 25] to assess changes in hospitalization trends before and during the COVID-19 pandemic, modeling the number of monthly hospital admissions trends for each disease. The results had two segments, each with a regression line defined by an intercept and a slope parameter—the intercept represents the level of hospital admissions at the start of the segment, and the slope represents the average change (trend) in the monthly hospital admissions during the time segment. We used the following model:

$$Y_{t} = \beta_{^\circ } + \beta_{1} *month_{t} + \beta_{2} *national\;emergency + \beta_{3} *month\_after\_national\_emergency + \varepsilon_{t}$$

where \({Y}_{t}\) represents the number of hospitalizations in the month t for each of the diseases, and \({month}_{t}\) represents the time variable, which starts at 0 (January 2018) and ends at 35 (December 2020). The national emergency variable is coded as 0 for admissions before March 2020 and 1 otherwise. The m \(onth\_after\_national\_emergency\) variable is given a value of 0 for the pre-pandemic period and a value between 1 and 10 for the pandemic period. An example of the data preparation for segmented regression analysis is provided in Supplemental Table S2. The \({\beta }_{^\circ }\) coefficient represents the intercept at baseline,\({\beta }_{1}\) estimates the change in the monthly hospitalizations pre-pandemic, \({\beta }_{2}\) estimates the immediate change in the intercept after the national emergency declaration and \({\beta }_{3}\) represents the change in the monthly hospitalization rate (slope) during the pandemic period.

A sensitivity analysis was performed using the monthly hospitalization rates, calculated by dividing the number of monthly admissions of the disease of interest by the total number of hospital admissions for all causes in that month, multiplied by 100,000.

Data analyses were performed using SAS software 9.4, Copyright © 2002–2012 by SAS Institute Inc., Cary, NC, USA. The statistical significance threshold was set to ≤ 0.05.

3 Results

A total of 35,527,490 and 35,419,025 hospitalizations occurred in 2018 and 2019, respectively. In 2020, the total hospitalizations were modestly lower at 32,355,825 (Supplemental, Figure S1).

Monthly hospitalizations for endocarditis decreased from 7655 hospital admissions in January 2020 to 6245 hospital admissions in April 2020 (Fig. 1). Similarly, monthly hospital admissions for pericarditis decreased from 1860 in February 2020 to 1285 in April 2020 but rebounded to pre-pandemic numbers in July 2020. In contrast, the number of hospitalizations for myocarditis increased from 880 hospital admissions in February 2020 to 1740 in April 2020.

Fig. 1
figure 1

Monthly hospital admissions of endocarditis, pericarditis, and myocarditis before and during the COVID-19 pandemic, 2018–2020. *The red vertical line represents states’ shutdowns in March 2020

3.1 Endocarditis

Of the 265,960 endocarditis admissions identified from 2018 to 2020, 193,930 (72.9%) occurred in the pre-pandemic period and 72,030 (27.1%) during the pandemic (Table 1). All-cause-in-hospital mortality for IE hospitalizations was 11% during the pandemic compared to 9% pre-pandemic (p < 0.01). The average length of hospital stay was significantly higher during the pandemic period (13.4 days, SE = 0.2) compared to the pre-pandemic period (12.8 days, SE = 0.1, p < 0.01). The proportion of endocarditis admissions associated with injection drug use did not differ between the two study periods (26.6% versus 26.8%, p < 0.8). There was no difference in the proportion of patients with endocarditis who underwent valve surgery before or during the pandemic period. We observed a slight decrease in the proportion of patients who had a transesophageal echocardiogram (TEE) during the pandemic period (22.7%) as compared to before the pandemic (24.3%; p < 0.03). We observed an immediate decrease in the monthly admissions for endocarditis by − 885.7 (95% CI − 1513.5, − 257.8) following the states’ shutdown in March 2020 (Fig. 2A).

Table 1 Characteristics of patients admitted with endocarditis, myocarditis, and pericarditis by time periods
Fig. 2
figure 2

Interrupted time series analysis for the number of monthly hospitalizations of A Endocarditis, B Myocarditis, C Pericarditis, 2018–2020

3.2 Myocarditis

From 2018 to 2020, there were 35,165 hospitalizations for myocarditis, 13,480 (38.3%) of which occurred between March 2020 and December 2020 (Table 1). The mean age of patients admitted for myocarditis during the pandemic period was 54.7 (SE =  ± 0.4) years, in comparison to 46.7 (SE =  ± 0.3) years during the pre-pandemic period (p < 0.01). Hispanic patients represented 17.6% of the hospitalizations during the pandemic, whereas they accounted for only 2.7% of the admissions in the pre-pandemic period (p < 0.01). Moreover, the average length of hospital stay for myocarditis increased from 6 (SE = 0.2) days before the pandemic to 9 (SE = 0.3) days during the COVID-19 pandemic (p < 0.01). During the pre-pandemic period, the in-hospital mortality among patients hospitalized with myocarditis was 3.9%, while during the pandemic period, it rose to 16.8% (p < 0.01). Notably, during the pandemic, 40% of myocarditis admissions were associated with a coexisting COVID-19 infection.

The segmented regression analysis showed an abrupt increase in the monthly number of myocarditis hospitalizations by 613.5 (95%CI 347.3, 879.7), occurring shortly after March 2020 (Fig. 2B, Table 2).

Table 2 Parameter estimates of segmented regression analysis for the monthly infective endocarditis, myocarditis, and pericarditis admissions from the pre-pandemic period (January 2018-February 2020) to the post-pandemic period (March 2020- December 2020)- National inpatient sample

3.3 Pericarditis

Of the 66,760 admissions for pericarditis identified throughout the study period, 17,110 (25.63%) occurred during the COVID-19 pandemic (Table 1). There were no detectable differences in the average age or sex distribution of patients admitted before or during the pandemic. However, it is noteworthy that the in-hospital mortality among patients admitted with pericarditis was 4% during the pandemic, whereas it was 2.8% before the pandemic (p < 0.002). Additionally, a coexisting diagnosis of COVID-19 was present in 5% of the admissions.

Furthermore, the segmented regression demonstrated a significant decline in the monthly pericarditis admissions following March 2020 (− 459.1, 95%CI − 620.5, − 297.8), (Fig. 2C, Table 2). However, pericarditis admissions continued to increase gradually and exceeded the pre-pandemic number of hospitalizations by July 2020, with a slope (trend) of 43.4 (95%CI 20.1, 66.8).

3.4 Sensitivity analysis

Unlike the primary analysis, the sensitivity analysis showed an immediate increase in the number of endocarditis monthly hospitalization rates during the pandemic period (Supplemental, Figure S3, A). The pre-pandemic monthly hospitalization rate for IE was 245.5/100,000 all-cause hospital admissions (95%CI 242.6, 248.8). The immediate intercept change (level change) for IE after March 2020 was 25.4 IE hospitalizations per 100,000 all-cause hospital admissions (95%CI 6.8, 43.9) (Supplemental, Table S3).

For pericarditis and myocarditis, the sensitivity analysis showed similar results to our primary analysis (Supplemental, Figure S3, B &C).

4 Discussion

We observed a significant decrease in hospitalizations for endocarditis as well as pericarditis in association with the onset of the pandemic. This initial reduction was followed by a steady increase to the pre-pandemic levels by the end of December 2020. In contrast, the number of myocarditis admissions increased immediately following the start of the COVID-19 pandemic in the US and continued to increase through December 2020. This observation aligns with the CDC morbidity and mortality weekly report that showed a rise in myocarditis hospitalizations between April and May 2020 [18]. Our results also match trends in France reported by Pommier et al. [26].

While this observational study cannot support a causal relationship between the COVID-19 viral infection and diseases of the myocardium, 40.9% of patients admitted for myocarditis during the pandemic period had a coexisting COVID-19 infection. From a pathophysiology perspective, the COVID-19 virus can affect the myocardium by direct cell invasion via ACE2 receptors [27]. COVID-19 virus can also cause collateral damage to the myocardium by activating an immune response or lead to widespread inflammation in the heart due to a cytokine storm [28, 29].

We also observed higher mortality among patients admitted with myocarditis during the pandemic period as compared to the pre-pandemic period (3.9% pre-pandemic versus 16.8% during the pandemic, (p < 0.01). Possible explanations include older age of patients admitted during the pandemic, greater multimorbidity, and a COVID-19 coexisting diagnosis [30]. Additionally, managing chronic and acute diseases during the pandemic was suboptimal for many patients within the overwhelmed healthcare system. The observed significant increase in the length of stay at the hospital may be attributed to patients delaying seeking timely medical care for fear of contracting the virus, which could have led to more severe disease at presentation [31]. Additionally, medical staff burnout and shortages, which strained healthcare delivery systems, may have also contributed to prolonged hospital stays [32]. Furthermore, the significant increase in the proportion of Hispanic patients hospitalized with myocarditis during the pandemic period (17.6% versus 2.7% pre-pandemic) raises important questions about potential disparities in healthcare access, exposure risk, or disease severity among racial minorities [33], however, those potential explanations can’t be confirmed in this study and further investigation is required.

We also observed a decline in monthly endocarditis hospitalizations during the pandemic, which matches reports conducted in France and Belgium [19], Spain [20], and China [34]. The decline in endocarditis admissions can be explained by the overall decline in healthcare utilization during the early months of the COVID-19 pandemic [35] or the reduction in using diagnostic procedures [36]. Performing transesophageal echocardiogram (TEE) is considered a class I indication for suspected endocarditis cases and the gold standard diagnostic test. However, due to TEE being “an aerosol-generating procedure” with the easy transmission of COVID-19 to healthcare workers, the use of TEE for IE diagnosis was limited, especially early on during the Pandemic (March and April 2020) [37, 38]. Nevertheless, our study observed an increase in endocarditis admissions from May 2020 to September 2020, which can be explained by a change in patients’ behavior in seeking medical help or a change in healthcare providers’ behavior in ordering more diagnostic procedures after the national lockdown. There is currently no strong evidence to support a direct causative association between COVID-19 infection and endocarditis. While a few case reports have described concomitant occurrences of COVID-19 and infective endocarditis, these cases primarily reflect co-infections rather than a direct causative relationship [39]. There has not been strong evidence in the literature that suggests a direct association between COVID-19 infection and endocarditis.

The sensitivity analysis for endocarditis using the rates of hospitalizations showed an immediate increase after March 2020. Rates are particularly valuable when examining time trends and assessing whether the observed changes over time are due to actual shifts or are merely artifacts of changes in population size or structure. The increase in the rates of hospitalizations of IE could reflect the overall decrease in healthcare utilization during the pandemic, as the data shows that the total number of all-cause hospitalizations in 2018 and 2019 (35,527,490 and 35,419,025) is higher than the hospitalizations in 2020 (32,355,825).

We also report an immediate and slight decrease in pericarditis hospitalizations after March 2020, rebounding to a higher number of monthly admissions throughout the study period. Reports on trends in pericarditis admissions before and during the pandemic are limited. Similar to myocarditis, several studies suggested an association between COVID-19 infection and pericarditis [40, 41] and between COVID-19 vaccination and pericarditis [42]. The observed decline in pericarditis admissions during the first few months of the lockdown could be explained by the overall reduction in healthcare utilization. The observed significant rebound might reflect an association between the COVID-19 infection and the risk of developing pericarditis as a complication.

4.1 Strengths and limitations

The strength of this study is that the use of NIS from 2018 to 2020 allowed for the examination of trends in hospitalizations for an extended period before the onset of the COVID-19 pandemic and comparison of those with hospitalizations occurring during several months following the national lockdown and prior to the first vaccine roll-out.

Study limitations should be noted. Importantly, the use of administrative healthcare data and the ICD-10-CM diagnosis codes for identifying diseases of interest introduces the possibility of disease misclassification. Further, the NIS data does not allow to follow individual patients over time, as the dataset is de-identified and treats each hospitalization as an independent event. Additionally, the interrupted time series analysis is commonly utilized to examine the impact of interventions or policy changes, where a specific implementation date can be identified. The application of this method to natural disasters, such as the COVID-19 pandemic, presents challenges in determining a precise start date. Lastly, as the data from the years 2021 and 2022 are unavailable, we could examine hospitalizations for only 10 months of the pandemic period.

5 Conclusion

Results of this study indicate a notable increase in the number of monthly hospitalizations for myocarditis and a reduction in the hospitalizations for endocarditis and pericarditis following the national COVID-19 lockdown compared to the pre-pandemic period. To comprehensively grasp the lasting impact of the COVID-19 pandemic on these three conditions, further studies with an extended follow-up for the latter years post-pandemic are warranted. Additionally, there is a compelling need for more research exploring the relationship between COVID-19 infection and the heightened risk of developing myocarditis and pericarditis.

These findings have practical implications, as monitoring hospitalization trends for rare cardiac conditions during and after the COVID-19 pandemic can guide healthcare preparedness and resource allocation. Identifying factors behind these changes can help address healthcare disruptions, protect racial minorities, and improve readiness for future emergencies.