A. A hospital or a health professional who is working in a hospital that is not within fifty miles of a twenty-four-hour pharmacy, when discharging a patient with an acute illness or injury after regular pharmacy business hours, may dispense a twelve-hour supply of a schedule II controlled substance that is an opioid to the patient.

B. For the purposes of this section, "health professional" means a person who is licensed pursuant to chapter 7, 13, 15, 17 or 25 of this title and who holds a valid United States drug enforcement administration registration number.