Physicians, residents and students expect that almost a third of their duties could be automated by technology in the next 20 years, according to the results of a national survey commissioned by Stanford Medicine and published in January.