To diagnose the cause of swelling, a gynecologist will typically conduct a thorough medical history and physical examination. Diagnostic tests such as ultrasound, MRI, and blood tests may be used to identify underlying conditions. In some cases, a laparoscopy may be performed to get a direct view of the pelvic organs.