A gastroenterologist will take a medical history and perform a physical exam on your first visit. They may also order tests, such as blood work or a stool sample, to diagnose a condition.