Many internationally trained doctors immigrate to Massachusetts but are forced to work in lower-level jobs, even as the state faces a growing shortage of primary care physicians and psychiatrists. A newly passed law is looking to address both issues. The measure creates a track for internationally trained physicians who practiced medicine in other countries to be able to learn Massachusetts' medical standards through apprenticeships as they pursue full state licensure. In exchange, they must commit to working in underserved communities for two years.