BIDMCDigitalPsychiatry / LAMP-platform

The LAMP Platform (issues and documentation).
https://docs.lamp.digital/
Other
13 stars 10 forks source link

LAMP Survey Description - add to activity? #590

Open lukeoftheshire opened 2 years ago

lukeoftheshire commented 2 years ago

Currently, LAMP Survey can have questions optionally given descriptions - for example, for a list-style item can have both a response (that is stored) and a description (that is not). These descriptions are stored in tags, which look like this:

{'description': 'Activity',
  'photo': None,
  'streak': {'streak': True,
   'streakTitle': 'Test Streak Title',
   'streakDesc': 'Test streak description'},
  'questions': [{'multiselect': 'text', 'description': ''},
   {'multiselect': 'boolean', 'description': ''},
   {'multiselect': 'list', 'description': '', 'options': ['', '']},
   {'multiselect': 'multiselect',
    'description': 'Multi-Select',
    'options': ['', '']},
   {'multiselect': 'slider', 'description': '', 'options': ['', '']},
   {'multiselect': 'short', 'description': ''},
   {'multiselect': 'rating',
    'description': '',
    'options': ['Choice 1', 'Choice 2']},
   {'multiselect': 'time', 'description': '', 'options': None}]}

I think we should consider making these descriptions a part of the surveys themselves if possible.