Last three people I talked to with mystery gut pain (including myself) turned out to have celiac disease. Pretty simple blood test for it. The upper endo should reveal it too if present.
Just a suggestion--docs seem to overlook this one a lot.
Hope your little girl feels better soon. Seeing a kid in pain is like a kick in the balls.