Children excluded
Such term does not include—
(A) except as provided in paragraph (7), a child who is an inmate of a public institution or a patient in an institution for mental diseases; or
(B) except as provided in paragraph (6), a child who is a member of a family that is eligible for health benefits coverage under a State health benefits plan on the basis of a family member’s employment with a public agency in the State.