Your doctor may flex and rotate your child’s hips to check for pain. X-rays and possibly magnetic resonance imaging (MRI) may be used to check whether your child’s bone marrow is failing and to see how much the head of the femur may have collapsed.