>> Can we do that for Medical field?
Note: IANAL.
Well, if we do that (i.e., no one can own ideas), then the patent system is gone in its entirety, including for medical. I do not think it is straightforward to isolate just medical. AFAIK, software was isolated in some regions, however, workarounds showed up.
The more important question here is if AI is allowed to be a (solo or contributing) inventor. There have been judgments on the same in some jurisdictions, however, AFAIK, this is still an open topic.
Now that AI is coming up with mathematical proofs of advanced statements, there should be no doubt that AI, capability-wise, can make inventions like humans do (comparing outcome, not the process). However, just like for copyright, a broader framework is needed to answer whether the legal thinking accepts AI's output as "inventions" (that can pass criteria for patentability) before we can say "AI can make inventions".
Like if we know formulation of drug then drug (+ any smaller modification - through AI) could be new formulation. That will break current Medical patent system.