This procedure, usually performed by the time a child reaches school age, is used to repair an atrial septal defect. The defect occurs in the wall between the heart's two atrial chambers, creating abnormal blood flow. The surgery involves closing the hole with a patch.