What is life expectancy for a patient with pulmonary fibrosis?

It really depends on the type of Pulmonary Fibrosis.

If it's Idiopathic Pulmonary Fibrosis, then there's not much anyone can do on account of it being of an unknown cause. In these cases the general life expectancy is 5-7 years after contracting the disease.

For other variations of Pulmonary Fibrosis, ones caused by the immune system over reacting and causing inflammation (Sort of like a localized auto-immune disease) immunosupressants are often used. There are ongoing drug trials for new drugs, but unfortunately all of these are just stall tactics.

If patients have enough insurance, they may get lung transplants, in which case they'll live an average life span. However, lung transplants cost, on average, $500,000, so this route isn't often taken.