Stock Photo: Cardiopulmonary by-pass. Heart surgery. Cardiopulmonary by-pass surgery consists in bypassing the heart and lungs and allowing them to be stopped for surgery. The venous blood is sent in a Heart-Lung machine which takes over the function of the heart (pump) and lungs (blood oxygenation) during operation and reinjected into the blood system.