Family and friends should have been involved, not just the government. That is not a good precedent and should be illegal.
Family and friends are not impartial. And, unless someone has no competent family members and a friend is willing to act as a legal guardian, friends should be the last group to look to.
The government should theoretically be impartial, but this cannot be relied on.
Hence the statute's provision for an outside medical observer.
That is not a good precedent and should be illegal.
It is a matter of state law in pretty much every jurisdiction and has been for decades. Start a petition.