I think you're probably right about the guild part.
The chronic shortage of doctors? Well, that's because they're perhaps the strongest guild. The AMA puts a cap on the supply of doctors (via # of residency slots they allow). The PAs were invented so that another class of workers could do the work of doctors without jeopardizing the doctors' pay or status.