Psychiatry
My belief is that medical doctors will probably be one of the last professions to be phased out by AI. Basically, by the time we have to worry about any of this most other people would be unemployed and well we will be living in a world where robots do all the work for us.
I also don't think this will happen by 2050. Honestly 2050 is only 30 or so years away if we go back 30 years ago in the 80s, medicine was pretty similar to the way it is practiced today. In fact, few if any specialties have even been phased out, if anything new sub-specialties have emerged.
Things change slowly in the healthcare field, the reason is ethics and patient safety often slow adoption of new technologies in medicine and I believe it will be the same for AI.