That is essentially how it works in the US as well thanks to public service loan forgiveness for physicians.