A blood test is the primary test for bacterial endocarditis. Three to five blood samples may be taken in a 24-hour period to determine the presence of the bacteria.
A urine sample also may indicate the presence of infection but is not adequate by itself for the diagnosis.
An echocardiogram may detect an abnormality, such as a mass on a heart valve or on the heart wall surface, called a vegetation.
UCSF Health medical specialists have reviewed this information. It is for educational purposes only and is not intended to replace the advice of your doctor or other health care provider. We encourage you to discuss any questions or concerns you may have with your provider.