; and (ii) requires that any controlled substance furnished to such individual during the period for which such individual is enrolled under the program be prescribed by a health care provider selected under clause (i) for such individual and dispensed by a pharmacy selected under clause (i) for such individual in order for such controlled substance to be covered under the State plan (or waiver). (B) Beneficiary preference In the case of an individual receiving a notice under paragraph (3)(A) of being identified as potentially being an at-risk beneficiary described in such paragraph, such individual may submit, during the 30-day period following receipt of such notice, preferences for which health care providers and pharmacies the individual would prefer the State to select under subparagraph (A). The State shall select or change the selection of health care providers and pharmacies under subparagraph (A) for the individuals based on such preferences, except that in the case that State determines that such selection (or change of selection) of a health care provider or pharmacy under subparagraph (A) is contributing or would contribute to prescription drug abuse or drug diversion by the individual, the State may select or change the selection of health care provider or pharmacy for the individual without regard to the preferences of the individual described in this subparagraph. If the State selects or changes the selection pursuant to the preceding sentence without regard to the preferences of the individual, the State shall provide the individual with at least 30 days written notice of the selection or change of selection and a rationale for the selection or change. (C) Treatment of pharmacy with multiple locations For purposes of subparagraph (A)(i), in the case of a pharmacy that has multiple locations that share real-time electronic prescription data, all such locations of the pharmacy shall collectively be treated as one pharmacy. (D) Treatment of existing FFS drug management programs In the case of a