Other causes of AE-IPF such as pulmonary embolism, congestive heart failure, pneumothorax, or infection need to be excluded. Pulmonary infection have to be ruled out by endotracheal aspirate or BAL. Many patients experiencing acute deterioration require intensive care treatment, particularly when respiratory failure is associated with hemodynamic instability, significant comorbidities or severe hypoxemia. However, mortality during hospitalization is high. Mechanical ventilation should be introduced only after carefully weighing the persons long-term prognosis and, whenever possible, the persons wishes. However, current guidelines discourage the use of mechanical ventilation in patients with respiratory failure secondary to IPF. Prognosis
The clinical course of IPF can be unpredictable. IPF progression is associated with an estimated median survival time of 2 to 5 years following diagnosis. The 5-year survival for IPF ranges between 20 and 40%, a mortality rate higher than that of a number of malignancies, including colon cancer, multiple myeloma and bladder cancer.Recently a multidimensional index and staging system has been proposed to predict mortality in IPF. The name of the index is GAP and is based on gender [G], age [A], and two lung physiology variables [P] (FVC and DLCO that are commonly measured in clinical practice to predict mortality in IPF. The highest stage of GAP (stage III) has been found to be associated with a 39% risk of mortality at 1 year. This model has also been evaluated in IPF and other ILDs and shown  good performance in predicting mortality in all main ILD subtypes.
BAL cytology analyses (differential cell counts) should be considered in the evaluation of patients with IPF at the discretion of the treating physician based on availability and experience at their institution. BAL may reveal alternative specific diagnoses: malignancy, infections, eosinophilic pneumonia, histiocytosis X, or alveolar proteinosis. In the evaluation of patients with suspected IPF, the most important application of BAL is in the exclusion of other diagnoses. Prominent lymphocytosis (>30%) generally allows excluding a diagnosis of IPF. Pulmonary function tests
Spirometry classically reveals a reduction in the vital capacity (VC) with either a proportionate reduction in airflows, or increased airflows for the observed vital capacity. The latter finding reflects the increased lung stiffness (reduced lung compliance) associated with pulmonary fibrosis, which leads to increased lung elastic recoil.Measurement of static lung volumes using body plethysmography or other techniques typically reveals reduced lung volumes (restriction). This reflects the difficulty encountered in inflating the fibrotic lungs. The diffusing capacity for carbon monoxide (DLCO) is invariably reduced in IPF and may be the only abnormality in mild or early disease. Its impairment underlies the propensity of patients with IPF to exhibit oxygen desaturation with exercise which can also be evaluated using the 6-minute walk test (6MWT).Terms such as mild, moderate, and severe are sometimes used for staging disease and are commonly based on resting pulmonary function test measurements. However, there is no clear consensus regarding the staging of IPF patients and what are the best criteria and values to use.