Introduction

Community-acquired pneumonia (CAP) is associated with a significant healthcare burden in elderly and multimorbid patients. This association is specifically modulated by the presence of immunosuppression, which is linked to not only a higher CAP incidence and severity, but also to rare pathogens not covered by empirical treatment [1,2,3,4]. However, there is still no widely accepted definition of immunosuppression [1, 3, 5] as causes of immunosuppression are complex and include both innate and acquired medical conditions as well as numerous treatments resulting in immune impairments. The number of people at risk is presumably rising due to improved survival of patients with immunosuppressive conditions and increasing implementation of immune-modulating treatments for a variety of diseases. Earlier, most studies estimated that 2 to 4% of western adult populations are immunosuppressed [6,7,8,9,10], but a recent study reported an increase to 6.6% within the last decade [11]. Due to the complexity of immunosuppression data often lacks precision. In hospitalized patients with CAP, studies reported up to 18–25% immunosuppression [12, 13], however population-based non-selected data including in- and outpatients along with detailed information on different immunosuppressive conditions are unavailable. In order to target preventive measures like vaccines or drug prophylaxis and to potentially address modifiable immunosuppressive conditions in patients at risk, such information is key. Therefore, we performed a large population-based study to evaluate the specific risk of different immunosuppressive conditions in order to identify risk factors for occurrence and outcome as well as association with rare pathogens in adult in- and outpatients with CAP.

Methods

Study population

We conducted a retrospective cohort study using data provided by AOK PLUS, the most common statutory health insurance in the German federal state of Saxony holding contracts with about 50% of the state’s population. Provided pseudonymized data consisted of detailed information about sociodemographics, diagnoses, inpatient and outpatient treatment, performed procedures, prescribed drugs and medical remedies. Data was retrieved 2015–2018 for CAP epidemiology and 2010–2018 for vaccination status considered in the covariate analysis. Patients were included when alive and at legal age (> 17 years) in 2015 and continuously insured (> 349 days per year) by AOK PLUS between 2010 and 2014. This analysis was approved by the Saxon State Ministry for Social Affairs and the ethics committee of TU Dresden (EK 143052018).

Outcome definition

Coded diagnosis of CAP during the study period was declared to be the primary endpoint of our investigation. We secondarily examined for coded diagnosis of CAP associated with rare pathogens, the need for hospitalization and 30-day all-cause mortality after diagnosis of CAP. The risk of meeting the endpoint criteria was calculated for below described factors and covariates.

We identified CAP cases using ICD-10-GM codes (International Classification of Diseases, 10th Revision, German Modification) as recently published [4]. CAP was defined as hospitalization and a main discharge diagnosis of pneumonia coded by ICD-10-GM A31.0, A42.0, A43.0, A48.1, A70, B01.2, B25.0, B44.0, B44.1, B45.0, B46.0, B59, B58.3, J10.0, J11.0, J12.x–J16.x, J18.x, J69.0, J85.1 or hospitalization and a main discharge diagnosis of sepsis (A40.x–A41.x) in combination with a secondary diagnosis of pneumonia as encoded above or an ambulatory diagnosis of pneumonia as previously defined followed by a prescription of an anti-infective drug (ATC J01, J02A, J05) [4].

CAP associated with rare pathogens was classified as a subgroup of above defined CAP when encoded as A31.0, A42.0, A43.0, B01.2, B25.0, B44.0, B44.1, B45.0, B46.0, B59 or B58.3.

Mortality was defined as death of any cause within a 30-day period after diagnosis of CAP.

Definition of immunosuppression

Immunosuppression can be obtained by both an underlying condition and a drug-induced deficiency. As these characteristics can vary by time for an individual person, we considered episodes of immunosuppression.

Underlying immunosuppressive conditions were defined as (1) active hematologic neoplasm, (2) stem cell or solid organ transplantation, (3) neutropenia, (4) HIV infection or (5) defined primary or humoral immune deficiency syndromes; the corresponding ICD-10-GM codes are depicted in Table S1. An immunosuppressive condition was considered as existent from the first day of inpatient documentation or first quarter of outpatient documentation.

