advance planning and medical consent legislation