This is a little bit of a complicated task.
After the client logs in, the frontend will request the current surveys that he needs to fill.
For now let's say that the client_id is 1.
So once the request comes in, we would check the current week and day (currently I'm not sure if the day is when he/she started the treatment or a set day for the survey), and see which surveys to send back to the frontend.
Don't forget to check the is_done and has_missed columns, if it's set to true then do not send it back to the frontend
This is a little bit of a complicated task.
After the client logs in, the frontend will request the current surveys that he needs to fill.
So once the request comes in, we would check the current week and day (currently I'm not sure if the day is when he/she started the treatment or a set day for the survey), and see which surveys to send back to the frontend.
Don't forget to check the
is_doneandhas_missedcolumns, if it's set to true then do not send it back to the frontend