Introduction
Community-acquired pneumonia (CAP), a prevalent and life-threatening infectious disease, is associated with approximately 3 million deaths annually [1]. High mortality and recurrence rate in hospitalized CAP patients remains a substantial public health risk. In addition, mortality rates reaching up to 50% can be observed in patients with severe complications including sepsis, respiratory failure, and acute respiratory distress syndrome (ARDS) [Reference Schuetz2]. Individuals over 65 are particularly susceptible to CAP due to higher chronic disease prevalence, necessitating targeted disease burden research for effective policy-making and management across different demographics [Reference Marston3, Reference Ramirez4].
The coronavirus disease 2019 (COVID-19) pandemic, caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2), has significantly affected CAP disease burden, changing its etiological profile with increased incidences of viral infections [Reference Cheng5]. Besides, evolving non-pharmacological interventions (NPIs) and vaccination strategies against rapid progression of COVID-19 pandemic necessitated long-term surveillance or frequent assessment of dynamically changed CAP burden [Reference Koch, Fathi and Addo6]. However, currently available research for adult CAP burden during this special period in China are predominantly hospital-based and focused on etiologic alterations, particularly the varied clinical manifestations caused by SARS-CoV-2 and other respiratory pathogens [Reference Zhou7, Reference Oumei8]. This underscores the need for effective longitudinal studies to capture CAP trends throughout the pandemic.
Updated population-based CAP disease burden studies covering important stages associated with NPIs are fundamental to subsequent advanced research, such as intervention evaluations. Therefore, this study aims to describe alterations in CAP disease burden including both outpatient and inpatient cases based on a prospective cohort in Shanghai, depicting CAP incidences before, during, and after NPIs. In addition, the ratio of inpatient-to-outpatient (IOR) CAP incidence and population variations in CAP disease burden were analysed for all three periods, providing policymakers with evidence for more tailored strategies and efficient healthcare resource allocation.
Methods
Study design and population
The study was conducted based on Shanghai Suburban Adult Cohort and Biobank (SSACB). SSACB is a prospective cohort that recruited 69,116 individuals aged 20–74 years from four districts (Songjiang, Jiading, Xuhui, and Minhang) in Shanghai between April 2016 and December 2019 [Reference Zhao9, Reference Zhao10]. Upon enrolment, subjects completed electronic questionnaires administered by trained interviewers to gather baseline characteristics like demographic and epidemiological data. They also underwent physical exams for height, weight, blood pressure, and heart rate and provided biochemical test data. The cohort follow-ups involved in-person surveys and annual queries of health information system [Reference Zhao9, Reference Zhao10]. The health information system encompasses all medical records from outpatient and inpatient visits across various levels of hospitals throughout the entire Shanghai city.
Covariates and data collection
Data on demographic characteristics, chronic diseases from baseline surveys were included in analyses [Reference Eurich11]. Underlying diseases were determined based on self-reported history and physical examination results. Smoking was defined as smoking at least one cigarette daily for a continuous period of 6 months or more, and it was classified into never smokers and smokers. Drinking was defined as drinking alcohol at least three times weekly for 6 months or more. Body mass index (BMI) was calculated determined by dividing weight in kilograms by the square of their height in meters. BMI was categorized using criteria recommended for Chinese populations: underweight (<18.5 kg/m2), normal weight (18.5–24 kg/m2), overweight (24–28 kg/m2), and obese (≥28 kg/m2).
Identification of CAP cases
Medical visit records of the enrolled subjects, including Outpatient and hospitalization, were queried from health information system by personal identification codes. The CAP episodes were identified by ICD-10 codes (J12–J18) or term ‘pneumonia’, excluding ‘chemical pneumonia’ and other non-relevant cases. Multiple visits by the same patient within 30 days were counted as a single CAP episode [Reference Eurich11]. Outpatient records overlapped with hospitalization were excluded.
Statistical analysis
Valid time period was set between the start of SSACB enrolment (June 6, 2016) and the time of last clinical record (31 March, 2023). Outpatient diagnosis dates and hospital admission dates were indexed for CAP cases. The date of baseline survey for each individual was recorded as the start date of follow-up. When taking full CAP episodes as the outcome, the observation endpoints were marked as the date of death or end of cohort observation. First-time CAP occurrences were also considered as endpoints when focusing on the primary cases in sensitivity analysis.
The overall observation period was split into three stages according to the onset and cessation of NPIs against SARS-CoV-2 in Shanghai: (1) Before NPIs: June 6, 2016 to February 9, 2020; (2) During NPIs: February 10, 2020 to December 9, 2022; (3) After NPIs: December 10, 2022-March 31, 2023. The implementation of NPIs was marked by the municipal notice ‘Shanghai Municipal Government Notice on Further Strengthening the Implementation of COVID-19 Prevention and Control Measures’, cessation of NPIs was marked by the notice ‘Lifting of Control in 38 High-Risk Areas in Shanghai’.
Overall, outpatient, and inpatient CAP incidences were calculated and Poisson regression was performed to estimate 95% CI and incidence rate ratios (IRRs). Annual CAP incidences adjusted with age, sex, and stratified by district were also summarized using age- and sex-specific population from Shanghai Population Census Yearbook 2020, with bootstrap sampling of 1,000 times calculating 95% CI [12]. We also compared incidences among subgroups based on Poisson regression. Incidence rates of both outpatient and hospitalized CAP cases were also assessed separately for different stages NPIs stages. The IOR was defined as the inpatient incidence divided by the outpatient incidence within the same phase and stratum. CAP incidences among subpopulation were also estimated considering demographic characteristics, lifestyles, and underlying conditions. Variations in CAP incidence between observation stages were analysed using Poisson regression. Risk factors for CAP were estimated using Cox regression models with shared Weibull frailty. We further adjusted for socioeconomic status, lifestyle, and underlying condition variables to control their potential contributions. To minimize bias from hospital-acquired pneumonia, we excluded subjects with hospital admissions in the prior 7 days or pneumonia symptoms developing after hospitalization [Reference Jackson13]. All analyses were performed using R, version 4.2. A two-tailed P-value <0.05 was considered significant.
Ethics approval
This study was approved by the Medical Research Ethics Committee of the School of Public Health, Fudan University (IRB approval number 2016-2104-0586-S1), and all participants provided written informed consent.
Results
Study population and characteristics
SSACB had recruited 69,116 subjects by December 2019, with 97.1% (67,708) having completed baseline surveys. After excluding subjects with incomplete responses, physical examination, and extreme outliers, 61,230 persons, with over 309,121 person-years, were included (Figure 1a). A total of 10,868,167 medical records of all subjects were retrieved from the health information system dated till March 31, 2023. After removal of duplicated ones, 9,753,181 records remained and 67,130 were diagnosed with CAP. After removing the CAP records before enrolment dates, a total of 12,997 CAP records were selected for the analysis (Figure 1b).

