There won't be a sudden replacement that can do everything. It will be like gathering food. The majority of the population used to be involved with gathering food. Then people started to farm. Then instead of human powered ploughs they started to use horse powered ploughs. Then came the engine powered ploughs. Then came automatic seeding machines. Machines that can separate corn from the plants. Etc. Nowadays only a tiny fraction of the population is involved with food production. There are still farmers, but just a couple. We are now in the horse powered plough stage. We have full text search that can go through tons of documents that doctors and lawyers would previously have to search by hand. An assistant to do legal research is essentially just a really good full text search engine, it's a continuum from dumb search engine to smart search engine. We have email. We have electronic systems to keep track of patients and clients. Soon we will have systems that can suggest a diagnosis based on symptoms, and systems that can suggest medical tests to narrow down a list of diagnoses. Systems that can assist clients to write their own standard legal documents. It won't be that suddenly all doctors and lawyers are out of a job, it will be like farming. We still have farmers, but only a couple because they are so efficient.