Ultrasound
Echocardiography is the main type of diagnostic imaging used to establish the diagnosis of infective endocarditis. There are two main types of echocardiography used to assist with the diagnosis of IE: transthoracic echocardiography (TTE) and transesophageal echocardiography (TEE).The transthoracic echocardiogram has a sensitivity and specificity of approximately 65% and 95% if the echocardiographer believes there is probable or almost certain evidence of endocarditis. However, in endocarditis involving a prosthetic valve, TTE has a sensitivity of approximately 50%, whereas TEE has a sensitivity exceeding 90%. The TEE also has an important diagnostic role when the TTE does not reveal IE but diagnostic suspicion remains high,  since TEE is more sensitive for infective endocarditis and is better able to characterize infection-related damage to the heart valves and surrounding tissues.Guidelines support the initial use of TTE over TEE in people with abnormal blood cultures, a new heart murmur, and suspected infective endocarditis. TEE is the preferred initial form of imaging in people with suspected infective endocarditis who have a moderate to high pretest probability of infective endocarditis, including people with prosthetic heart valves, blood cultures growing Staphylococcus,  or have an intracardiac device (such as a pacemaker). Modified Duke criteria
Established in 1994 by the Duke Endocarditis Service and revised in 2000, the Duke criteria are a collection of major and minor criteria used to establish a diagnosis of infective endocarditis. According to the Duke criteria, diagnosis of infective endocarditis can be definite, possible, or rejected.
Highly penicillin-resistant strains of viridans group streptococci, nutritionally variant streptococci like Granulicatella sp., Gemella sp., Abiotrophia defectiva, and Enterococci are usually treated with a combination therapy consisting of penicillin and an aminoglycoside for the entire duration of 4–6 weeks.Some people may be treated with a relatively shorter course of treatment (two weeks) with benzyl penicillin IV if infection is caused by viridans group streptococci or Streptococcus bovis as long as the following conditions are met:

Endocarditis of a native valve, not of a prosthetic valve
A MIC ≤ 0.12 mg/l
A complication such as heart failure, arrhythmia, or pulmonary embolism occurs
No evidence of extracardiac complication like septic thromboembolism
No vegetations > 5 mm in diameter conduction defects
Rapid clinical response and clearance of bloodstream infectionAdditionally, oxacillin-susceptible Staphylococcus aureus native valve endocarditis of the right side can also be treated with a short 2-week course of a beta-lactam antibiotic such as nafcillin with or without aminoglycosides. The main indication for surgical treatment is regurgitation or stenosis. In active infective endocarditis, the surgery should remove enough leaflet tissue to ensure eradication of the infectious process. Subsequent valve repair can be performed in limited disease.