For drug-induced immunodeficiency we established four definitions: (I) antineoplastic drugs including rituximab (Table S2), (II) immunosuppressants (Table S3), (III) systemic steroid therapy for more than 90 days using a prednisone daily dose equivalent (PDDE) of 10–20 mg (Table S4), (IV) systemic steroid therapy for more than 30 days using a PDDE of > 20 mg (Table S4). We included immunosuppressive medication when prescribed at least twice within one or two consecutive quarters of a year. For definition I immunosuppressive exposure started immediately after the first prescription and ended 90 days after the last one. Exposure to immunosuppression according to definitions II-IV began 14 days after the first drug prescription and ended 90 days after the last one. In case of a period without prescription for > 90 days the immunocompromised state ceased as stated above and was reconsidered 14 days after a following prescription. Episodes with singular steroid prescriptions equivalent to > 10 mg prednisone were excluded from the analysis since they could not be assigned to either definition III or IV as the exposure was unclear.

Statistical analysis

Since our primary endpoint CAP could occur multiple times during the observation period in each person the Andersen-Gill model was used for our cohort study [14]. It allows the analysis of recurrent event episodes of various lengths over the study period. Patients’ episodes were split each time a new diagnosis emerged or a relevant change in medication occurred. All CAPs diagnosed within 30 days in a single patient were considered the same episode. Estimates were displayed as hazard ratios (HR) and their corresponding 95% confidence intervals (CI) and cumulative hazard rates were plotted for subgroups.

The analysis was adjusted for the covariates: age, sex, level of long-term care (long-term care as defined by German Social Code XI), type of community (cities > 85,000 inhabitants holding Saxony’s largest healthcare providers including all of the state’s maximum-care hospitals compared to provincial/rural areas), pneumococcal vaccination up to 5 years prior to study period, influenza vaccination up to 1 year prior to study period and chronic comorbidities. The latter were defined and grouped according to ICD-10-GM codes as shown in Table S5 that were adapted from comorbidity measurement tools developed by Charlson and Elixhauser [15]. For internal case validation comorbidities had to be coded twice or more to be considered a relevant diagnosis [16]. More than three consultations were required for a cancer diagnosis to be considered [17]. The analyses were performed with R (v3.6.3) and RStudio (v2023.09.1 + 494) using the survival package, the survminer package for plotting the absolute risks and the forestplot package to create forest plots [18, 19].

Results

Occurrence of CAP and immunosuppression

We acquired 1,827,164 insured people with AOK PLUS on the first day of 2015 (Fig. 1). We excluded people that were underage or not continuously insured by AOK PLUS and omitted episodes regarding immunosuppressive status of (1) people living outside of Saxony or (2) with steroid prescriptions of unclear daily dose as mentioned above. As a result, a total of 942,008 people with 3,523,305 episodes with or without immunosuppression were included in our study; their characteristics are shown in Table 1.

Fig. 1
figure 1

Flowchart of selection process of study population. After applying the listed inclusion and exclusion criteria the observation group consisted of 942,008 individuals providing a total of about 3.5 Mio. observation episodes. PDE – prednisone dose equivalent

Table 1 Characteristics of study population

We identified 56,785 individuals (6.0% of the total cohort of all continuously insured individuals) facing at least one episode of immunosuppression throughout the study period. The majority of people with an underlying immunosuppressive condition suffered from active hematologic neoplasms (15,192; 26.8%) while steroid therapy was most common in patients with drug-induced immunosuppression (22,587; 39.8%).

Among the study population 45,615 people faced a total of 54,781 CAPs. In 6,474 patients (14.2% of all CAP patients) the diagnosis was noted more than once during the study period. We found a hospitalization rate of 54.6%. Overall, 30-day mortality was at 14.5%.

Amid all CAPs 7.7% (4,211) suffered from an underlying immunosuppression. Active hematologic neoplasms were the most frequent cause (2,168; 51.5%) followed by systemic steroid therapy (740; 17.6%), immunosuppressants (734; 17.4%) and antineoplastic drugs (652; 15.5%).

Of all CAPs 630 (1.2%) were associated with rare pathogens according to ICD-10-coding and therefore not covered by the standard empirical antimicrobial therapy (Table 2). Despite a higher median year of birth of 1951 (compared to 1938 for all CAPs), admission rate was similar to regular pneumonia with 57.1% of patients hospitalized while the proportion of immunocompromised patients was considerably increased by more than a fourfold (36%). All-cause 30-day mortality was 8.9%.

