Diagnosis of E. coli infections typically involves a urine culture to identify the presence of E. coli bacteria. In cases of suspected PID, additional tests such as pelvic exams, ultrasound, and endometrial biopsy may be conducted. A blood test could also be carried out to check for signs of infection and inflammation.