Diagnosis typically involves a combination of medical history, physical examination, and imaging studies. Chest X-rays and CT scans are commonly used to visualize the lungs. Pulmonary function tests and in some cases, a lung biopsy, may also be employed to confirm the diagnosis.