; and (II) linking PDMP data to other data systems within the State, including— (aa) the data of pharmacy benefit managers, medical examiners and coroners, and the State’s Medicaid program; (bb) worker’s compensation data; and (cc) prescribing data of providers of the Department of Veterans Affairs and the Indian Health Service within the State; (iii) in consultation with the Office of the National Coordinator for Health Information Technology, improving the interstate interoperability of PDMPs through— (I) sharing of dispensing data in near-real time across State lines; and (II) integration of automated queries for multistate PDMP data and analytics into clinical workflow to improve the use of such data and analytics by practitioners and dispensers; or (iv) improving the ability to include treatment availability resources and referral capabilities within the PDMP. (2) Legislation As a condition on the receipt of support under this section, the Secretary shall require a State or locality to demonstrate that it has enacted legislation or regulations— (A) to provide for the implementation of the PDMP; and (B) to permit the imposition of appropriate penalties for the unauthorized use and disclosure of information maintained by the PDMP. (b) PDMP strategies The Secretary shall encourage a State or locality, in establishing, improving, or maintaining a PDMP, to implement strategies that improve— (1) the reporting of dispensing in the State or locality of a controlled substance to an ultimate user so the reporting occurs not later than 24 hours after the dispensing event; (2) the consultation of the PDMP by each prescribing practitioner, or their designee, in the State or locality before initiating treatment with a controlled substance, or any substance as required by the State to be reported to the PDMP, and over the course of ongoing treatment for each prescribing event; (3) the consultation of the PDMP before dispensing a controlled substance, or any substance as required by the State to be reported to the PDMP