The use of various tests and procedures to measure the function of the lungs in patients with respiratory disorders.