Okay, there might be a misunderstanding so I'd just like to check.
Judicial murder is this death penalty exacution stuff. Someone does something bad and a judge tells them he'll have them killed off for it.
Voluntary euthanasia is different. It's where the person themselves wants to end their own life.
Medical ethics say "do no harm" among some otger thigs as well, and the modern interpretation is that a doctor can help with voluntary euthanasia in certain cases. Usually there's a government-mandated checklist to decide there's less "harm" in helping the person leave this world behind that there would beto let them suffer in their chronic ailments. And this is only for some places (jurisdictions). Adoption of voluntary euthanasia is pretty slowgoing.
Medical associations in the US specifically do not want anything to do with executions. They bar their members from taking part in them. The main argument is that the people on "death row" are healthy and taking part in their killing goes against the "do no harm" doctrine.
However, nothing can truly stop a determined medical professional from taking part in an execution. The "only" consequebce of doing so is losing their licence at the medical association (if registered). Since registration and membership are needed to be able to work in the field, there's a huge financial incentive against it.