(1) Pages v and 14: http://www.nrmp.org/wp-content/uploads/2017/04/Main-Match-Re...
There's 31,757 positions offered. However, if you are applying into a specialty, you apply simultaneously for a PGY1 and PGY2 position, so those people are being double counted.
As a result, you need to subtract 2,677 advanced positions from the 31k positions, yielding 29,080 PGY1 + PGY2. There are 18,539 US MD applicants, but with the merger of the ACGME and COCA, DO applicants must be counted, adding 3,590 to the US graduate pile. That gives 22,129 US graduates competing for 29,080 spots. Yeah we take a lot of "foreigners" but a lot of them are actually American citizens who went to school in other countries and many of whom have US medical education debt, 5,069 in fact (look on page 1, "IMGs"). If you add in the IMGs, that's 27198 US graduates and US citizens applying for 29,080 spots. Only space for about 2000 Foreign Medical Grads.
[1] - There are 5346 osteopathic graduates per year. http://www.osteopathic.org/inside-aoa/about/aoa-annual-stati...
https://www.nrmp.org/wp-content/uploads/2016/09/Charting-Out...
IMGs have the advantage of speaking English and have no potential visa issues.
This distinction will matter more and more as the race for residency spots tightens and the US becomes more insular, because a lot of IMGs have US educational debt. It also matters where the person went to medical school, e.g. US citizen who went to Israeli medical school vs someone who went to the Caribbean vs an Indian national vs an Iranian national who now will have visa issues with trump. Visa issues are huge, because no one wants to match someone who can't show up for work 2 months later.
These subtle distinctions are not easily sussed out by NRMP data, but the trend is that in the current era, IMGs have a slight advantage.
See this to understand why the bottleneck is residency positions, not how many US medical students there are: https://www.nytimes.com/2014/07/20/opinion/sunday/bottleneck...
Dr. Emory Brown's work out if U Mass in anesthesia is a data point for this. He claims to have a working general anesthesia machine. From the talks and data of his I have seen, it really does work. Yes, it's not good for a pediatric car accident victims, but for tonsillectomies or proctology exams, you know 'routine' general anesthesia, the thing works great. He says that he uses it in his own surgery suite with better 'results' than a human can obtain.
Yeah, it's 10 years out, maybe 20. But this trend of replacing doctors with robots (and getting better outcomes) is not going away. So, that there is a current bottleneck may be true, but in the near future, we just won't need doctors for a lot of areas of medicine.
Control of consciousness is only one part of the intervention. Much of it is physical intervention with intravenous cannulation, intubation, extubation, ventilation management, and management of cardiovascular dynamics. Closed loop systems for sedation/unconsciousness may make inroads in the next 10 years but general anaesthesia will require physically capable robots.
Doing this everyday and knowing technology and robots the capabilities are a long way away.