An endoscopy may be used to diagnose GERD. Your child will be given a sedative for this procedure so that he or she is sleepy. A small, thin tube with a camera is inserted into your child's mouth, through the esophagus and into the stomach.