; or (ii) otherwise determines that access to the drug is essential to the health of beneficiaries under this part. . (b) Medicare part D Section 1860D–42 of the Social Security Act ( 42 U.S.C. 1395w–152 ) is amended by adding at the end the following new subsection: (e) Prohibition of coverage for certain generic drugs manufactured outside of the United States (1) In general Coverage shall only be available under this part for a covered part D drug that is a generic drug dispensed on or after January 1, 2025, if it is a generic drug manufactured domestically (as described in section 2(b) of the Accelerating Movement of Essential Rx Items to Create Access to National Drug Resources for US Government Services Act ). (2) Exceptions Paragraph (1) shall not apply, with respect to a covered part D drug, during any period for which the Secretary— (A) has notified the Administrator of the Centers for Medicare & Medicaid Services pursuant to section 2(a) of the Accelerating Movement of Essential Rx Items to Create Access to National Drug Resources for US Government Services Act that the circumstances under paragraph (2), (3), or (4) of such section apply; or (B) otherwise determines that access to the drug is essential to the health of beneficiaries under this part. . 5. Prohibition of payment under Medicaid and CHIP for certain generic drugs manufactured outside of the United States (a) Medicaid Title XIX of the Social Security Act ( 42 U.S.C. 1396 et seq. ) is amended— (1) in section 1903(i)(10)— (A) in subparagraph (D), by striking ; and and inserting a semicolon; (B) in subparagraph (E), by striking ; or and inserting ; and ; and (C) by inserting after subparagraph (E) the following new subparagraph: (F) with respect to any amount expended for a covered outpatient drug which the State is required to exclude from coverage under section 1927(d)(8); or