The purchase of drugs to be dispensed in the diagnosis, cure, mitigation, treatment, or prevention of disease or to affect the structure or any function of the body, by hospitals or other persons licensed to prescribe such drugs, are considered dispensed pursuant to a prescription and therefore exempt, providing the buyer gives the seller an exemption certificate as discussed in Part 3 of this rul