; and (5) in subparagraph (D), in the matter preceding clause (i), by inserting (except as provided in paragraph (8)) . (b) Allowable visa status for physicians fulfilling waiver requirements in medically underserved areas Section 214(l)(2)(A) of such Act ( 8 U.S.C. 1184(l)(2)(A) ) is amended to read as follows: (A) Upon the request of an interested Federal agency or an interested State agency for recommendation of a waiver under this section by a physician who is maintaining valid nonimmigrant status under section 101(a)(15)(J) and a favorable recommendation by the Secretary of State, the Secretary of Homeland Security may change the status of such physician to any status authorized for employment under this Act. The numerical limitations contained in subsection (g)(1)(A) shall not apply to any alien whose status is changed under this subparagraph. . (c) Violation of agreements Section 214(l)(3)(A) of such Act ( 8 U.S.C. 1184(l)(3)(A) ) is amended by inserting substantial requirement of an before agreement entered into . (d) Physician employment in underserved areas Section 214(l) of such Act, as amended by this section, is further amended by adding at the end the following: (4) (A) If an interested State agency denies an application for a waiver under paragraph (1)(B) from a physician pursuing graduate medical education or training pursuant to section 101(a)(15)(J) because the State has requested the maximum number of waivers permitted for that fiscal year, the physician’s nonimmigrant status shall be extended for up to 6 months if the physician agrees to seek a waiver under this subsection (except for paragraph (1)(D)(ii)) to work for an employer described in paragraph (1)(C) in a State that has not yet requested the maximum number of waivers. (B) Such physician shall be authorized to work only for the employer referred to in subparagraph (A) during the period beginning on the date on which a new waiver application is filed with such State and ending on the earlier of— (i) the date on which the Secretary of