(a) The substitution of any drug by a pharmacist pursuant to this chapter does not constitute the practice of medicine.
(b) No substitution of drugs made by a pharmacist in accordance with this chapter shall constitute evidence of negligence if substitution was authorized by the prescribing physician and if the substituted drug was accepted in a generally recognized formulary.