Question: how do doctors know if you have a virus or bacteria?
Answer: 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. If necessary, he or she also can order a blood or urine test to help confirm a diagnosis, or a "culture test" of tissue to identify bacteria or viruses.