If a congenital heart
defect is suspected based on symptoms or physical exam findings, an ultrasound machine can be used to visualize the size and shape of the various parts of the heart.
This is called an echocardiogram
. It can also measure the strength and direction of flow through the various parts of the heart.
Answer assisted by David Miller, Medical Student