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

Prefill gtAgeYears, gtAgeMonth and gtGender #704

Closed mddejong closed 2 years ago

mddejong commented 2 years ago

While the prefill answers before answering function enables filling the birthday, age in years and gender, the function also copies previous answers and track fields.

Here we want a slightly more limited set of values that uses a gt prefix to make clear these are GemsTracker fields. The current prefill can inherit from this new function.

PS: Both functions should also explain their workings in the track/check-token screen.