Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register food activity #4069

Open
asaushkin opened this issue Sep 3, 2021 · 3 comments
Open

Register food activity #4069

asaushkin opened this issue Sep 3, 2021 · 3 comments
Assignees
Labels
Feature request Use this tag for issues that describe a request for new features or functionality.

Comments

@asaushkin
Copy link

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?

@asaushkin asaushkin added the Feature request Use this tag for issues that describe a request for new features or functionality. label Sep 3, 2021
@SR-btc
Copy link
Collaborator

SR-btc commented Sep 7, 2021

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
Copy link

satishv commented Sep 8, 2021

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

@SR-btc
Copy link
Collaborator

SR-btc commented Sep 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Use this tag for issues that describe a request for new features or functionality.
Projects
None yet
Development

No branches or pull requests

3 participants