The law permits people with capacity to give a detailed and formal written direction to doctors, other health professionals and/or family as to what medical treatment they are agreeable to and what treatment they clearly do not want.
If you lose capacity, need medical treatment and can’t communicate about it, an Advance Health Directive, completed and signed in the presence of your doctor, solves this problem.