Table 2 Occurrence of CAP associated with rare pathogens according to ICD-10-GM codes

Immunosuppression as risk factor for CAP occurrence, hospitalization and mortality

Figure 2 demonstrates the risk factor evaluation for CAP including all predefined immunosuppressive conditions after multivariable analysis. Increasing age and rising levels of long-term care contributed most to contracting CAP.

Fig. 2
figure 2

Risk factor evaluation for occurrence of CAP. 54,781 CAPs out of ∼ 3.5 Mio. total recorded observation episodes were analyzed. Hazard ratios (HR) and corresponding 95% confidence intervals were calculated using the Andersen-Gill model and are displayed as forest plot. PDDE – prednisone daily dose equivalent

Aside from chronic pulmonary comorbidities an immunocompromised state was the most critical risk factor among medical conditions for CAP (HR 2.4 [95%-CI 2.3–2.5] for any kind of immunosuppression). In particular, we found solid organ transplantation (HR 3.2) and HIV infection (HR 3.2) to be highly associated with CAP, followed by stem cell transplantation (HR 2.8), systemic steroid therapy using PDDE > 20 mg (HR 2.7) and antineoplastic drugs (HR 2.3) (Fig. 2). Selected absolute risk rates for CAP according to age, sex and immunosuppressive states are shown in Fig. 3.

Fig. 3
figure 3

Absolute risks for CAP under specific immunosuppressive conditions. Patients with immunosuppression in general (b), with an active hematologic neoplasm (c) and systemic steroid therapy of PDDE 10–20 mg (e) or PDDE >20 mg (f) compared to controls ((a) and (d)) that are not subject to the respective risk factor. Cumulative hazards and corresponding 95% confidence intervals are given depending on sex and age. PDDE – prednisone daily dose equivalent

Figure 4 shows a specific evaluation of the most frequent immunosuppressive drugs corrected for sex, age, level of long-term care, type of community and vaccination status. Rituximab and calcineurin inhibitors accounted for the highest CAP risks (HR 5.1 and HR 4.6, respectively), followed by systemic steroid therapy using PDDE > 20 mg (HR 3.4).

Fig. 4
figure 4

Risk factor evaluation for occurrence of CAP under common immunosuppressants. Risks were additionally adjusted for age, level of long-term care, vaccination status and type of community. 54,781 CAPs out of ∼ 3.5 Mio. total recorded observation episodes were analyzed. Hazard ratios (HR) and corresponding 95% confidence intervals were calculated using the Andersen-Gill model and are displayed as forest plot. PDDE – prednisone daily dose equivalent

To further assess the specific relative risks of particular immunosuppressive drugs we performed an additional analysis considering solely patients on immunosuppressants including steroids (definitions of immunosuppressive medications II-IV) (n = 928). We set methotrexate treatment as control (HR 1) and corrected for the above-named covariates (Fig. S1). Compared to methotrexate, we identified the highest risk for calcineurin inhibitors (HR 4.6), closely followed by a steroid treatment using PDDE > 20 mg (HR 4.3).

Evaluation of risk factors for hospitalized CAP is presented in Fig. S2. People at ≥75 years of age were at a vastly higher risk of requiring inpatient treatment (HR > 7). The hospitalization rate more than doubled in immunosuppressed patients (HR 2.5 [95%-CI 2.4–2.6]). Organ and stem cell transplant receivers were most likely to require inpatient treatment (HR 3.5 and HR 3.6, respectively), followed by a systemic steroid therapy of PDDE > 20 mg (HR 2.7). All-cause 30-day mortality was extensively elevated in patients with an intensive level of long-term care (HR > 70) (Fig. S3). Nevertheless, it was also particularly prominent among immunocompromised individuals (HR 1.9 [95%-CI 1.8–2.1]). In fact, it was dominated by stem cell transplantation (HR 5.5). Antineoplastic drugs (HR 2.8) und solid organ transplantation (HR 2.5) likewise indicated substantial hazards.

Immunosuppression as risk factor for CAP associated with rare pathogens

