(a) Except as otherwise provided in subsection (b), every pharmacy located in a hospital, skilled nursing home, or other related institution in this state shall be under the supervision of a licensed pharmacist. In general hospitals, skilled nursing homes, and extended care facilities not operating a pharmacy, the drug or medicine room shall be under the direct supervision and direction of a consulting pharmacist or a member of the medical staff who shall be a licensed practitioner of medicine. In nursing homes which are not classified by the State Board of Health as skilled nursing homes, maternity homes, homes for the aged, domiciliary institutions, and all related institutions except those operated by and in conjunction with a licensed hospital, medicines or drugs bearing the wording on the label "caution, federal law prohibits dispensing without prescription" or similar wording that causes the medicines or drugs to be known as prescription legend drugs shall be furnished by a licensed pharmacy on the prescription of a licensed practitioner of medicine for individual patients, and there shall be no prescription legend drugs on the premises of these institutions other than those so prescribed except an emergency kit as authorized by the State Board of Health. In hospitals and skilled nursing homes using vending machines or mechanical devices for the storage and dispensing of drugs, the machines or devices shall be stocked only under the supervision of a licensed pharmacist, and the drugs may be dispensed from the machine or device only by an individual acting in accordance with established institutional hospital pharmacy policy. The State Board of Pharmacy may at any time adopt such additional rules and regulations consistent with this chapter as may be deemed necessary after advising with the Alabama Society of Hospital Pharmacists in regard to the storage and handling of drugs and medicines and the disposition of unused portion of drugs and medicines in hospitals and other related institutions under this section.
(b) Notwithstanding the provisions of subsection (a), the use and operation of automated dispensing systems in skilled nursing facilities by a pharmacy holding a permit issued for that purpose is authorized pursuant to rules adopted by the board.