How is a hole in the heart diagnosed? Echocardiogram. This is the most commonly used test to diagnose an atrial septa