When diarrhea lasts for longer, tests are needed to find out what’s causing it so proper treatment can be administered.Ī visit to the doctor for diarrhea will consist of a physical examination and a full medical history, including a review of your medication. Most diarrhea goes away on its own in a few days.