Medications can be given to treat certain digestive tract disorders including constipation and diarrhea, protect the lining of the intestine, stop vomiting, absorb toxins, decrease stomach acid and other secretions, aid in the digestion of food, and aid in liver function.