Among the 630 recorded CAPs associated with rare pathogens by ICD coding Aspergillus spp. (275; 43.7%), nontuberculous mycobacteria (NTM) (176; 27.9%) and Pneumocystis jirovecii (134; 21.3%) were most common (Table 2). We evaluated risk factors of contracting CAP associated with rare pathogens compared to the entire study population (Fig. 5).

Fig. 5
figure 5

Risk factor evaluation for occurrence of CAP associated with rare pathogens. 630 CAPs with ICD-10-coded rare pathogen association out of ∼ 3.5 Mio. total recorded observation episodes were analyzed. Hazard ratios (HR) and corresponding 95% confidence intervals were calculated using the Andersen-Gill model and are displayed as forest plot. PDDE – prednisone daily dose equivalent

Immunosuppression in general was present in 36% of the 630 cases making it the most substantial risk factor (HR 17.1 [95%-CI 12.0–24.5]), while age and level of long-term care played a limited role only. A pre-existing lung disease, however, was accountable for a HR of 7.2. Among immunosuppressive conditions active hematologic neoplasms depicted the most common condition (102 cases, 45%), but people suffering from HIV (HR 34.1) or receiving a systemic steroid treatment using PDDE > 20 mg as well as patients after solid organ transplantation faced the highest risk of contracting rare pulmonary infections (HR 8.2 and HR 8.5, respectively). Though we did see a higher risk for rare pathogen-associated CAP for solid tumors lacking additional immunosuppressive treatment (HR 2.3), its risk seems far less relevant when compared to other immunocompromising factors.

Immunosuppression also leads to an extensively elevated hospitalization rate for CAP associated with rare pathogens (HR 17.6 [95%-CI 12.6–24.6]). HIV (HR 20.1) and solid organ transplantation (HR 13.3) were the most precarious risk factors closely followed by a systemic steroid therapy which suggested a dose dependency (HRPDDE 10−20mg 2.2; not significant and HRPDDE >20mg 8.4, respectively) (Fig. S4). Additionally, immunosuppressed patients faced the highest 30-day mortality after CAP associated with rare pathogens (HR 31.6 [95%-CI 15.7–63.6]). Solid organ transplantation (HR 8.8) and neutropenia (HR 8.2) dominated the risk for CAP related death within 30 days when associated with rare pathogens (Fig. S5).

Discussion

To the best of our knowledge, this study conducted an extensive investigation into immunosuppression associated with CAP, analyzing one of the largest populations ever examined, encompassing both common and rare pathogens. The main findings of our population-based representative study are as follows: (1) a high proportion of 6% of the study population had at least one episode of immunosuppression and 7.7% of ambulatory and hospitalized all-cause CAPs occurred under immunosuppression; (2) apart from age and high level of long-term care, immunosuppression was the most relevant factor related to CAP and CAP-associated mortality; (3) different immunosuppressive conditions caused different hazards with hematologic neoplasms, solid organ and stem cell transplantation, HIV infection as well as prescriptions of high-dose systemic steroids, rituximab or calcineurin inhibitors showing the highest risk, and (4) immunosuppression is particularly relevant for CAP associated with rare pathogens in which HIV infection, solid organ or stem cell transplantation and prescription of high dose systemic steroids were dominant risk factors.

We found 6% of the population to have at least one episode of immunosuppression during the 4-year observation period. Earlier investigations identified a lower prevalence of up to 4% which might be caused by less rigorous drug evaluation, a true increasing prevalence, or our lengthened observation period [7,8,9,10]. A just recently published American study virtually mirrored our findings giving a prevalence of 6.6% suporting a potential increase of immunosuppressed patients over the past years [11]. A universal definition of immunosuppression is still lacking, and specification substantially depends on the authors’ definitions. There have been divergent views on whom is considered immunocompromised especially when it comes to solid tumors without additional immunosuppressive therapy, as previously addressed [3, 5, 8,9,10, 12]. The data we provided demonstrates that patients with solid tumors in absence of immunocompromising drugs are at only moderately elevated risk of contracting CAP (HR 1.2) (Fig. 2). Furthermore, they show a notably lower risk (HR 2.3) of becoming infected by rare pathogens when compared to evidently immunosuppressed patients (HR 17.1). Recently an expert workshop of the American Thoracic Society confirmed that patients with solid tumors quickly recovering from a possible short-term neutropenia without exposure to immunosuppressive drugs are not to be considered immunosuppressed [1].

