The Secretary shall, to the extent permitted by, and consistent with, the requirements of applicable State law, release an individual from all or part of his service obligation under section
254m
(a) of this title or under section
234 of this title (as in effect on September 30, 1977) if the individual applies for such a release under this section and enters into a written agreement with the Secretary under which the individual agrees to engage for a period equal to the remaining period of his service obligation in the full-time private clinical practice (including service as a salaried employee in an entity directly providing health services) of his health profession—