The doctor may also move the patient's legs to test for pain when the hip is moved. These tests can help doctors detect inflammation, but not all patients have this symptom. A rectal examination may also be done. The rectal examination is usually not painful but may be uncomfortable.