(1) Notwithstanding any other provision of law to the contrary, when a pharmacist is aware that a practitioner has died, a prescription issued by that practitioner may continue to be dispensed based on the pharmacist's professional judgment and no later than one hundred eighty (180) days following the date on which the practitioner died.
(2) Nothing in this section authorizes the dispensing of a prescription that was issued for a controlled substance unless permitted under the federal Controlled Substances Act and regulations of the United States Drug Enforcement Administration.