Diagnosis includes polymerase chain reaction testing of cervical specimens for Neisseria gonorrhoeae and chlamydiae, microscopic examination of cervical discharge (usually), and ultrasonography or laparoscopy (occasionally).