Gastroenterologists can treat hernia, a condition in which an organ or tissue protrudes through a weak point in the muscle or connective tissue that surrounds it. They can also diagnose and treat conditions such as hiatal hernia and inguinal hernia using endoscopic procedures or surgery.