Pharmacists in Morocco can dispense many drugs, for example antibiotics, that would require a prescription in Europe.
The Pharmacie de la place is conveniently located overlooking the main Jemaa al Fnaa square and has exceptionally helpful staff.
There are many other chemists in both the medina and the new town. Your Riad staff will be pleased to help you locate a pharmacy.