(a) A pharmacy shall ensure that its agents and employees, before dispensing a prescription, determine in the exercise of sound professional judgment that the prescription is a valid prescription. A pharmacy may not dispense a prescription drug if an agent or employee of the pharmacy knows or should know that the prescription was issued on the basis of an Internet-based or telephonic consultation without a valid practitioner-patient relationship.
(b) Subsection (a) does not prohibit a pharmacy from dispensing a prescription when a valid practitioner-patient relationship is not present in an emergency.