tosulliv: initial work on treatment rules implementation