Figure 1. Flow chart of inclusion and exclusion of the study cohort members and CAP cases. (a) Flow chart of inclusion and exclusion of the study cohort members. (b) Flow chart of identification of the CAP cases.
Characteristics including socio-demographic data, personal lifestyles, and underlying diseases were summarized by age strata in Table 1. The median age at baseline was 59 years old [interquartile range (IQR): 14.82], with females making up 59.6% of subjects, a trend consistent across age groups. Subjects aged over 60 years mostly had received primary-school education while those under 60 often possessed middle-school diplomas. Subjects over 50 were more prone to be obese or overweight. Less than one third (28.0%) of the overall baseline population were free from underlying chronic diseases, with disease prevalence increasing with age. Majority of those with comorbidities were presented with one chronic disease (47.0%), followed by two types simultaneously (33.8%), three and more (19.2%). During total follow-up period, 57.5% (34,512/60,040) persons received three-dose COVID-19 vaccines, and 25.1% (15,050/60,040) not vaccinated.
Table 1. Distribution of baseline characteristics by age

Overall CAP incidence patterns by baseline characteristics
During 309,121 person-years of follow-up, 12,997 pneumonia cases were identified in 8,214 cohort members and 2,412 (29.4%) members experienced recurrent episodes. The overall incidence rate of CAP was 42.1/1000/year (95% CI: 41.3–42.8), with 39.2 (95% CI: 38.5–39.9) outpatient and 2.8 (95% CI: 2.6–3.0) inpatient cases per 1,000 person-years occurring during observation.
The overall and outpatient incidence rates were higher among female subjects, while male subjects had higher hospitalization rates (P < 0.001). An increased trend of incidence rates with age was observed regardless of types of CAP patient care (Table 2). Besides, CAP inpatients tended to receive relatively lower education level, smoke heavily and be underweight or obese (Table 2). Subjects with underlying conditions such as cardiovascular and cerebrovascular diseases, respiratory diseases, diabetes, cancer, or other diseases were more susceptible to CAP, particularly those with multiple chronic conditions. Similar patterns were observed in first-time CAP as well (Supplementary Table S1).
Table 2. Incidence of CAP by baseline characteristics

