Fetal echocardiography is a tyest that shows pictures of the baby's heart before birth. It is done to check for problems in the baby's heart structure, function, or rhythm.