Informed consent to medical testing and treatment is a concept deeply embedded in the law and the code of medical ethics.