; and (B) by adding at the end the following: (4) States and local governments (A) In general In the case of a State that does not have a prescription drug monitoring program, a county or other unit of local government within the State that has a prescription drug monitoring program shall be treated as a State for purposes of this section, including for purposes of eligibility for grants under paragraph (1). (B) Plan for interoperability For purposes of meeting the interoperability requirements under subsection (c)(3), a county or other unit of local government shall submit a plan outlining the methods such county or unit of local government will use to ensure the capability of data sharing with other counties and units of local government within the State and with other States, as applicable. ; (2) in subsection (c)— (A) in paragraph (1)(A)(iii)— (i) by inserting as such standards become available, after interoperability standards, ; and (ii) by striking generated or identified by the Secretary or his or her designee and inserting recognized by the Office of the National Coordinator for Health Information Technology ; and (B) in paragraph (3)(A), by inserting including electronic health records, after technology systems, ; (3) in subsection (d)(1), by striking not later than 1 week after the date of such dispensing and inserting in as close to real time as practicable ; (4) in subsection (f)(1)(D), by striking medicaid and inserting Medicaid ; (5) in subsection (i), by inserting , in collaboration with the National Coordinator for Health Information Technology and the Director of the National Institute of Standards and Technology, after The Secretary