GemsTracker / gemstracker-library

GEneric Medical Survey Tracker, main library
http://gemstracker.org
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

AgeCondition should revert to today when valid from not set #818

Closed mddejong closed 1 year ago

mddejong commented 1 year ago

When the token validated for an AgeCondition has no valid from value, the round in questions is always show. This may lead to confusion as say both the 3-7 year old questionnaire as the 8-14 version are both shown.

The solution is to use the current date instead of the valid from in this case. This has no effect on the execution of the track - as the token in question does not have a valid from - but makes sure only one survey is show.