Your doctor will ask you questions about your medical history and perform a pelvic exam to look for signs of infection. Your doctor may also collect a sample of vaginal discharge for examination or for testing, if necessary.