A doctor makes a diagnosis of heart failure by asking about the symptoms above, and examining the heart, blood vessels, lungs, liver (for swelling) and legs (for swelling or edema). Other tests to prove the diagnosis are X-rays of the lungs, an echocardiogram (an ultrasound test of the heart) and blood tests. 