; (ii) who, in the 2 years prior to such individual’s application for medical assistance under a plan under this title, experienced homelessness (as defined in section 103 of the McKinney-Vento Homeless Assistance Act); or (iii) who, in the 2 years prior to such individual’s application for medical assistance under a plan under this title, was incarcerated in a prison or psychiatric hospital. . (b) Effective date The amendment made by this section shall take effect on the first day following the end of the emergency period described in section 1135(g)(1)(B) of the Social Security Act ( 42 U.S.C. 1320b–5(g)(1)(B) ). 4. Data verification requirement for new waivers (a) Program waivers Section 1915 of the Social Security Act ( 42 U.S.C. 1396n ) is amended— (1) in subsection (b), by striking The Secretary and inserting Subject to subsection (m), the Secretary ; (2) in subsection (c)(1), by striking The Secretary may by waiver and inserting Subject to subsection (m), the Secretary may by waiver ; and (3) by adding at the end the following new subsection: (m) Data verification requirement for new waivers In the case of a waiver granted under this section on or after the first day following the end of the emergency period described in section 1135(g)(1)(B) of the Social Security Act, as a condition of receiving such waiver, a State shall agree to conduct an annual review of the demographic information of individuals enrolled under a State plan under this title, including the names, dates of birth, and contact information for such individuals. . (b) Research and demonstration waivers Section 1115 of the Social Security Act ( 42 U.S.C. 1315 ) is amended— (1) in subsection (a)(1), by inserting subject to subsection (g), before the Secretary