Which criterion is needed for someone to give consent to a procedure?