; and (iv) publish the final regulations not later than 30 days before the effective date of the final regulations. . 411. National Health Service Corps behavioral and mental health professionals providing obligated service in schools and other community-based settings Subpart III of part D of title III of the Public Health Service Act ( 42 U.S.C. 254 l et seq.) is amended by adding at the end the following: 338N. Behavioral and mental health professionals providing obligated service in schools and other community-based settings (a) Schools and community-Based settings An entity to which a Corps member is assigned under section 333 may direct such Corps member to provide service as a behavioral and mental health professional at a school or other community-based setting located in a health professional shortage area. (b) Obligated service (1) In general Any service described in subsection (a) that a Corps member provides may count towards such Corps member's completion of any obligated service requirements under the Scholarship Program or the Loan Repayment Program, subject to any limitation imposed under paragraph (2). (2) Limitation The Secretary may impose a limitation on the number of hours of service described in subsection (a) that a Corps member may credit towards completing obligated service requirements, provided that the limitation allows a member to credit service described in subsection (a) for not less than 50 percent of the total hours required to complete such obligated service requirements. (c) Rule of construction The authorization under subsection (a) shall be notwithstanding any other provision of this subpart or subpart II. . 412. Loan repayment for substance use disorder treatment providers (a) Loan repayment for substance use treatment providers The Secretary of Health and Human Services (referred to in this section as the Secretary ) shall enter into contracts under section 338B of the Public Health Service Act ( 42 U.S.C. 254l–1 ) with eligible health professionals providing substance use