There’s a lot of unpleasant side effects, assuming you survive. A doctor friend of mine had DNR tattooed on his chest. He’s weighed both sides and made his choice.
I don’t know if a tattoo is legally binding. But if you have a DNR, there can be something very minor, and they can put you down.