An echocardiogram directly images a patient’s heart. It shows the pumping action, evaluates the function of the heart valves, and detects anatomic abnormalities in the heart. During the test, electrodes are placed on the patient’s chest to monitor his/her heart rhythm. The heart is then imaged by an ultrasound transducer, which is held against the chest wall in different positions.