The ones least likely to be replaced are a) socially prestigious, or b) in jobs that require direct interaction with humans. So lawyers and Doctors are safer then anyone else.
The lion's share of MDs could be replaced by machines. We tend to worship the ground they walk on in the United States but at the end of the day medicine is just a trade, no different than plumbers or electricians, and nurses do the bulk of the work in your typical medical practice. The percentage of truly innovative Doctors is no different than the percentage of truly innovative coders, for most it's just rote memorization and long established best practices.
There are countries that recognize this fact, where MDs are paid less than teachers and society doesn't treat them as Gods walking amongst men. Of course, in fairness to American MDs, Doctors in those nations don't have to deal with crushing malpractice premiums and student loan debt.......