Diagnosis typically involves a combination of clinical examination and diagnostic tests. A pediatric cardiologist may use echocardiography, an ultrasound of the heart, to visualize the structure and function of the heart. Other diagnostic tools include electrocardiograms (ECG), chest X-rays, and sometimes advanced imaging techniques like MRI or CT scans.