Skip to content

Create End-of-day / Start-of-day Questionnaire #492

@casaout

Description

@casaout

In some studies, we pair the hourly experience sampling with either morning or evening questionnaires, that usually span several short questions.

Tasks:

  • create a new "Tracker" called "dailySurveyTracker" named "Daily Survey" (originally, I wanted to extend the experienceSamplingTracker, but I think that's confusing)
  • update the study config file to allow researchers to define evening and/or morning questionnaires
    • create a new section dailySurveyTracker
    • samplingType: morning, evening (note that researchers could poentially define a morning and evening survey)
    • delay: integer in minutes that uses either the start/end of workday +- the delay (e.g. when set to -30 for an evening survey; it will open 30 minutes before the planned end of the workday)
    • it then can have a questions tag and its contents can be the same as for experienceSamplingTracker (i.e. question, answertype, scale, responseOptions)
    • tbd should we definean order or do we take the one given by the researcher?
  • update the database schema
    • add new table for dailySurvey
    • columns: created_at, updated_at, deleted_at, prompted_at, samplingType, question, responseOptions, scale, response, skipped, answerType
    • i suggest to store each response as an individual row and just ensure that the timestamps align so we can easily fetch the matching responses from one day
  • create a separate window that shows the questions
    • show a stack of all questions (in the order they are defined in the study config file)
    • add option to postpone them by 5 minutes, 15 minutes and 60 minutes or skip
    • save button will save the results
    • usual close button will just close it (log as "skipped", similar to Experience Sampling)
    • trigger it at the start/end time (+- delay) that the user defined (i.e. so this requires that the active times setting is enabled)
      • tbd how does it behave when the computer is no longer running at the time it's supposed to be triggered? does it re-open the next time the computer runs? (if yes, do we need to show the date for when a person is providing a survey response?)
  • update the documentation
  • update the data donation

Example of how it looked in a recent study (FlowTeams study):

Image

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions