The EGG or electrogastrogram is a simple noninvasive, painless test that is very similar to an electrocardiogram/EKG. The electrocardiogram is measuring the electrical activity of your heart while the electrogastrogram measures the electrical activity of your stomach and intestinal tract.
This will help your doctors better understand your disease and find the best treatment that can control and sometimes even cure the problems you are having. Think of it like the tri-corder that you see on Star Trek except you will not need to wait until futuristic space travel to have it done.
What the test is doing is looking inside of your body to see if the pacemaker cells known as the Interstitial cells of Cajal or ICCs are working and healthy.