; (B) substances, methods, and treatments that may be administered to a horse participating in such a horserace in the context of a veterinarian-client-patient relationship; and (C) the use of substances, methods, and treatments permitted under subparagraph (B), including rules with respect to the period before a horserace (which may not be less than 24 hours before a horserace) during which a horse may no longer receive such substances, methods, and treatments. (2) Implementing programs relating to anti-doping education, research, testing, and adjudication to prevent any horse participating in a horserace described in subsection (a) from racing under the effect of any substance, method, or treatment that could affect the performance of the horse (other than a substance, method, or treatment described in subparagraph (B) of paragraph (1) administered during a time period that is permitted under subparagraph (C) of that paragraph). (3) Excluding from participating in any horserace described in subsection (a) any person that the independent anti-doping organization or a State racing commission determines— (A) has violated a rule with respect to a substance, method, or treatment that may not be administered to a horse participating in such a horserace under subparagraph (A) of paragraph (1); (B) has violated three or more times a rule with respect to a substance, method, or treatment permitted under subparagraphs (B) and (C) of that paragraph that has the ability to affect the performance of a horse