Thoracic surgery refers to operations on organs within the chest, including the heart , lungs and esophagus. Examples of thoracic surgery include coronary artery bypass surgery, heart transplant, lung transplant and removal of parts of the lung suffering from cancer.