tosulliv: continuing implementation of treatment rule engine