Medical residencies are funded by Medicare, but by the end of the decade there could be more med school grads than there are residency positions for them.