We seem to do just fine in the medical field by paying for medical school in return for service. I know personally a couple of docs who went this route, one stayed the full 20.
But they are not combat/line leaders. In fact, they have a special classification under the Conventions that make that clear.