Any procedure used to treat a disease, abnormality, or injury in the chest (thorax), particularly in or around the heart. This includes coronary artery bypass and valve surgery of the heart; removal of lung tumors and abscesses; and repair of injuries to the heart, lungs, and chest walls.