The doctor shortage in the US is because current law effectively limits the number of residency slots to 100k, pushing out foreign graduates who may have earned a spot and causing medical schools to expand slower than they would like due to fear of not matching graduates.