- If your doctor thinks it is needed, you may have an electrocardiogram (ECG) and/or an echocardiogram (ECHO) to check your heart function. An ECG is a test that measures the electrical activity of the heart