Diagnosis typically involves a detailed medical history and a pelvic exam. A healthcare provider may ask about your symptoms, sexual history, and any past trauma or anxiety. A pelvic exam can help rule out other conditions that might be causing pain.