What can we learn from pulmonary function testing in heart failure?

What can we learn from pulmonary function testing in heart failure?