Rules Graph Filtering - Hacky

Assumes treatment periods are recorded in chronological order