The pulmonary function of the patient is usually assessed using a pulmonary function test and a 6 minute walk test prior to surgery.
If the disease is locally advance, generally patients undergo a course of chemotherapy or a course of neoadjuvant chemoradiation prior to surgery.
If the cancer has spread to other organs with signs of metastases then surgery is not performed.