The gastroenterologist may be involved in diagnosing appendicitis and ruling out other possible causes of abdominal pain, but the primary treatment for appendicitis is surgical removal of the appendix and it is done by a general surgeon.