Medicine Duty was charged on “patent” medicines between 1783 and the 1940s. The duty was collected by way of a stamp which was attached to the container in which the medicine was dispensed. Generic medicines, from standard formularies were untaxed.
The early history of Medicine Duty has been explored by Chantal Stebbings. Her article is available here