Diagnosis typically involves a comprehensive medical history and a physical examination. A gynecologist may ask about the nature of the pain, its location, and any associated symptoms. Pelvic exams, imaging studies (like ultrasounds), and laboratory tests may also be conducted to identify underlying conditions.