Along with past publications we found active hematologic neoplasms to be the most prevalent underlying immunosuppressive condition and systemic steroid therapy the most common immunosuppressive treatment [6, 10, 12].

Immunosuppression entails a compelling risk of contracting CAP alongside classic risk factors like age, level of long-term care and comorbidities [1, 2, 4, 13]. At HR 2.4 immunosuppression was the leading risk factor of all underlying conditions even exceeding the previously known high risk of chronic lung diseases which we calculated at HR 2.1. While immunosuppression was found in 7.7% of all CAPs, Di Pasquale et al. found it to be disproportionally present in 17.9% of hosptalized German CAP patients that were reported to their study (31/173), highlighting its risk for inpatient treatment which we calculated at HR 2.5. Additionally, immunosuppression led to a significant increase in all-cause 30-day-mortality (HR 1.9) dominating all other chronic comorbidities [2, 4, 13].

With just under one million included patients among which > 50,000 suffered from immunosuppression we added detailed data on differential hazards of particular immunocompromising conditions. We found systemic steroid exposure with PDDE ≥ 10 mg to be the most frequent drug-induced immunocompromising cause affecting 2.7% of the complete cohort. Regarding short-term use that we intentionally excluded Waljee et al. identified a remarkable 21.1% of > 1.5 Mio. American privately insured outpatients that were exposed to oral steroids over a study-period of 3 years. Even short-term use put patients at fairly higher risk to suffer from sepsis (IRR 5.3 [95%-CI 3.8–7.4]) and other complications [20]. With respect to respiratory diseases Fardet et al. uncovered lower respiratory tract infections at HR 5.42 (95%-CI 5.2–5.6) in patients on systemic steroids for > 15 days [21]. This matches our data, where systemic steroids above PDDE of 20 mg displayed an independent HR of 3.4 for CAP, subsequent only to that of strong immunosuppressors like calcineurin inhibitors or rituximab (Fig. 4). This was further underlined by its higher risk association compared to most other immunosuppressants when only patients with pharmaceutical immunosuppression were analyzed (Fig. S1).

Examining CAP patients only, hematologic neoplasms were present in 4% of all CAPs. In fact, they accounted for > 50% of immunocompromising factors in CAP patients followed by chronic steroid use with PDDE ≥ 10 mg (17.6%). In contrast, other authors evaluating hospitalized patients’ data only identified systemic steroids to have the highest share on immunosuppression (45%) whereas hematologic neoplasms were only found in 25% of immunocompromised CAP patients and in 2.8% of all CAPs, respectively [12, 13]. In accordance with our data this points out the notably higher and dose-dependent risk of steroid use for CAP-related complications which required hospitalization that we weighed at HR 2.7 after applying > 20 mg of PDDE.

CAP is caused by a variety of common pathogens (Woodhead et al., 1987; Almirall et al., 2000; Johansson et al., 2010; Jain et al., 2015), which are covered by empirical antibiotic treatment and were referred to as the ‘core respiratory pathogens’ in a recent widely accepted consensus statement [3]. However, previous studies suggested that immunosuppression alters the spectrum of pathogens responsible for CAP. Fungi, mycobacteria, Pneumocystis jirovecii, Nocardia spp. and other species are more frequently identified in immunosuppressed patients [12, 22,23,24]. Our recent study at a German university hospital found that > 50% of immunocmpromised patients presenting with CAP would not be adequately treated by the standard empiric therapy due to their atypical pathogen spectrum [25]. In our current investigation where we relied on ICD coding rather than validating microbiological data, CAP associated with Aspergillus spp., NTM and Pneumocystis jirovecii were coded as most common rare pathogens (Table 2). Displaying a share of 36% of 630 CAPs asociated with rare pathogens, immunosuppression was exceedingly overrepresented when compared to 7.7% in typical CAP.

