is enrolled with a State Medicaid plan under subchapter XIX (or a waiver of such plan) in accordance with subsections (a)(77) and (kk) of
section 1396a of this title (including enrolled pursuant to section 1396a(a)(78) or
section 1396u–2(d)(6) of this title) or enrolled with a State child health plan under subchapter XXI (or a waiver of such plan) in accordance with subparagraph (G) of
section 1397gg(e)(1) of this title (including enrolled pursuant to subparagraph (D) or (Q) of such section);