A legal drug obtained without written orders from a doctor is called what

An over-the-counter drug (OTC drug).