CAP incidence and IOR of different time periods
The overall incidences of CAP before, during, and after NPIs were 50.8, 24.2, and 95.9/1000/year separately (Figure 2c). After adjusted with age, sex, and stratified by district, the overall and outpatient incidence densities underwent a sharp decline in 2020 and increased steeply in 2023, surpassing the level before NPIs (Supplementary Figures S1a and S1c). The adjusted inpatient CAP incidence also showed an increase in 2023, though it was less pronounced compared to the rise observed in outpatient incidence. Both overall and outpatient incidence densities rose in 2021, yet they failed to rebound to the level before NPIs during the whole NPI period but doubled after the cessation of NPIs.

Figure 2. Annual incidence rate of overall, outpatient, and inpatient CAP cases under different NPI stages. (a) Annual CAP incidence density under different NPI stages. (b) Annual ratio of inpatient to outpatient CAP incidence under different NPI stages. (c) Estimated CAP incidence by different NPI stages. (d) Estimated ratio of inpatient to outpatient CAP incidence by different NPI stages.
Though both CAP outpatient and inpatient incidences experienced a precipitous drop during NPIs, a higher proportion of CAP patients tend to receive inpatient treatment during NPIs in general, leading to elevated IOR (Figure 2b,d). After cessation of NPIs, a significant decline was observed in IOR, which was also much lower than that before NPIs (Figure 2b,d).
CAP incidence among subpopulations
Similar trend of decreased and increased CAP incidence during and after NPIs was observed among subgroups related to demographic, life-style, and underlying diseases (P < 0.001) (Table 3). Females had a higher CAP incidence both before and after NPIs but not during the pandemic (Table 3). However, elevated inpatient incidence was observed in males across all three periods (Supplementary Table S2). Consistent with the predisposition on estimated CAP burden throughout the observation period, CAP incidences were higher among older individuals and those with lower educational levels in all three periods regardless of type of admission (Table 3, Supplementary Tables S2 and S3). Notably, CAP incidence among individuals aged 60 and older after NPIs were twice as high as prior to NPIs, and specifically three times higher among those aged 70 and above.
Table 3. CAP incidence across various NPI stages among subpopulations

