; and (2) by adding at the end the following new subclause: (V) Sole community hospital election The Secretary shall provide for a process under which a sole community hospital described in subclause (I) may elect, at such time and in such manner as specified by the Secretary, to apply subclause (I) to such sole community hospital. . 3. Eligibility of certain sole community hospitals for discounted drug prices under the 340B drug pricing program (a) In general Section 340B(a)(4) of the Public Health Service Act ( 42 U.S.C. 256b(a)(4) ) is amended by adding at the end the following new subparagraph: (P) An entity that is a sole community hospital (as defined in section 1886(d)(5)(C)(iii) of the Social Security Act), that was classified as such a hospital before October 1, 2015, and that is located not more than 75 miles from the closest frontier State (as defined in section 1886(d)(3)(E)(iii)(II) of such Act). . (b) Effective date (1) In general The amendment made by subsection (a) shall apply to drugs purchased on or after the first day of the first month that begins more than 60 days after the date of the enactment of this Act. (2) Conforming 340B agreements The Secretary of Health and Human Services shall provide for such timely modification of agreements entered into under section 340B of the Public Health Service Act ( 42 U.S.C. 256b ) as is necessary to provide for the application of the amendment made by subsection (a) on a timely basis consistent with paragraph (1).