Diagnosis of Bacterial and Viral Infections But your doctor may be able to determine the cause by listening to your medical history and doing a physical exam.look at