Pneumonia is a lung infection. It can be caused by many different germs, including bacteria, viruses, and fungi.
This article discusses pneumonia that occurs in a person who has a hard time fighting off infection because of problems with the immune system. This type of disease is called "pneumonia in an immunocompromised host."
Related conditions include:
People whose immune system is not working well are less able to fight off germs. This makes them prone to infections from germs that do not often cause disease in healthy people. They are also more vulnerable to regular causes of pneumonia, which can affect anyone.
Your immune system may be weakened or not work well because of:
Symptoms may include:
- Cough (may be dry or produce mucus-like, greenish, or pus-like sputum)
- Chills with shaking
- General discomfort, uneasiness, or ill feeling (malaise)
- Loss of appetite
- Nausea and vomiting
- Sharp or stabbing chest pain that gets worse with deep breathing or coughing
- Shortness of breath
Other symptoms that may occur:
- Heavy sweating or night sweats
- Stiff joints (rare)
- Stiff muscles (rare)
Exams and Tests
Your health care provider may hear crackles or other abnormal breath sounds when listening to your chest with a stethoscope. Decreased volume of breath sounds is a key sign. This finding may mean there is a buildup of fluid between the chest wall and lung (pleural effusion).
Tests may include:
- Arterial blood gases
- Blood chemistries
- Blood culture
- Bronchoscopy (in certain cases)
- Chest CT scan (in certain cases)
- Chest x-ray
- Complete blood count
- Lung biopsy (in certain cases)
- Serum cryptococcus antigen test
- Serum galactomannan test
- Galactomannan test from bronchial alveolar fluid
- Sputum culture
- Sputum Gram stain
- Sputum immunofluorescence tests (or other immune tests)
- Urine tests (to diagnose Legionnaire's disease or Histoplasmosis)
Antibiotics or antifungal medicines may be used, depending on the type of germ that is causing the infection. Antibiotics are not helpful for viral infections. You may need to stay in the hospital during the early stages of the illness.
Oxygen and treatments to remove fluid and mucus from the respiratory system are often needed.
Factors that may lead to a worse outcome include:
- The pneumonia that is caused by a fungus.
- The person has a very weak immune system.
Complications may include:
- Respiratory failure (a condition in which a patient can't take in oxygen and get rid of carbon dioxide without the use of a machine to deliver breaths.)
- Spread of the infection
When to Contact a Medical Professional
Contact your provider if you have a weakened immune system and you have symptoms of pneumonia.
If you have a weakened immune system, you may receive daily antibiotics to prevent some types of pneumonia.
Ask your provider if you should receive the influenza (flu) and pneumococcal (pneumonia) vaccines.
Practice good hygiene. Thoroughly wash your hands with soap and water:
- After being outdoors
- After changing a diaper
- After doing housework
- After going to the bathroom
- After touching body fluids, such as mucus or blood
- After using the telephone
- Before handling food or eating
Other things you can do to reduce your exposure to germs include:
- Consider wearing a face mask when outside of your house.
- Keep your house clean.
- Stay away from crowds.
- Ask visitors who have a cold to wear a mask or not to visit.
- Do not do yard work or handle plants or flowers (they can carry germs).
Pneumonia in immunodeficient patient; Pneumonia - immunocompromised host; Cancer - pneumonia; Chemotherapy - pneumonia; HIV - pneumonia
Blijlevens NMA, van der Velden WJFM. Infections in the immunocompromised host: general principles. In: Bennett JE, Dolin R, Blaser MJ, eds. Mandell, Douglas, and Bennett's Principles and Practice of Infectious Diseases. 9th ed. Philadelphia, PA: Elsevier; 2020:chap 305.
Burns MJ. The immunocompromised patient. In: Walls RM, Hockberger RS, Gausche-Hill M, eds. Rosen's Emergency Medicine: Concepts and Clinical Practice. 9th ed. Philadelphia, PA: Elsevier; 2018:chap 187.
Sifri CD, Marr KA. Approach to fever and suspected infection in the immunocompromised host. In: Goldman L, Schafer AI, eds. Goldman-Cecil Medicine. 26th ed. Philadelphia, PA: Elsevier; 2020:chap 265.
Wunderink RG, Restrepo MI. Pneumonia: considerations for the critically ill. In: Parrillo JE, Dellinger RP, eds. Critical Care Medicine: Principles of Diagnosis and Management in the Adult. 5th ed. Philadelphia, PA: Elsevier; 2019:chap 40.
Review Date 6/20/2021
Updated by: Jatin M. Vyas, MD, PhD, Associate Professor in Medicine, Harvard Medical School; Associate in Medicine, Division of Infectious Disease, Department of Medicine, Massachusetts General Hospital, Boston, MA. Also reviewed by David Zieve, MD, MHA, Medical Director, Brenda Conaway, Editorial Director, and the A.D.A.M. Editorial team.