Introduction

The most formidable challenge for public health in recent decades has been COVID-19, an infectious disease instigated by the severe acute respiratory syndrome coronavirus (SARS-CoV-2). This pathogen has emerged as a significant threat, necessitating comprehensive investigation and understanding to address its profound implications on global health. Reported COVID-19 deaths in 2020–2021 totalled 5.94 million worldwide, but the full impact of the pandemic has been much greater. Excess mortality estimations suggest that 18.2 million people died worldwide over that period because of the COVID-19 pandemic [1]. In the five waves of the pandemic in Hungary until 2022 March, nearly 45,000 COVID-19-related deaths have been reported [2]. However, it is generally known that the virus can cause varying degrees of disease in different patient subgroups, depending on the comorbidities of the infected person [3]. Nevertheless, the published clinical studies do not provide a consistent picture of the factors influencing the severity of COVID-19. Several studies have demonstrated that both the infection itself and the severe outcome are more common in older people [4, 5]. In addition, a number of other comorbidities have been identified that negatively affect COVID-19 disease outcomes, with a prevalence that increases with age. Data have been reported that patients with cardiovascular diseases, diabetes, or hypertension have elevated ACE2 levels, combined with an increased risk of COVID-19 death [6].

Cancer patients are of particular interest from this point of view, since depending on the tumor character and the host’s immune environment, the cancer patients’ immune status can be functionally and compositionally altered during the tumor progression [7]. Some recent studies have found that cancer patients are more frequently affected by SARS-CoV-2 virus infection and have significantly higher mortality rates than non-cancer patients [4, 8, 9]. However, the role of cancer in influencing the progression of COVID-19 is complex. On the one hand, these patients are more frequently admitted to hospital for their underlying disease, resulting in more frequent COVID-19 testing, which also confirms asymptomatic infections [3, 10]. In addition, these patients spend significantly more time in hospital settings compared to the general population, and hospital environment is known to be a high-risk source of virus spread [11]. Radiotherapy and chemotherapy for cancer patients result in an immunosuppressed condition, which can also contribute to a more severe course of the disease [10]. Among cancer patients, COVID-19 patients with lung cancer and hematologic cancer show the worst prognosis [9, 12,13,14]. This is presumably due to poor respiratory function resulting from direct lung involvement in lung cancer patients and impaired humoral immunity in hematologic malignancies [13]. Nevertheless, the impact of distant metastases in advanced-stage cancers on COVID-19 outcomes remains controversial: while certain studies identify them as indicative of a poor outcome [14], others have not reported a significant association [4].

In addition, the controversial relationship between cancer and COVID-19 may be explained by understanding of immunometabolic pathways that intersect patients having infectious and neoplastic diseases simultaneously [3]. Macrophage activation plays a key role in the progression of both diseases. However, the cytokine storm seen in COVID disease is caused by M1-type macrophages, while anti-inflammatory M2-polarized macrophages are responsible for the anti-tumor immune response [3]. Furthermore, nicotinamide phosphoribosyltransferase (NAMPT) catalyses biosynthesis of nicotinamide adenine dinucleotide (NAD) from nicotinamide and NAMPT/NAD metabolism is altered in response to both viral infections and tumor growth, indirectly indicating the influence of tumor metabolic status on the progression of a patient’s COVID-19 disease [3]. Many aspects of the link between SARS-CoV-2 and cancer have been investigated, with results showing that the virus can influence the progression of the neoplastic disease on the level of glycolysis, translational modification, nucleic acid synthesis, lipid metabolism, and translational splicing [6].

Several clinical studies have investigated the incidence and outcome of SARS-CoV-2 infection in cancer patients. Our study is the first to analyze the association of SARS-CoV-2 infection and its complications with cancer in a large autopsy series, comparing the presentation of COVID-19 in cancer and non-cancer patients. We also aimed to investigate the role of COVID-19 in the fatal sequence leading to death and to analyze the influencing factors of the outcome of the disease in the light of additional clinicopathological parameters of the SARS-CoV-2-positive cancer patients.

Methods

Patient selection and definition of pandemic waves by temporal separation of them

