It’s a problem larger than the field.
I mean, in an ideal world we could even render doctors redundant in most cases by some incredible Elysium(the film)-like medical bed.
The problem is what do we do with our time instead? It’s a question that can inspire all kinds of hope or dread depending on your outlook.
Its a problem of convincing the society that its not anyones place to dictate how someone else decides to spend that time. There will be massive resistance to any economic model other than the established scarcity based capitalist regime enshrined in most of the west for the last 150-200 years. Trying to ensure the fruits of the societies labor that led to that automation are properly apportioned to said society will be a long uphill battle against people of substantial greed that see automation not as a liberating force for humanity but as a source of permanent, infinite wealth allocation and centralization.