An echocardiogram is a non-invasive ultrasound scan used to assess the heart's structure and blood flow for diagnosing conditions like heart failure and congenital heart disease. The procedure involves applying gel and using a transducer to generate images of the heart, with various types such as transthoracic, transesophageal, and Doppler echocardiograms serving different diagnostic needs. Echocardiograms help guide treatment decisions based on the observed heart conditions.