 If the doctor thinks it is needed, you will have an echocardiogram to check your heart function. This test will only be performed if you have a specific type of infection to make sure you do not have inflammation in the lining of the heart. You will be asked about medications you are taking. 