1. Short title This Act may be cited as the At-Risk Youth Medicaid Protection Act of 2017 . 2. At-risk youth Medicaid protection (a) In general Section 1902 of the Social Security Act ( 42 U.S.C. 1396a ) is amended— (1) in subsection (a)— (A) by striking and at the end of paragraph (82); (B) by striking the period at the end of paragraph (83) and inserting ; and ; and (C) by inserting after paragraph (83) the following new paragraph: (84) provide that— (A) the State shall not terminate enrollment under a State plan for medical assistance for an individual who is an eligible juvenile (as defined in subsection (ll)(2)) because the juvenile is an inmate of a public institution (as defined in subsection (ll)(3)), but may suspend such enrollment during the period that the juvenile is such an inmate; (B) the State shall restore enrollment for such medical assistance to such an individual upon the individual’s release from any such public institution without requiring the individual to make a new application for medical assistance or take any other action, and shall take all necessary steps to ensure the enrollment is effective immediately upon release from such institution, unless (and until such date as) there is a determination that the individual no longer meets the eligibility requirements for such medical assistance; and (C) the State shall process any application for medical assistance submitted by, or on behalf of, a juvenile who is an inmate of a public institution notwithstanding that the juvenile is such an inmate. ; and (2) by adding at the end the following new subsection: (ll) Juvenile; eligible juvenile; public institution For purposes of subsection (a)(84) and this subsection: (1) Juvenile The term juvenile means an individual who is— (A) under 21 years of age