(1) Duly authorized agents and employees of the department shall have the power to inspect in a lawful manner at all reasonable hours any pharmacy, hospital, clinic, wholesale establishment, manufacturer, physician’s office, or any other place in the state in which drugs and medical supplies are manufactured, packed, packaged, made, stored, sold, offered for sale, exposed for sale, or kept for sale for the purpose of:
(a) Determining if any of the provisions of this chapter or any rule promulgated under its authority is being violated;
(b) Securing samples or specimens of any drug or medical supply after paying or offering to pay for such sample or specimen; or
(c) Securing such other evidence as may be needed for prosecution under this chapter.
(2)(a) Except as permitted by this chapter, and chapters 406, 409, 456, 499, and 893, records maintained in a pharmacy relating to the filling of prescriptions and the dispensing of medicinal drugs shall not be furnished to any person other than to the patient for whom the drugs were dispensed, or her or his legal representative, or to the department pursuant to existing law, or, in the event that the patient is incapacitated or unable to request said records, her or his spouse except upon the written authorization of such patient. Such records may be furnished in any civil or criminal proceeding, upon the issuance of a subpoena from a court of competent jurisdiction and proper notice to the patient or her or his legal representative by the party seeking such records.
(b) The board shall adopt rules to establish practice guidelines for pharmacies to dispose of records maintained in a pharmacy relating to the filling of prescriptions and the dispensing of medicinal drugs. Such rules shall be consistent with the duty to preserve the confidentiality of such records in accordance with applicable state and federal law.