Poor thinking is the worst disability. Some people are crippled and think well, others enjoy glowing health and think poorly.
If those who think poorly think that they want to end their lives prematurely because they don't think much of it, then we ought to help them to think better rather than helping them to end their lives.
Assisted suicide legislation is not meant for those who want to end their lives prematurely because of mental despair. It is for those who suffer severe physical pain that cannot otherwise be alleviated.
The Supreme Court only struck down an old law that was not strictly obeyed. Many a medical doctor gave their patient an overdose of morphine when the suffering was extreme and could not otherwise be alleviated, and the end of life was in sight, anyway. Such action was usually hushed up, but it criminalized what essentially was a compassionate act, and put doctors in danger of criminal prosecution. The Supreme Court wanted to put an end to this. The wording of the new law, however, is entirely up to us, or rather our elected representatives. Our present government probably won't touch it, but the next government has to. In the meantime, we have plenty of time to discuss the wording of the new euthanasia law.