A specialist who studies the stomach and intestines.
A gastroenterologist studies disorders of the stomach and digestive tract.
Staying away from seeded foods like raspberries, strawberries and nuts are all highly recommended but a doctor or enterologist is the one who would need to diagnose a patient in person.