Community-acquired pneumonia refers to pneumonia (any of several lung diseases) contracted by a person with little contact with the healthcare system. The chief difference between hospital-acquired pneumonia (HAP) and CAP is that patients with HAP live in long-term care facilities or have recently visited a hospital. CAP is common, affecting people of all ages, and its symptoms occur as a result of oxygen-absorbing areas of the lung (alveoli) filling with fluid. This inhibits lung function, causing dyspnea, fever, chest pains and cough. Community-acquired pneumonia refers to pneumonia (any of several lung diseases) contracted by a person with little contact with the healthcare system. The chief difference between hospital-acquired pneumonia (HAP) and CAP is that patients with HAP live in long-term care facilities or have recently visited a hospital. CAP is common, affecting people of all ages, and its symptoms occur as a result of oxygen-absorbing areas of the lung (alveoli) filling with fluid. This inhibits lung function, causing dyspnea, fever, chest pains and cough. CAP, the most common type of pneumonia, is a leading cause of illness and death worldwide. Its causes include bacteria, viruses, fungi and parasites. CAP is diagnosed by assessing symptoms, making a physical examination and on x-ray. Other tests, such as sputum examination, supplement chest x-rays. Patients with CAP sometimes require hospitalization, and it is treated primarily with antibiotics, antipyretics and cough medicine. Some forms of CAP can be prevented by vaccination and by abstaining from tobacco products.