; or (B) beginning on the date on which the Secretary of Health and Human Services declares a public health emergency pursuant to section 319 of the Public Health Service Act ( 42 U.S.C. 247d ) and ending on the date of the termination of such emergency. . (b) Application The amendment made in subsection (a) shall apply— (1) with respect to purchases under the pharmacy benefits program established under section 1047g of title 10, United States Code, occurring on or after the date of the enactment of this Act; and (2) with respect to covered emergencies in effect on or after the date of the enactment of this Act.