Skip to main content

Classification algorithms to improve the accuracy of identifying patients hospitalized with community-acquired pneumonia using administrative data

  • O. YU (a1), J. C. NELSON (a1) (a2), L. BOUNDS (a3) and L. A. JACKSON (a3) (a4)

In epidemiological studies of community-acquired pneumonia (CAP) that utilize administrative data, cases are typically defined by the presence of a pneumonia hospital discharge diagnosis code. However, not all such hospitalizations represent true CAP cases. We identified 3991 hospitalizations during 1997–2005 in a managed care organization, and validated them as CAP or not by reviewing medical records. To improve the accuracy of CAP identification, classification algorithms that incorporated additional administrative information associated with the hospitalization were developed using the classification and regression tree analysis. We found that a pneumonia code designated as the primary discharge diagnosis and duration of hospital stay improved the classification of CAP hospitalizations. Compared to the commonly used method that is based on the presence of a primary discharge diagnosis code of pneumonia alone, these algorithms had higher sensitivity (81–98%) and positive predictive values (82–84%) with only modest decreases in specificity (48–82%) and negative predictive values (75–90%).

Corresponding author
*Author for correspondence: Ms. O. Yu, Group Health Research Institute, 1730 Minor Ave, Suite 1600, Seattle, WA 98101, USA (Email:
Hide All
1.Fry AM, et al. Trends in hospitalizations for pneumonia among persons aged 65 years or older in the United States, 1988–2002. Journal of the American Medical Association 2005; 294: 27122719.
2.Poehling KA, et al. Population-based impact of pneumococcal conjugate vaccine in young children. Pediatrics 2004; 114: 755761.
3.De Wals P, et al. Pneumonia after implementation of the pneumococcal conjugate vaccine program in the province of Quebec, Canada. Pediatric Infectious Disease Journal 2008; 27: 963968.
4.Grijalva CG, et al. Decline in pneumonia admissions after routine childhood immunisation with pneumococcal conjugate vaccine in the USA: a time-series analysis. Lancet 2007; 369: 11791186.
5.Zhou F, et al. Health care utilization for pneumonia in young children after routine pneumococcal conjugate vaccine use in the United States. Archives of Pediatrics & Adolescent Medicine 2007; 161: 11621168.
6.Thomsen RW, et al. Rising incidence and persistently high mortality of hospitalized pneumonia: a 10-year population-based study in Denmark. Journal of Internal Medicine 2006; 259: 410417.
7.Baine WB, Yu W, Summe JP. Epidemiologic trends in the hospitalization of elderly Medicare patients for pneumonia, 1991–1998. American Journal of Public Health 2001; 91: 11211123.
8.Ellis SE, et al. Influenza- and respiratory syncytial virus-associated morbidity and mortality in the nursing home population. Journal of the American Geriatrics Society 2003; 51: 761767.
9.Kornum JB, et al. Diabetes, glycemic control, and risk of hospitalization with pneumonia: a population-based case-control study. Diabetes Care 2008; 31: 15411545.
10.Nichol KL, et al. Effectiveness of influenza vaccine in the community-dwelling elderly. New England Journal of Medicine 2007; 357: 13731381.
11.Nordin J, et al. Influenza vaccine effectiveness in preventing hospitalizations and deaths in persons 65 years or older in Minnesota, New York, and Oregon: data from 3 health plans. Journal of Infectious Diseases 2001; 184: 665670.
12.Jackson LA, et al. Evidence of bias in estimates of influenza vaccine effectiveness in seniors. International Journal of Epidemiology 2006; 35: 337344.
13.Thomsen RW, et al. Preadmission use of statins and outcomes after hospitalization with pneumonia: population-based cohort study of 29,900 patients. Archives of Internal Medicine 2008; 168: 20812087.
14.Schlienger RG, et al. Statins and the risk of pneumonia: a population-based, nested case-control study. Pharmacotherapy 2007; 27: 325332.
15.Sarkar M, Hennessy S, Yang YX. Proton-pump inhibitor use and the risk for community-acquired pneumonia. Annals of Internal Medicine 2008; 149: 391398.
16.Hennessy S, et al. Observed association between antidepressant use and pneumonia risk was confounded by comorbidity measures. Journal of Clinical Epidemiology 2007; 60: 911918.
17.Jackson ML, et al. Influenza vaccination and risk of community-acquired pneumonia in immunocompetent elderly people: a population-based, nested case-control study. Lancet 2008; 372: 398405.
18.Jackson LA, et al. Effectiveness of pneumococcal polysaccharide vaccine in older adults. New England Journal of Medicine 2003; 348: 17471755.
19.Nelson JC, et al. Impact of the introduction of pneumococcal conjugate vaccine on rates of community acquired pneumonia in children and adults. Vaccine 2008; 26: 49474954.
20.Breiman L, et al. Classification and Regression Trees. Boca Raton, FL: Chapman & Hall/CRC, 1984.
21.R Development Core Team. R: A language and environment for statistical computing. Vienna, Austria: R Foundation for Statistical Computing, 2008 (
22.Guevara RE, et al. Accuracy of ICD-9-CM codes in detecting community-acquired pneumococcal pneumonia for incidence and vaccine efficacy studies. American Journal of Epidemiology 1999; 149: 282289.
23.Marrie TJ, Durant H, Sealy E. Pneumonia – the quality of medical records data. Medical Care 1987; 25: 2024.
24.Aronsky D, et al. Accuracy of administrative data for identifying patients with pneumonia. American Journal of Medical Quality 2005; 20: 319328.
25.van de Garde EM, et al. International classification of diseases codes showed modest sensitivity for detecting community-acquired pneumonia. Journal of Clinical Epidemiology 2007; 60: 834838.
26.Whittle J, et al. Community-acquired pneumonia: can it be defined with claims data? American Journal of Medical Quality 1997; 12: 187193.
27.Skull SA, et al. ICD-10 codes are a valid tool for identification of pneumonia in hospitalized patients aged ⩾65 years. Epidemiology and Infection 2008; 136: 232240.
Recommend this journal

Email your librarian or administrator to recommend adding this journal to your organisation's collection.

Epidemiology & Infection
  • ISSN: 0950-2688
  • EISSN: 1469-4409
  • URL: /core/journals/epidemiology-and-infection
Please enter your name
Please enter a valid email address
Who would you like to send this to? *



Altmetric attention score

Full text views

Total number of HTML views: 4
Total number of PDF views: 44 *
Loading metrics...

Abstract views

Total abstract views: 175 *
Loading metrics...

* Views captured on Cambridge Core between September 2016 - 19th November 2017. This data will be updated every 24 hours.