updated change of state upon prescription to consider session dates