Along with a physical exam, your doctor may take a sputum culture, chest X-ray, and blood work to determine if you have a viral or bacterial form of pneumonia, Turner says. Your diagnosis is important since it helps determine treatment. “If you have viral pneumonia, I wouldn't prescribe to you an antibiotic,” says Dr.