TOF can be diagnosed before birth through fetal echocardiography, which uses ultrasound to create images of the babyâs heart. After birth, the diagnosis is often confirmed through a combination of physical examination, chest X-rays, electrocardiograms (ECGs), and echocardiograms. In some cases, cardiac MRI or CT scans may be used for further evaluation.