How is pelvic inflammatory disease diagnosed?

By many things. Sexual activity per se, types of activity, drug use, etc. After a good and honest discussion, a gyn exam and blood tests are then appropriately directed.