; or (II) after such date, the State may terminate the enrollment of such individual. (D) Automatic enrollment or reinstatement of enrollment defined For purposes of this paragraph, the term automatic enrollment or reinstatement of enrollment means that the State determines eligibility for medical assistance under the State plan without a program application from, or on behalf of, the eligible individual, but an individual can only be automatically enrolled in the State Medicaid plan if the individual affirmatively consents to being enrolled through affirmation in writing, by telephone, orally, through electronic signature, or through any other means specified by the Secretary. (E) Eligible individual defined For purposes of this paragraph, the term eligible individual means an individual who is an inmate of a public institution (except as a patient in a medical institution)— (i) who was enrolled under the State plan for medical assistance immediately before becoming an inmate of such an institution