The best diagnosticians might actually be the ones who see the chopping block sooner. Traversing decision trees, crunching patient statistics, and doing machine vision on whatever comes back from radiology and histology are all things that computers are either already good at or improving and plausibly expected to continue to do so at a reasonable clip. "Getting a patient's report of their symptoms and making them feel as though they've been duly listened to" or "calming some screaming brat long enough to innoculate it" are not things computers are terribly promising at. However, they are things that can be done, even done well, by basically the cheapest category of went-to-less-school-than-the-doctor-or-some-of-the-fancier-types-of-nurse medical workers you can legally get away with using for the task. Somebody will still have to do medical research; and it'll likely take a while for the public to accept that ResectXact(tm) software is a better candidate than some well-reputed surgeon to chop them open and do some maintenance; but attrition is likely to be brutal among the relatively expensive people whose specialized skills are amenable to expert systems and whose bedside manner and basic patient interaction are no better than a much, much, cheaper nurse or tech of some flavor.
Lawyers, in the same way, are going to require some people who are sharp enough to not fail during oral argument, who know how to work a jury, who can project a besuited air of consummate professionalism when dealing with clients who are paying well for the services of Somebody, Somebody, and That Other Guy; but it's hard to imagine that humans are going to last long against glorified search engines when it comes to "Traverse the entire law code and case law, give me the top hits, flag anything from things that the presiding judge has cited in decisions he has written in the past". Until computer generated text stops sounding so much like markov chain word salad, they'll probably still need some peons to stitch things together; but that will be a dead-end, unbearably soul crushing paralegal sweatshop of misery, not even an entry level job.