Changes in heart function were measured by cardiac ultrasound. Heart specialists measure heart function by taking an ultrasound scan of the heart (known as an echocardiogram) and measuring how much blood pumps from the heart with each heartbeat, known as ejection fraction.