Diagnosis of Gastric and Intestinal Foreign Bodies Imaging studies Endoscopy Abdominal x-rays may be done to identify the foreign object and are useful for following the progression of the object through the GI tract.