This is not the case. Medical school places are up over a third since 2017. We import the amount of doctors we graduate every year, but we haven't meaningfully increased the amount of specialists and GP's we train in over a decade.
There is no shortage of doctors. There is a shortage of consultants/GPs.