Classical risk factors for typical CAP such as age and level of long-term care seem to play a minor role only when dealing with CAP associated with rare pathogens (Fig. 5). In the past there was rising concern that underlying pulmonary diseases and especially COPD put patients at an elevated risk for fungal infections like aspergillosis [26]. Additionally, they are an established risk factor for NTM. This was confirmed by our data where among comorbidities chronic pulmonary diseases were the only determinant to relevantly increase the risk to contract rare pathogen-associated CAP (HR 7.2). Beyond that, immunosuppression in general elevated the risk by more than 17-fold. HIV is by far the most considerable condition at HR 34.1. However, HIV was only diagnosed in 0.9% of immunocompromised patients compared to 39.8% exposed to relevant dosages of systemic steroids. A recent prospective study of the CAPNETZ investigator group found a relatively equal distribution of pathogens between HIV patients and controls. Typical HIV-associated species like Pneumocystis jiroveccii or Aspergillus spp. were rarely found whereas older studies found a significant number of Pneumocystis pneumonia (PCP) in HIV patients [27, 28]. At HR 8.2 systemic steroid therapy using PDDE > 20 mg poses a likewise alarming threat to contract CAP by rare pathogens. It entails a comparably high risk as solid organ transplantations (HR 8.5). Hematologic neoplasms, neutropenia or stem cell transplantations are other relevant however less hazardous and probably more widely recognized risk conditions. This correlates with the availability of guidelines concerning the implication of anti-infective prophylaxis for patients with these conditions [29,30,31,32,33]. In contrast, commonly applied guidelines on antimicrobial prophylactic measures in the wide range of diseases in which steroids and other immunosuppressants are administered are sparse. This might clarify the paradox of why hematologic and transplantation-associated conditions with often profound immunosuppression seem to be comparably or even less hazardous than steroid exposure alone.

None of the registered deaths due to rare pathogen-associated CAP was among HIV patients, which matches a recent nationwide German investigation which stated a significant decrease in PCP-related deaths in HIV patients [34]. This leaves other forms of immunosuppression including hematologic malignancy, stem cell or organ transplantation, antineoplastic drugs and high-dose systemic steroid therapy as most hazardous risk factors for a complicated course of CAP associated with rare pathogens.

Strengths and limitations

We analyzed a health insurance database containing medical information encoded primarily using the German case rate-based DRG accounting system, along with other classification structures such as outpatient diagnoses, prescriptions and procedures performed. This gave us the capability to access a huge, standardized data base providing an enormous sample size for our study and avoiding selection or recall bias. We were therefore able to investigate details while providing the required power. Yet, a major limitation of working with coded data and our study design is the lack of validation of individual diagnoses. Actual medical reports, microbiological and other diagnostic findings were not provided, and medical histories could only be presumed. For example, average daily steroid doses were calculated based on dated prescriptions while the actual imposed regime remained hidden. Additionally, for CAP associated with rare pathogens we relied on ICD coding but not microbiological data, making the diagnoses uncertain. Therefore, these results should be interpreted with caution. Furthermore, we did not require diagnostic CAP confirmation by imaging. Thus, especially our ambulatory occurrence derived from ICD coding might possibly overestimate the real disease burden. However, the sensitivity and specificity of chest x-rays have been questioned [35] and in the outpatient setting treatment based on clinical signs and symptoms is a frequent approach [36]. Since we required antibiotic prescription for the case definition, the numbers most likely reflect routine practice of treatment for clinically presumed CAP in the outpatient setting in Germany. Finally, we have no data on actual causes of death, pneumonia severity other than hospitalization or mortality, applied treatment regimen and possible treatment restrictions in elderly and multimorbid patients, which might have influenced the outcome of our data.

Conclusion

Our large, population-based study demonstrated that 6% of an adult German population showed episodes of immunosuppression within 4 years. Apart from age and level of long-term care, immunosuppression was the most relevant risk factor related to CAP and CAP-associated mortality. However, different immunosuppressive conditions cause different hazards for CAP with solid organ and stem cell transplantation, HIV infection, antineoplastic therapy as well as prescriptions of high-dose systemic steroids, rituximab or calcineurin inhibitors being associated with the highest risk. This is particularly relevant for CAP associated with rare pathogens in which HIV infection, solid organ transplantation and prescription of high dose systemic steroids are dominant risk factors. Taken together, our data provides implications for targeting preventive strategies like vaccination or specific pharmaceutic prophylactics for patients at risk.