Laboratory Testing for Community-Acquired Pneumonia
The laboratory workup for CAP should be stratified by severity and care setting: outpatients require minimal to no lab testing, while hospitalized patients need a focused panel of general labs plus selective microbiological studies based on severity and risk factors.
Outpatient Management
For patients managed in the community, routine laboratory testing is not necessary 1. The majority of outpatients with suspected CAP do not require general investigations or microbiological studies 1.
When to Consider Testing in Outpatients:
- Microbiological investigations are not recommended routinely 1
- Consider sputum examination only if patients fail to respond to empirical antibiotic therapy 1
- Pulse oximetry should be available in out-of-hours and emergency assessment centers for simple oxygenation assessment 1
- Consider sputum for Mycobacterium tuberculosis if persistent productive cough with malaise, weight loss, night sweats, or TB risk factors present 1
Routine laboratory tests have little value in determining pneumonia etiology in outpatients, but may have prognostic significance and should be considered in patients age ≥65 years or with coexisting illness who may need hospitalization 2.
Hospitalized Patients: General Laboratory Tests
All admitted patients should have the following mandatory general investigations performed on admission 1:
Required Tests:
- Chest radiograph 1
- Complete blood count with differential 2, 3
- Urea, electrolytes, and liver function tests 1
- Serum glucose 2, 3
- C-reactive protein (CRP) when locally available 1
- Oxygen saturation by pulse oximetry 2
Additional Tests for Specific Situations:
- Arterial blood gas: Obtain in any patient with severe illness or chronic lung disease to assess oxygenation and carbon dioxide retention 2
- HIV serological testing: Should be done (after informed consent) in any CAP patient with risk factors, and considered in any patient aged 15-54 years admitted for CAP 3, 2
These routine laboratory tests are of little value in determining pneumonia etiology but have prognostic significance and influence hospitalization decisions 2.
Microbiological Investigations for Hospitalized Patients
It is not necessary or appropriate to perform a full range of microbiological investigations on every hospitalized patient with CAP 1. Testing should be guided by severity, epidemiological risk factors, and treatment response 1.
Blood Cultures:
- Recommended for all hospitalized patients, preferably before antibiotic treatment 1
- Overall yield approximately 11%, with S. pneumoniae most commonly identified 2
Sputum Studies:
For non-severe CAP:
- Send sputum for culture and sensitivity from patients able to expectorate purulent samples who have not received prior antibiotics 1
- Transport specimens rapidly to the laboratory 1
For severe CAP or treatment failure:
- Sputum cultures should be performed 1
- Gram stain should be offered for patients with severe CAP or complications, as it can give immediate indication of likely pathogens 1
- Routine Gram stain reporting on all patients is unnecessary but aids laboratory interpretation 1
- If Gram stain is used, apply highly sensitive criteria (any gram-positive diplococci) primarily to visualize unexpected bacterial morphology (e.g., S. aureus, enteric gram-negatives) 2
Important caveat: A properly collected sputum sample should have <10 squamous epithelial cells and ≥25 neutrophils per low-power field 2. However, sputum Gram stain has significant limitations: not all patients can provide adequate samples, interpretation is observer-dependent, atypical pathogens cannot be visualized, and positive results for pneumococcus poorly predict culture recovery 2.
Urinary Antigen Testing:
Pneumococcal urinary antigen:
Legionella urinary antigen:
- Not routinely recommended 4
- Test in severe CAP 4
- Test when indicated by epidemiological factors (outbreak association, recent travel) 4
- Positive in majority of patients with acute Legionella pneumophila serogroup 1 infection, but can remain positive for months after acute infection 2
For severe CAP specifically: Collect lower respiratory tract secretions for Legionella culture on selective media or nucleic acid amplification testing 4
Serological Testing:
Paired serological tests should be performed for 1:
- All patients with severe CAP
- Those unresponsive to β-lactam antibiotics
- Selected patients with particular epidemiological risk factors or when specific microbiological diagnosis is important for public health measures
Serological tests should be extended to all hospitalized patients during outbreaks and for surveillance purposes 1
Important limitation: Serologic testing and cold agglutinin measurements are not useful in initial evaluation and should not be routinely performed 2. They may be useful for retrospective confirmation or epidemiologic studies 2.
Influenza Testing:
- Strong recommendation to obtain influenza virus testing during periods of community spread 5
Pleural Fluid Analysis:
Any significant pleural effusion (≥10 mm thickness on lateral decubitus film) or loculated effusion should be sampled, preferably before antibiotics 2. Examination should include:
- White blood cell count and differential
- Protein, glucose, LDH, and pH
- Gram stain and acid-fast stain
- Culture for bacteria, fungi, and mycobacteria
Severe CAP: Enhanced Testing Strategy
For patients meeting severe CAP criteria (septic shock requiring vasopressors, respiratory failure requiring mechanical ventilation, or ≥3 minor criteria including respiratory rate >30/min, PaO₂/FiO₂ <250, multilobar infiltrates, confusion, uremia, leukopenia, thrombocytopenia, hypothermia, or hypotension) 6:
Mandatory microbiological workup includes:
- Blood cultures
- Sputum Gram stain and culture
- Pneumococcal urinary antigen 4
- Legionella urinary antigen AND lower respiratory tract secretions for Legionella culture or nucleic acid testing 4
- Paired serological tests 1
Special Populations
Immunocompromised patients (inherited/acquired immune deficiency, drug-induced neutropenia, HIV with CD4 <500, solid organ/HSCT recipients) should have nucleic acid-based testing for respiratory viruses considered, given their high risk of progression from upper respiratory infection to fatal pneumonia 6. However, utility is limited by prolonged viral shedding potentially leading to overdiagnosis 6.
Common Pitfalls to Avoid
- Do not delay antibiotic administration to obtain diagnostic specimens—collect rapidly but prioritize treatment 2
- Do not over-test outpatients—most do not require any laboratory investigations 1
- Do not rely on sputum Gram stain alone for treatment decisions—atypical pathogens are common coinfections and cannot be visualized 2
- Do not perform routine serologies for initial management—they lack utility for acute decision-making 2
- Correlate any culture result with Gram stain findings from an appropriate specimen 2