; (2) by inserting , and beginning on the date that is 24 months after the date of enactment of Support for Patients and Communities Reauthorization Act, individuals over the age of 18, individuals receiving home and community-based services (as defined in section 9817(a)(2)(B) of Public Law 117–2 ), and individuals residing in institutional care settings (including nursing facilities, intermediate care facilities for individuals with intellectual disabilities, and other such institutional care settings) enrolled, after children enrolled ; and (3) by striking not more than the age of 18 years and inserting subject to the program . 304. Lifting the IMD exclusion for substance use disorder (a) Making permanent State Plan Amendment Option To Provide Medical Assistance for Certain Individuals Who Are Patients in Certain Institutions for Mental Diseases Section 1915(l)(1) of the Social Security Act ( 42 U.S.C. 1396n(l)(1) ) is amended by striking With respect to calendar quarters beginning during the period beginning October 1, 2019, and ending September 30, 2023, and inserting With respect to calendar quarters beginning on or after October 1, 2019, . (b) Maintenance of effort revision Section 1915(l)(3) of the Social Security Act ( 42 U.S.C. 1396n(l)(3) ) is amended— (1) in subparagraph (A)-— (A) in the matter preceding clause (i), by striking other than under this title ; and (B) in clause (i), by striking or, if higher, and all that follows through in accordance with this subsection