Adult patients (> 18 years of age) who died between 04.03.2020 and 31.12.2022 at one of the clinics of Semmelweis University and underwent a complete pathological autopsy procedure at the Department of Pathology, Forensic and Insurance Medicine were included in the study.

The first and last day of an epidemic wave was defined as the day between two peaks of the epidemic curve, when the lowest daily case number was recorded. The starting date of the period under study is the date of the first domestic case, 4 March 2020. The epidemic curve was constructed using daily confirmed COVID-19 case numbers from the data collection of the National Public Health Centre (NPHC), with the date of confirmation of infection [2]. SARS-CoV-2-positive cases were analyzed only from the second wave onwards, as autopsies in the first wave were only allowed in Hungary under individual authorization. On this basis, patients were divided into four groups to compare the different waves: second wave (22.06.2020–24.01.2021), third wave (25.01.2021–04.07.2021), fourth wave (05.07.2021–26.12.2021), and 5 + waves according to the time between the start of the fifth wave and the end of the study period (27.12.2021–31.12.2022). In Hungary, the second wave was dominated by the wild-type SARS-CoV-2 variant, the third wave was caused by the Alpha (B.1.1.7) variant, the fourth wave by the Delta virus variant (B.1.617.2), while the 5 + waves were dominated by the Omicron BA.1 and BA.2 variants [15, 16].

Ethical approval

The study protocol was following the ethical guidelines of the 1975 Declaration of Helsinki and was approved by the Central Ethical Medical Committee, Budapest (IV/3961–2/2020/EKU, 4354–1/2022/EKU and IV/1543—1/2022/EKU).

Autopsy procedure and reporting

In all cases, the autopsies and the following histological examinations of the patients were performed by a board-certified pathologist or by a pathology resident under the professional supervision of a board-certified pathologist. Tissue sampling for postmortem histopathological examination was done from at least nine different localizations, determined by the questions raised during the autopsy but typically included the heart, lungs, liver, kidneys. Moreover, a much more extended sampling was done according to a predefined protocol during autopsy of SARS-CoV-2-positive cases, including (but not limited to) the following organs/localizations: (1) heart—left ventricle, (2) heart—right ventricle, (3) trachea, (4–5) right lung—upper lobe, (6) right lung—middle lobe, (7–8) right lung—lower lobe, (9–10) left lung—upper lobe, (11–12) left lung—lower lobe, (13) spleen, (14) pancreas—head, (15) liver—right lobe, (16) liver—left lobe, (17) thyroid gland—right lobe, (18) kidney—right, (19) adrenal gland—right, (20) sinus cavity, (21) oropharynx.

When determining the diagnoses of each autopsy case, the different diseases (clinically and/or autopsy diagnosed) were categorized according to their role in the fatal sequence leading to death or their independence from it. The categorization widely used in autopsy pathology describes the events leading to death as a chain of three components (“fatal sequence”): the underlying disease which directly initiates the process leading to death, its complications which further drive this process, and the final of these which is the direct/immediate cause of death. The contributory disease is not included in the preceding sequence (underlying disease-complications-immediate cause of death), but worsens the consequences of the underlying disease and its complications. Another type of diagnosis is concomitant findings not related to the chain of fatal events (coexisting morbidity), which means that they are completely unrelated diseases that do not contribute in any way to the fatal sequence.

When investigating the association of patients’ deaths with COVID-19 disease or cancer, the cases were divided into three groups according to the involvement of SARS-CoV-2 infection or malignant disease. In the first group, the investigated entity (SARS-CoV-2 infection/cancer) was part of the fatal sequence leading to death (underlying cause of death, its complications as consequential diseases, and immediate/direct cause of death), while the second group included cases in which SARS-CoV-2 infection or cancer was a contributory disease and in the third group the investigated entity was only a concomitant finding not related to the chain of fatal events (coexisting morbidity). The diagnosis of a COVID-19-related lung disease was based on macroscopic and/or histological examination of the lungs. Diagnosis of bacterial pneumonia was based on the macroscopic appearance of purulent inflammation in the lung parenchyma (presence of pus). Subsequently, a histological examination was also performed, during which the presence of purulent pneumonia in the lung tissue was confirmed histopathologically (by identification of filling of the alveoli of the lung with neutrophil granulocytes).

