Diagnosis often involves a combination of medical history, physical examination, and diagnostic tests. Common tests include chest X-rays, pulmonary function tests, blood tests, and sputum cultures. Advanced imaging techniques like CT scans and bronchoscopy may be used in complex cases.