IDEMSInternational / parenttext-malaysia

0 stars 0 forks source link

Customise accepted age range based on user group #39

Closed fagiothree closed 2 months ago

fagiothree commented 4 months ago

Age range should be Kemas 3-6 (age computed from dob) Share, SM 2-9 (age computed from year ) CSO 2-6 (age computed from year )

** Everyone born in 2024-x year is x years old. ie Every kid born in 2022 is 2 years old in 2024. Every kid born in 2020 is 4 years old in 2024. Etc

fagiothree commented 3 months ago

defined new template to compute age based on year of birth https://docs.google.com/spreadsheets/d/13XUkS7VbGJSg1xiOb2tVOIFcoiochpxqaQeBTk2Ibns/edit#gid=1805179823. Age computed this way is also used to determine content received. Development assessment tool is still based on date of birth, but if a child is <23 month old "swyc_survey - 23_28" is still sent https://docs.google.com/spreadsheets/d/13XUkS7VbGJSg1xiOb2tVOIFcoiochpxqaQeBTk2Ibns/edit#gid=2140788706

fagiothree commented 3 months ago

need to add translation for new messages after testing that everything is working as expected

fagiothree commented 3 months ago

also exclude participants from programme if they don't have a child in the age range. I they are removed and they interact again with the chatbot, they should get an error message unless they type one of the joining trigger words - which should instead restart the onboarding process (need to reset variables first)