The echocardiogram is one of the most important imaging tests that a doctor performs to evaluate the performance of the heart muscle and valves. The examination relies on the use of ultrasound to produce moving images that allow the doctor to take a closer look at the size and shape of the heart, which helps to obtain an accurate diagnosis.