Increased CAP incidence was observed among participants with obesity. Following the cessation of NPIs, CAP incidences among individuals who were obese or overweight were twice as high as before NPIs. In contrast, the increase among those with normal weight or underweight was relatively modest. Whereas during the NPIs, the inpatient incidence was higher in the underweight group (Table 3).
Before NPIs, there were 40.1 (95% CI: 38.2–42.1) CAP cases per 1,000 person-years among people without underlying diseases, and 2.0 (95% CI: 1.6–2.5) hospitalized cases and 38.1 (95% CI: 36.2–40.0) outpatient cases occurred correspondingly. With the increase of number of underlying conditions, CAP incidence rose correspondingly, and those with more than two types of diseases had nearly twice the incidence compared with participants free of chronic diseases. Following the cessation of NPIs, CAP incidence among individuals with more than two types of underlying diseases rose dramatically to 162.0 (95% CI: 146.1–179.0) per 1,000 person-years. In particular, respiratory diseases were notably elevated CAP incidences across all three periods (Table 3). Throughout all three periods, it was consistently found that non-smokers and non-drinkers were associated with higher CAP incidence (Table 3). As for CAP hospitalization, such tendency was also found except for during-NPI period (Supplementary Table S2).
Discussion
To the best of our understanding, this is the first prospective population-based study estimated disease burden of CAP under the impact of COVID-19 and NPIs, providing both outpatient and inpatient CAP incidence in China. We observed elevated CAP incidence among subjects who were females, older than 70 years, with low education level, or with underlying diseases. Estimated inpatient CAP incidence of 3.3 (95% CI: 3.0–3.7) per 1,000 person-years before NPIs was in accordance with that of 3.1 (95% CI: 3.1–3.2) per 1,000 person-years based on the study in southeastern China from 2015 to 2019, adding validity to our results [Reference Jiang14]. The pre-NPI incidence of CAP from our study was higher compared with previous report from Eastern China (50.8/1000/year vs. 12.1/1000/year) [Reference Sun15]. The discrepancy may attribute to differences in case definition and data sources. The latter study applied 90-day period free of CAP claim records to identify one CAP episode from another while we used the 30-day interval, which was commonly used as the threshold to distinguish between the initial episode and a new one [Reference Chakrabarti16]. The difference in case definitions may partially explain the differences, approximately three-fold higher incidence in our study than in the latter one. In addition, we utilized all outpatient and inpatient medical visits captured in the health information system in Shanghai while the prior study only included residents with Urban Basic Medical Insurance, leading to underestimated incidence as uninsured individuals were associated with higher CAP incidence.
The sharp decline in CAP incidence during NPIs was in consistence with the trend observed in a retrospective study in Shenzhen in 2020, although only a brief span after the onset of COVID-19 were encompassed [Reference Cheng5]. This shift was associated with the implementation of NPIs in China – quarantines, social distancing, mask-wearing, and hand hygiene – which curtailed respiratory diseases through limiting person-to-person contact [Reference Geng17]. Following the cessation of NPIs, subsequent increase in CAP incidence was observed, which was also found in a study conducted in Italy [Reference Barchi18]. Prolonged NPI measures might lead to a temporary reduction in population-level immunity to common respiratory pathogens due to decreased exposure, potentially resulting in higher susceptibility once lifted. Therefore, cessation of such interventions could contribute to a sharp rise in CAP incidence.
IOR summarizes the relative shift between hospitalized and outpatient CAP burden. IOR may reflect greater severity or reductions in outpatient capture, as seen when care-seeking and service availability changed. Beyond the overall alterations in CAP incidence rates during different stages of NPIs, IOR among observed participants also shifted. Generally, more CAP patients received hospitalized treatment during NPIs than before and after NPIs. For fear of getting infected with SARS-CoV-2, people might have been reluctant to seek for primary medical help during the pandemic, leading to decreased outpatient CAP incidence during NPIs [Reference McCracken19, Reference Smolić, Fabijančić and Blaževski20]. Additionally, under ‘Zero-COVID’ policy in China, symptom surveillance in healthcare facilities and communities captured patients visiting fever clinics and transferred them directly for inpatient treatment, potentially increasing IOR during NPIs [Reference Wang21, Reference Zhang22]. After the cessation of NPIs, a decreased IOR were observed along with a dramatic rise in CAP outpatient incidence. The proportion of inpatient care has often been used as an indicator of disease severity [Reference Espana23]. However, the decrease in IOR after NPIs did not imply reduced severity of CAP but rather suggested that the decrease was actually the result of an overburdened healthcare system unable to meet the demand for hospitalization. Those who might have avoided seeking care for CAP symptoms during NPIs resumed normal healthcare-seeking behaviours, leading to an initial surge in outpatient visits and decreased IOR. It was also worth noting that compared with the steep rise in CAP cases, the limited amount of hospital beds cannot meet the demand of every patient, thereby leading to reduced IOR.
Advanced age was associated with elevated CAP incidence and higher sensitivity to the cessation of NPIs, suggesting that individuals over 50 – especially those 70 and above – may have become more reliant on NPI measures for protection, due to both biological vulnerabilities and reduced overall resilience. Participants with obesity also exhibited abrupt increase. It was noteworthy that subjects with comorbidities, especially respiratory diseases, had higher CAP incidence during the pandemic and this trend tended to be more pronounced with number of underlying chronic diseases. Individuals with multiple comorbidities often have compromised immune systems, making them more susceptible to infectious diseases [Reference Ochoa-Gondar24]. This highlights the need for tailored public health strategies for high-risk groups. Smoking was observed to be associated with a decline in both overall and outpatient CAP incidence while the inpatient cases showed opposite trend, possibly due to their poor health awareness and underutilization of medical services, leading to fewer outpatient visits and outpatient expenditures [Reference Yunus25–Reference Darden and Kaestner28]. Based on further multivariable analyses, the excess risk linked to respiratory diseases persisted after adjustment, and the gradient with comorbidity count remained evident. The ‘non-smoker’ excess attenuated after adjustment yet did not fully disappear for CAP, suggesting residual confounding and care-seeking differences. Notably, completion of a three-dose COVID-19 vaccination series was associated with reduced CAP risk during and after the pandemic, particularly for inpatient cases. These adjusted findings support targeted prevention in older adults and those with respiratory comorbidities.
Since the emergency use of vaccine in June 2022, China initiated a COVID-19 vaccination program. It was reported in previous studies that COVID-19 vaccination played an important role in both prevention of pneumonia associated with SARS-CoV-2 and alleviating disease severity [Reference Mohammed29]. Both by the time of NPIs cessation and in the period following that, the majority received COVID-19 vaccinations (74.9% and 75.7%), predominantly opting for three-dose programs. The coverage among participants aged 60 years and younger was in accordance with the study using data on employees in China, further suggesting the representativeness and reference value of our results [Reference Zhang30].
The main strength of our study attributes to the use of a prospective and community-based cohort, which ensures the representativeness of the general population. The long observation period of this study, which spans before, during, and after NPIs, allows for capture of the dynamic changes in CAP disease burden. We calculated both outpatient and inpatient incidence based on the health information system, which captured nearly all the episodes and enhanced the accuracy of our estimated disease burden. In addition, IOR was calculated for addressing the heavy burden of CAP. The detailed estimation of CAP incidence across various subgroups contributes to identification of high-risk populations, aiding in targeted public health interventions.
There are certain limitations in our study. First, only residents in four districts in Shanghai were included in SSACB. To address potential concerns about representativeness, we selected four districts that were geographically dispersed across Shanghai, including both urban and suburban populations, enhancing the generalizability of our findings. Second, we used the term ‘pneumonia’ to identify CAP cases for records without ICD-10 codes, which was only a small proportion of the cases. Additionally, all retrieved CAP records were checked manually to rule out irrelevant diagnoses, in order to avoid misclassification. Third, the latest medical visit record was dated till March 31, 2023, indicating that the post-NPI analysis covered a relatively short period. Although this window includes winter–spring, the peak season for CAP, which informs the immediate post-NPI impact, it may inflate annualized incidence estimates relative to longer phases. Further analysis with broader window should be considered. In addition, covariates were available only at baseline due to data limitations, and subsequent changes were not uniformly captured. This may introduce misclassification of time-varying risk factors and bias and we will further update analyses with time-updated covariates to refine estimates. Non-COVID vaccinations were not included in the analyses due to incomplete vaccination records for four districts. Future incorporation of other related vaccines will be performed with the updated immunization data. While our multivariable Cox models adjust for measured confounders and provide evidence of independent associations, unmeasured confounding and time-varying exposures may still limit causal interpretation. Future studies employing longitudinal analytic approaches, such as marginal structural models with time-updated covariates would further strengthen causal inference.
Conclusions
In the present study, we discovered that CAP continued to pose a significant health burden, particularly among individuals >50 years and those with underlying conditions. This burden was exacerbated following the cessation of NPIs. Notably, IOR of CAP peaked during NPIs and declined after cessation, indicating a shift in disease severity and healthcare utilization patterns over these phases. The findings emphasized the urgent need for targeted prevention during epidemic outbreaks including vaccination programs aimed at susceptible populations and periods to alleviate the burden of CAP in China.
Supplementary material
The supplementary material for this article can be found at http://doi.org/10.1017/S0950268825100897.
Data availability statement
The datasets generated and analysed during the current study are not publicly available due to the data of SSACB not being open access but are available from the corresponding author on reasonable request.
Acknowledgements
We would like to express our sincere gratitude to all the participants who took part in this study. We also extend our appreciation to the investigators responsible for the enrolment and follow-up of the study subjects. Additionally, we want to thank all the members participating in the Shanghai Suburban Adult Cohort and Biobank study.
Author contribution
T.Z., B.W., and G.Z. were responsible for the idea of the topic. B.W. and L.Y. did the baseline data collection and quality control for CAP. B.W., Y.W., X.L., and Y.Z. did follow-up survey. B.W., L.Y., H.Y., and Y.W. did the data analyses. B.W. wrote the first draft of the manuscript and T.Z. helped revise the manuscript. T.Z., Y.J., and G.Z. had a supervisory role on the project. B.W. and T.Z. contributed as first authors equally, and G.Z. as the corresponding author.
Funding statement
This work was supported by the Changzhou Municipal Health Commission Science and Technology Major Project [grant number ZD202350], Shanghai Key Disciplines of Public Health (2023–2025) for New Three-year Action Plan [grant number GWVI-11.1-23], Fudan University School of Public Health-Jiading CDC key disciplines for the high-quality development of public health [grant number GWGZLXK-2023-2102], and Shanghai Municipal Science and Technology Major Project [grant number ZD2021CY001].
Competing interests
The authors declare that they have no competing interests.
Ethics approval statement
This study was approved by the Medical Research Ethics Committee of the School of Public Health, Fudan University (IRB approval number 2016-2104-0586-S1), and all participants provided written informed consent.




