; (2) in paragraph (2), by striking the period at the end and inserting ; or ; and (3) by adding at the end the following new paragraph: (3) an individual described in section 402(b)(2)(G), but only with respect to the designated Federal program described in section 402(b)(3)(C). . (c) Definition of qualified alien Section 431(b) of such Act ( 8 U.S.C. 1641(b) ) is amended— (1) in paragraph (6), by striking ; or at the end and inserting a comma; (2) in paragraph (7), by striking the period at the end and inserting , or ; and (3) by adding at the end the following new paragraph: (8) an individual who lawfully resides in the United States in accordance with a Compact of Free Association referred to in section 402(b)(2)(G), but only with respect to the designated Federal program described in section 402(b)(3)(C) (relating to the Medicaid program). . (d) Effective date The amendments made by this section take effect on October 1, 2018. 462. At-risk youth Medicaid protection (a) In general Section 1902 of the Social Security Act ( 42 U.S.C. 1396a ), as amended by section 431(d)(2), is further amended— (1) in subsection (a)— (A) by striking and at the end of paragraph (83); (B) by striking the period at the end of paragraph (84) and inserting ; and ; and (C) by inserting after paragraph (84) the following new paragraph: (85) provide that— (A) the State shall not terminate eligibility for medical assistance under a State plan for an individual who is an eligible juvenile (as defined in subsection (nn)(2)) because the juvenile is an inmate of a public institution (as defined in subsection (nn)(3)), but may suspend coverage during the period the juvenile is such an inmate