Diagnosis of pelvic inflammatory disease