Gastroenterologists are specialized doctors that diagnose and treat medical conditions related to the digestive system. If you are facing pain and bleeding from your anal opening, it is advised to visit the doctor as soon as possible to have proper treatment.