The diagnosis list of each autopsy report has been supervised and standardized by experts for the study (ÉK, GL).

Patients were considered to be cancer patients if they had a clinical history of cancer that required medical treatment or affected their condition within a year before their admission to hospital or if the autopsy procedure confirmed cancer. Patients who had a history of cancer but whose disease was eliminated by treatment (more than 1 year) and whose previous cancer did not affect their current condition were categorized as non-cancer patients in the study.

Clinical data and antemortem SARS-CoV-2 testing of the autopsied patients

The clinical data of the patients were collected from the electronic registry of Semmelweis University.

Full vaccination status was attributed to patients who had completed the primary series of any of the vaccines authorized in Hungary throughout the study duration. The primary series typically comprised two doses for the majority of vaccines; those who received fewer than this were classified as partially vaccinated. Patients with no information on their vaccination history in the university’s electronic system were considered to have unknown vaccination status.

An antemortem clinical sampling was carried out from the upper respiratory tract of each patient for SARS-CoV-2 testing in accordance with the patient care regulations of Semmelweis University, Budapest, and the Interim Guidelines for Collecting and Handling of Clinical Specimens for COVID-19 Testing (Centers for Disease Control and Prevention of the United States of America; https://www.cdc.gov/coronavirus/2019-ncov/lab/guidelines-clinical-specimens.html).

Patients were considered SARS-CoV-2-positive if they had a positive antemortem real-time reverse-transcription polymerase chain reaction test (AzureSeq-200 CE RT-qPCR Kit SARS-CoV-2, Omixon Biocomputing Ltd., Budapest, Hungary) or antigen rapid test (Panbio™ COVID-19 Antigen Self-Test, Abbott Rapid Diagnostics Jena GmbH, Jena, Germany) during their hospital admission or stay and were still a positive patient at the time of death.

Statistical analysis

All data management, calculations, and plotting were carried out in R software environment (version 4.0.2) and R Studio portable (version 1.3.959).

The following parameters were investigated between subgroups of patients stratified by SARS-CoV-2 positivity and cancer: sex (male/female), age (in years), vaccination status (vaccinated/unvaccinated/partly vaccinated/unknown), complications of SARS-CoV-2 infection (viral pneumonia/viral pneumonia with bacterial overinfection/asymptomatic infection), role of COVID-19 in death (COVID-19 in sequence leading to death/contributory disease/concomitant disease), role of cancer in death (cancer in sequence leading to death/contributory disease/concomitant disease), COVID-19 waves (2nd/3rd/4th/the time between the start of fifth wave and the end of the study), primary tumor type (breast/colorectal/gastroesophageal/genitourinary/gynecologic/head and neck/hematologic/liver/lung/pancreatobiliary/multiple/other), and presence of distant metastasis (yes/no). Categorical variables were described as frequencies and analyzed using 2 × 2 or 2 × 3 contingency tables and compared using Fisher’s exact probability test and paired Wilcoxon test. Continuous variables were described as means, range, and SD and age differences were analyzed by the Kruskal–Wallis test. Univariable and multivariable logistic regression analyses were used to identify the independent risk factors for having SARS-CoV-2 infection among conditions of the fatal sequence leading to death. Using the MASS package in the R software environment, multivariable analysis with backward selection method was also performed to select variables associated with the fatal role of COVID-19 or the type of the developed pneumonia. The parameters examined were the following: age (years), sex (male/female), vaccination (yes/partly (at least one shot)/no or not known), anti-COVID-19 treatment (no/yes), perioperative status (within 30 days after surgery; no/yes), hospitalization (days), primary tumor (solitary/multiple or metastatic or hematologic), under ongoing anticancer therapy (no/yes). All p values were calculated two-tailed and considered significant when p < 0.05.

Population-based mortality data of cancer patients infected with SARS-CoV-2

To investigate the impact of SARS-CoV-2 infection on mortality among Hungarian cancer patients, a retrospective case–control analysis was also conducted. In this part of the study, we focused on mortality from two common malignant solid tumor types, so that patients with ICD-10 codes of colorectal cancer (CRC) (C17-C20) or breast cancer (C50) were included in the investigated cases and the population without a diagnosis of C17-C20 or C50 was included in the control cases. The analysis method was logistic regression using IBM SPSS 27.0 software. Patients eligible for the study were identified from anonymized administrative medical data of the National Health Insurance Fund Management (NEAK) using the social security identification number (TAJ) database. The outcome variable was mortality after 1 January 2020; independent variables were age, sex (for CRC), medical history of comorbidities, number of SARS-CoV-2 infections, number of COVID-19 vaccinations, and C50 or CRC ICD status. The disease-specific codes were defined by an oncologist. Inclusion criteria for the study were as follows: Hungarian citizen, valid Hungarian social security identification number (TAJ), registered at least once by the National Center for Public Health and Pharmacy (NNGYK) as infected with SARS-CoV-2, alive on January 1, 2020, and at least 40 years old. Databases used were as follows: inpatient, outpatient, and TAJ (containing data on residents’ demographics, citizenship, TAJ validity) databases of the NEAK from the period of 2010–2021; e-Health Care Cloud Hosting (EESZT) vaccination data registry; NNGYK SARS-CoV-2 infection registry. More details are shown in the Supplementary material.

Results

Cohort characteristics

A total of 2641 adult autopsies were performed in our department during the study period. A total of 539 of these patients tested positive for SARS-CoV-2 on antemortem testing. Among the total number of patients analyzed, 829 had active cancer. In terms of primary tumors, lung cancer was the most common (123 cases, 14.8%), followed by cancers of genitourinary origin (116 cases, 14%), colorectal cancer (112 cases, 13.5%), hematologic malignancies (102 cases, 12. 3%), pancreatobiliary cancers (94 cases, 11.3%), head and neck cancers (46 cases, 5.6%), breast cancer (44 cases, 5.3%), stomach or oesophageal cancer (38 cases, 4.6%), liver cancer (26 cases, 3.1%), and cancer with gynaecological origin (24 cases, 2.9%). A total of 40 patients (4.8%) in the study cohort had more than one tumor diagnosis simultaneously. A further 63 patients (7.6%) had less common tumors, distributed as follows: cancer of unknown primary origin (CUP) (15 cases), central nervous system tumor (13 cases), soft tissue tumor (9 cases), melanoma (8 cases), endocrine tumor (7 cases), skin cancer (3 cases), mesothelioma (4 cases), small bowel cancer (3 cases) and appendix tumor (1 case). Overall, the cohort included 100 patients who simultaneously had cancer and SARS-CoV-2 infection.

Clinicopathological parameters of SARS-CoV-2-infected cancer and non-cancer patients

The characteristics of SARS-CoV-2-infected cancer and non-cancer patients autopsied in our department during the COVID-19 pandemic are shown in Table 1. No statistically significant difference was found in the distribution of the age, sex, and vaccination status. However, significant differences were found in the presentation of the infection, the role of COVID-19 in death, and the distribution of the cancer vs non-cancer patients by COVID-19 waves. The presentation of the infection in the SARS-CoV-2-infected cancer patients was milder as both the viral and bacterial pneumonia were significantly less frequent (42.0% and 24.0%, respectively) in comparison with the non-cancer cases (52.6% and 32.8%, respectively) while a higher proportion of cancer patients had SARS-CoV-2 infection without COVID-19 disease (34.0% vs. 14.6% in non-cancer patients). Another important difference is that COVID-19 more frequently played a direct role in the death of the non-cancer patients (75.6% in non-cancer vs. 45.0% in cancer patients) while it was more frequently found as contributory disease or coexisting morbidity in the cancer patients (10.3% and 14.1% in non-cancer vs. 22.0% and 33.0% in cancer cases, respectively). The distribution of autopsied non-cancer cases showed a relatively balanced distribution in the different waves of COVID-19, while a higher proportion of cancer cases among the deceased infected patients was observed in the second wave.

Table 1 Comparison of baseline clinicopathological parameters and characteristics of SARS-CoV-2 infection between SARS-CoV-2-positive cancer and non-cancer patients

Characteristics of cancer patients with or without SARS-CoV-2 infection

The characteristics of SARS-CoV-2-infected and non-infected cancer patients who underwent autopsy in our department during the COVID-19 pandemic are shown in Table 2. No statistically significant difference was found in the distribution of the age and sex between the virus-infected and SARS-CoV-2-negative subgroups. However, in SARS-CoV-2-negative cancer patients, malignant disease was significantly more often the direct cause of death (76.3% in SARS-CoV-2-negative vs 60.0% in infected patients) and less frequently a contributory disease or coexisting morbidity (18.2% and 5.5% in uninfected vs 36.0% and 4.0% in infected patients). In line with this, distant metastases were more frequently seen in the SARS-CoV-2-negative cancer patients. The distribution of cases according to primary tumor type showed a relatively higher occurrence of hematologic malignancies among SARS-CoV-2-positive cancer patients compared with the uninfected subgroup, in which lung cancer was slightly more common.

Table 2 Comparison of basic clinicopathological parameters and tumor characteristics between SARS-CoV-2-positive and -negative cancer patients

Cancer and non-cancer patients were investigated to determine whether the infection had resulted in viral pneumonia (with or without bacterial overinfection). Our results indicated that both cancer and non-cancer groups of patients were significantly less likely to develop pneumonia during the fifth wave, as compared to the second wave (Fig. 1a, b; p = 0.0243 for cancer and p < 0.0001 for non-cancer patients). Furthermore, when comparing the two groups of patients in the different waves, the occurence of pneumonia was significantly more frequent in the second (p = 0.0139) and third (p = 0.0022) waves among non-cancer patients, but not in waves 4 and 5 + (Fig. 1c).

Fig. 1
figure 1

Presence of viral pneumonia (a, b, c) and its bacterial overinfection (d, e, f) in SARS-CoV-2 infected cancer (red columns) and non-cancer (blue columns) patients

Among pneumonia cases, the presence of bacterial overinfection showed a similar increasing trend towards later waves between cancer and non-cancer patients, but no statistically significant difference between waves was found in cancer patients (Fig. 1d), whereas among non-cancer patients, the rate of bacterial complications was significantly higher in the waves 4 (p = 0.0239) and 5 + (p = 0.0005), compared to the wave 2 (Fig. 1e). When the two groups of patients were compared, no significant differences were found in the different waves, confirming the similarity of the increasing trend in the incidence of bacterial overinfection in the later waves between cancer and non-cancer patients (Fig. 1f).

We also investigated the role of SARS-CoV-2 infection and cancer in the sequence leading to death. COVID-19 was significantly more common concomitant disease/coexisting morbidity (not related to fatal sequence) in the waves 5 + compared to the second wave in both cancer (p = 0.0497) and non-cancer (p < 0.0001) patients (Fig. 2a, b). However, when comparing these two groups of patients in the different waves, SARS-CoV-2 infection/COVID-19 diagnosis as coexisting morbidity (not related to fatal sequence) was more frequent in the second (p = 0.0004) and third (p < 0.0001) waves among the cancer than in non-cancer patients (Fig. 2c). Conversely, when we analyzed the role of cancer in the chain of events leading to death in the SARS-CoV-2 infected and uninfected subgroups, we found no significant difference between either wave compared to the second wave, and no significant difference between the two subgroups in the different waves (Fig. 2d–f).

Fig. 2
figure 2

Role of SARS-CoV-2 infection and cancer in the fatal sequence. Contribution of SARS-CoV-2 infection (a: in cancer, b: in non-cancer, c: in both cancer and non-cancer patients) and cancer (d: in SARS-CoV-2 infected, e: in non-infected, f: in both SARS-CoV-2 infected and non-infected patients) to the fatal sequence in the 2nd, 3rd, 4th and 5 + waves

Contribution of COVID-19 to death in SARS-CoV-2-infected cancer patients.

We performed univariable and multivariable logistic regression to identify the clinical factors that might be associated with the direct role of SARS-CoV-2 infection in the fatal sequence. In univariable analysis, gender, specific anti-COVID-19 therapy (any of remdesivir, favipiravir, REGEN-COV), ongoing (active) chemotherapy, perioperative status (within 30 days after surgery), and tumor dissemination status (solitary primary/multiple primary/metastatic/hematologic) were the factors that significantly influenced whether COVID-19 played a direct role in the sequence leading to death (Table 3a). Multivariable logistic regression analysis revealed that perioperative status is a negative independent predictor of the direct involvement of COVID-19 disease in the fatal sequence (p = 0.0123; OR = 0.17, CI = 0.04–0.60). In contrast, among patients who were currently undergoing anti-tumor therapy, COVID-19 was independently positively associated with direct involvement of the disease in the chain of events leading to death (p = 0.0167, OR = 4.76, CI = 1.43–19.38) (Table 3a). However, when looking for which clinical factors have a significant influence on whether COVID-19 plays any role (not only a direct but also a contributing role) in cancer mortality, the association with active anticancer treatment was found to be low, as nor univariable, nor multivariable logistic regression analysis did not show a significant association, while a multivariable logistic regression with backward selection approach found a marginally significant p-value (0.044). Moreover, sex, pandemic waves, and perioperative status were found to be significant influencing factors in univariable analysis, out of which pandemic waves were also found to be a significant independent influencing factor of the underlying role of COVID-19 in the sequence leading to death in multivariable analysis (Table 3b). The pandemic waves also appeared to be a significant independent determinant of the clinical presentation of COVID-19 disease in SARS-CoV-2-infected cancer patients, as the incidence of pneumonia differed significantly between waves (Fig. 1a and c, Table 3c).

Table 3 Clinical factors influencing the contribution of COVID-19 to death and the development of pneumonia in SARS-CoV-2-infected cancer patients

Population-based mortality outcomes for cancer patients infected with SARS-CoV-2 virus

After quality control and cleaning process, data from 510,149 SARS-CoV-2-infected individuals including 13,693 breast cancer cases, and 899,597 SARS-CoV-2-infected individuals including 10,760 colorectal cancer cases, were available for statistical analysis of COVID-19-related breast and colorectal cancer mortality. The Nagelkerke R Square value assessing the goodness of fit of the logistic regression model was high (breast cancer = 0.613, CRC = 0.612) indicating a strong relationship between the predictors and the outcome for both tumor types. Among SARS-CoV-2-infected patients, women with breast cancer had significantly lower odds of death (OR = 0.817) than the non-breast cancer population. In contrast, the mortality rate of SARS-CoV-2-infected patients with colorectal cancer was significantly higher (OR = 1.254) than that of infected patients without CRC (Supplementary Table 1 and 2.).

Discussion

This is the first large-scale autopsy-based study analyzing the relationship between the SARS-CoV-2 infection and the cancer-related death.

The studies already published in this field are mainly based on clinical and cancer-registry data which were not confirmed by autopsy findings [17,18,19,20,21,22]. Accordingly, our findings and those from other approaches are not directly comparable and may be somewhat contradictory. A fundamental finding from the clinical studies is that the COVID-related death rate is generally higher among the cancer patients than in the age-matched general population [17,18,19, 22]. Nevertheless, a nuanced examination of the published data is warranted. This entails a more detailed analysis, considering factors such as the criteria defining a cancer patient, the specific pandemic waves under consideration, the tissue or organ origin of the cancer, and the age groups being investigated.

In a Canadian study, Hosseini-Moghaddam and colleagues observed an increased risk of SARS-CoV-2 infection, hospitalization, and mortality for individuals with hematologic malignancies compared with the general population, while solid tumor patients had a lower risk of SARS-CoV-2 infection but an increased risk of hospitalization and mortality [19]. However, in a US study investigating patients diagnosed with COVID-19, Chavez-MacGregor and colleagues found that cancer patients who had not undergone recent treatment (these are likely to be patients with cured or currently inactive disease) had similar or better outcomes than non-cancer patients [20]. In contrast, a higher risk of hospitalization, intensive care unit stay, and death was observed in patients who had recently received cancer treatment. Specifically, recent chemotherapy and chemoimmunotherapy were associated with increased mortality of SARS-CoV-2-infected patients. This is supported by our own results, as COVID-19 is more likely to be part of the chain leading to death (underlying disease-complications-direct/immediate cause of death) in patients under active anticancer therapy.

Moreover, as we had access to population-level Hungarian data for two solid tumor types, we investigated mortality among patients suffering from these two cancer types and infected with SARS-CoV-2. Interestingly, among infected women, breast cancer patients had significantly lower odds of death than the non-breast cancer subpopulation. In contrast, the mortality rate of SARS-CoV-2-infected patients with colorectal cancer was significantly higher than that of infected patients without CRC. Therefore, no general conclusions can be drawn regarding the mortality rate of SARS-CoV-2-infected cancer patients from our population-based data. However, this interesting result highlights that differences in the incidence of different tumor types can influence the overall association between COVID-19 and mortality in cancer patients and that our autopsy data may not necessarily contradict the population-based mortality results. Compared to individuals with solitary solid tumors, patients with disseminated disease (metastatic solid tumors, hematologic malignancies) required mechanical ventilation more often and had worse mortality rates [20, 21]. This was in line with our results, as there was a significant difference in the distribution of malignant disease types between SARS-CoV-2-positive and -negative cancer patients (Table 2), with a predominance of hematologic malignancies among SARS-CoV-2-positive cancer patients. On the other hand, we found no significant association between the tumor dissemination status (solitary solid primary tumor versus disseminated disease, including multiple solid primary tumors, metastatic solid tumor, and hematologic malignancies) and whether COVID-19 contributed to patient death, as shown in Table 3.

Bernard et al., analyzing in-hospital mortality rates for subgroups of COVID-19 patients, found that mortality rates for both non-cancer patients and patients with non-metastatic solid cancer, metastatic solid cancer, and hematologic cancer had increased with age [21]. In contrast, no age-related differences were observed in our autopsy cohort (Table 1, Table 2, Supplementary Fig. 1). However, this can be explained both by the much smaller cohort size and by the autopsy nature of our cohort being different from the population data.

The significance of the differences between individual waves is highlighted by a US study by Potter and colleagues analyzed non-cancer and cancer patients who died from COVID-19 during the wild-type (December 2020–February 2021), Delta (July 2021–November 2021), and winter Omicron (December 2021–February 2022) pandemic waves. The results demonstrated that among SARS-CoV-2-infected patients, cancer mortality peaked in a different wave (winter Omicron period) than non-cancer (wild-type period), while strong age-dependent differences were found in the mortality of infected patients with and without cancer in the Delta wave. Differences in mortality by tumor type were also found between the pandemic waves, most notably for patients with lymphoma [23].

Although we did not find such wave-dependent variations in our study cohort, our results also strongly support that differences exist among the individual pandemic waves, of which the second wave was dominated by the wild-type SARS-CoV-2 variant, the third wave by the Alpha, the fourth wave by the Delta, while the 5 + waves were dominated by the Omicron variants in Hungary. We found that both cancer and non-cancer patients were significantly more likely to develop pneumonia in the second wave compared to the 5 + waves and the incidence of pneumonia was significantly higher in non-cancer than cancer patients in the earlier waves, but not in waves 4 and 5 + . Moreover, bacterial overinfection of viral pneumonia among both cancer and non-cancer patients showed a similar increasing trend towards later waves. In the second and third waves, it was significantly more common in cancer patients than in non-cancer patients, and in both groups of patients in waves 5 + compared to the second wave, COVID-19 was not related to the sequence leading to death. The above findings are supported by the results of multivariable analyses showing that earlier than 5 + pandemic waves are independently associated with a higher incidence of pneumonia among SARS-CoV-2-infected cancer patients. Differences between pandemic waves may be explained by differences in the pathogenicity of SARS-CoV-2 variants and the evolving immunological status of the population, which has been influenced by the increasing number of individuals with immunity acquired through vaccination against the virus or recovery from the disease as time has progressed. Our results, furthermore, show that the course of the COVID-19 disease was less severe in the cancer than in the non-cancer patients. SARS-CoV-2 infection without COVID-19 disease was more frequently seen in cancer patients and both viral and bacterial pneumonia were significantly less frequent. In the background of this, we hypothesize the role of altered immune status of the cancer patients. Especially in the earlier waves, the cytokine storm played an important role in the pathogenesis of the COVID-19 disease, including the development of lung alterations, where an extensive immune response and inflammation frequently led to diffuse alveolar damage (DAD) and adult-type acute respiratory distress syndrome (ARDS) [24]. The pathogenetic mechanism of COVID-19 and the mortality data are contradictory, as the excessive inflammatory response characterized by the cytokine storm contributes to COVID-19-induced mortality, while mortality is lower in patients with robust immunity (i.e. young and female patients). On the other hand, population data suggest that impaired immunity, where the conditions for the development of the cytokine storm are less given, is associated with higher mortality (e.g. in immunocompromised and elderly patients) [25]. Based on our results, the latter category also includes the cancer patients, where although the medically detectable symptoms of COVID-19 are milder, the overall mortality is still higher. This discrepancy is reflected also in data such as the fact that in the second wave, the proportion of cancer cases among infected patients who died was higher, while the risk of developing pneumonia was lower, and COVID-19 was not more frequently found as a direct cause of death in cancer patients in wave 2.

In this context, our data also confirm that COVID-19 was less likely to play a direct role in the deaths of cancer patients, more often occurring as a contributory disease or (as a higher proportion of cancer patients had SARS-CoV-2 infection without COVID-19 disease) coexisting morbidity. In our view, this does not really contradict the higher mortality rates associated with COVID-19 in cancer patients observed from clinical studies [17,18,19, 22], as even a mild additional disease in cancer patients can throw the body out of balance and set off a chain of events leading to death. Therefore, COVID-19 can often be considered only as a contributory disease or even less important coexisting morbidity to the underlying malignant cause of death.

Chavez-MacGregor and colleagues found a higher risk of death in patients who had recently received cancer treatment [20]. Our study supports this, as recent anticancer treatment was the only positive independent predictor of COVID-19 being directly involved in the chain leading to death.

Furthermore, we found an independent negative association between the perioperative status of patients and the direct involvement of COVID-19 in the fatal sequence, suggesting that the underlying malignancy and consequent surgery are more important factors leading to death in these patients than viral disease.

Another interesting finding from the analysis of the autopsy data was that SARS-CoV-2 positivity was more frequent among non-metastatic than metastatic cancer cases. This can be related to the observation of Hosseini-Moghaddam and colleagues that solid tumor patients had a lower risk of SARS-CoV-2 infection [19]. One of the factors behind the lower incidence of SARS-CoV-2 infection in patients with solid tumors and especially in patients with metastatic cancer, and the milder course of COVID-19, may be the immunological status influenced by SARS-CoV-2 infection. However, other studies also did not confer metastatic disease as a significant risk of severe COVID-19 disease [4].

This study, like most studies usually, has certain limitations. One of the main limitations is that although we know which patients were COVID-19 positive at the time of death, we do not know who had previously experienced the disease without laboratory confirmation of the SARS-CoV-2 positivity. A previous study found that SARS-CoV-2-positive patients with a history of cancer in the anamnestic data had a higher rate of serious events than the non-cancer population. Our study included a total of 57 patients with a history of cancer who were treated surgically and survived without complications. Among these patients, a total of 7 patients were SARS-CoV-2 positive, so with this number of cases, we could not handle this subgroup during the statistical analyses separately [12]. The retrospective nature of the study is also a limiting factor. As well as, we have not been able to take into account that vaccination status and pandemic waves are not independent of each other (more vaccinated people appear in later waves). Another major limitation is that it is not based on multicentre, large-scale data collection, but on autopsy results from a single tertiary COVID-19 centre, where the incidence of different cancer types may not be the same as the population average. Due to the diversity of patients’ malignant disease, it was not possible to assess their advancement in progession or status in a uniform way. In our study, we did not have the opportunity to examine the first wave, because during this period, SARS-CoV-2-positive deceased patients were only autopsied in particular settings. Although it is widely known that lesions caused by SARS-CoV-2 infection can occur in a variety of extrapulmonary localizations, the present study is limited to the analysis of pulmonary manifestations [26, 27].

To conclude our autopsy study, the course of COVID-19 in cancer patients was much more balanced during the pandemic than in non-cancer patients, who more often had severe, fatal COVID-19 in the early disease waves. This may be partly due to the relative immunosuppressed status of cancer patients, and to the fact that even early/mild viral infection can more easily upset the balance of their condition, leading to death from their underlying cancer or its other complications.