; and (2) by inserting after subparagraph (C) the following: (D) Subsections (a)(57) and (w) of section 1902 (relating to maintenance of written policies and procedures respecting advance directives and parental consent for the denial of life-sustaining procedures for minor individuals). . (c) Effective date (1) In general Subject to paragraph (2), the amendments made by this section shall apply to provider agreements entered into or renewed on or after January 1, 2020. (2) Exception for State legislation In the case of a State plan under title XIX or XXI 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 amendments made by this section, 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.