Diagnosis typically begins with a thorough medical history and physical examination. Laboratory tests such as vaginal swabs, urine tests, and blood tests help identify the causative organisms. In some cases, imaging studies like ultrasound may be required to assess the extent of the infection.