GoogleCloudPlatform / fda-mystudies

FDA MyStudies
Other
62 stars 42 forks source link

Register food activity #4069

Open asaushkin opened 3 years ago

asaushkin commented 3 years ago

Could you please help me with the questions...

We'd like to have an option to register user's food activity. Is it possible to do that with the current app or it requires some app improvements?

SR-btc commented 3 years ago

There is no meal-logging activity separately built out yet, but you could create an activity of your own using the Study Builder, that may meet your needs here and work in a similar manner to an extent. Specifically, you can create a questionnaire comprising instruction steps, question steps and form steps (and put in questions on what meal was undertaken at what time and with what foods for example), and schedule this activity to repeat three times a day (breakfast, lunch and dinner times). This is just an example, the actual content and schedule can be set up as relevant to your use case.

satishv commented 3 years ago

@SR-btc - can you please show tutorial, code any other pointers for building an activity from scratch?

SR-btc commented 3 years ago

Here are the steps: Login to the Study Builder Click on the button that allows you to create a study, on the Study List screen Fill out the first two sections of the study Navigate to the questionnaires section Click on 'Add new questionnaire' Under the Content tab, do the following: Give it an activity ID and a name, click Next You will see options to start adding instruction, question and form steps Click on these and follow the screen that comes up to fill out the fields. Switch to the Schedule tab and fill out the desired schedule Click on Done to mark the questionnaire as completed. If there are unfilled required fields, you will see errors displayed inline. Fill out the rest of the required sections of the study and publish (using the Actions section) to see it appear in the mobile app