That's the system Castro put into effect in Cuba.  He has been exporting physicians in support of his regime for decades.  

Lot of people who wouldn't otherwise have medical care benefited during that time.