That's true legally, and in theory, but if someone tries to medicate me without my permission I'll leave the country. I can't trust the government with my health given its track record on drugs, the tuskegee experiment, the whole nasty eugenics business, the miserable mess that is psychiatric drugs, and doctor assisted suicide laws, and visitation/commitment rights. It's extremely clear the government does not have my health in its sights but is rather driven by a paternalistic morality supporting existing social and industrial entities. Even paternalistic forces must earn respect before the subordinate cooperates.
NOTE: I was on Risperdal (risperidone) for two years. It made me lactate painfully (I'm male) and I couldn't work well. My thoughts were scattered. I never should have been prescribed it; the positive effects of the drugs I was taking was mostly from the SSRI stabilizing my emotions. Even that is hard to justify given the subtle nature of the perceptual change, its low effect on my actual depression, and the large physical side effects.
And it's not so much that there was a mandate to prescribe risperidone, more that they prescribed me a very, very shitty medication when I was a ward of the state. It's their responsibility to ensure the doctors and RNs have accurate, up to date knowledge of the medication they're educated to prescribe by the FDA. IMHO they failed with risperidone.
Can the state be sued for failing to fulfill that responsibility?
The state may well have an interest in doing that but it does not have that responsibility.
But really, you might sue them, but that's not the only way to fix that kind of problem. You could also elect a new government, or create laws or regulations to prevent mismanagement, or usurp the government. Suing is only one way to interact with a government that makes mistakes, and it's certainly not a necessary mechanism for doing so.
"Personal autonomy. Your body, your choice."
That's a nice slogan, but it isn't actually realized anywhere. It's always your choice when there's a clear advantage -- that is, when the state doesn't "know best" about your body. And it absolutely reserves the right control your body for the greater good.
"Can the state compel everyone to be a vegan unless they can show proof of a medical condition that would make it unworkable?"
They can if there is good evidence to show a vegan diet is strictly superior to all others.
So for a more appropriate example, it can compel you to use a seatbelt in an automobile, because there are real social costs to not doing so. It doesn't matter if you want to take a risk, once you go to the hospital, you are utilizing a public resource. And the state has a responsibility to ensure those resources are available and used efficiently, which means preventing unnecessary emergencies. (Like what would occur if you contracted something like polio.)