being such an other pathway eligible pregnant woman, including through the end of the month in which the one-year period beginning on the last day of her pregnancy ends) to the extent such items or services would be treated as medical assistance for such woman during such period if such woman were not a patient in the institution. . (2) Effective date (A) In general Except as provided in subparagraph (B), the amendment made by paragraph (1) shall take effect with respect to medical assistance provided on or after January 1, 2019. (B) Exception if State legislation required In the case of a State plan under title XIX of the Social Security Act which the Secretary of Health and Human Services determines requires State legislation (other than legislation appropriating funds) in order for the plan to meet the additional requirements imposed by the amendment made by paragraph (1), the State plan shall not be regarded as failing to comply with the requirements of such title solely on the basis of its failure to meet these additional requirements before the first day of the first calendar quarter beginning after the close of the first regular session of the State legislature that begins after the date of the enactment of this Act. For purposes of the previous sentence, in the case of a State that has a 2-year legislative session, each year of such session shall be deemed to be a separate regular session of the State legislature. (b) Medicaid State plan option To enter into provider agreements with residential pediatric recovery centers Section 1902 of the Social Security Act ( 42 U.S.C. 1396a ) is amended— (1) in subsection (a)— (A) in paragraph (82), by striking and at the end