This creates extra work for one side of the heart. If an atrial septal defect is large, heart failure may occur ... The doctor will connect you to a machine that does the jobs of your heart and lungs.