From f14a821ce71a5ef74f18a963b41a59fb70484e37 Mon Sep 17 00:00:00 2001 From: Nicholas Lee Date: Mon, 20 May 2024 18:29:59 -0400 Subject: [PATCH 1/2] feat: modified questionnaires --- populate-scripts/insert-db.sql | 20 +- .../update/11-demographics-questionnaire.sql | 4 +- ...34-demographics-questionnaire-with-ses.sql | 4 +- .../43-basic-background-questionnaire.sql | 4 +- .../44-parkinsons-treatment-questionnaire.sql | 4 +- .../45-general-health-questionnaire.sql | 4 +- ...-modified-general-health-questionnaire.sql | 1040 +++++++++++++++++ ...raphic-and-socioeconomic-questionnaire.sql | 601 ++++++++++ ...-clinical-and-medication-questionnaire.sql | 696 +++++++++++ 9 files changed, 2366 insertions(+), 11 deletions(-) create mode 100644 populate-scripts/update/89-modified-general-health-questionnaire.sql create mode 100644 populate-scripts/update/90-demographic-and-socioeconomic-questionnaire.sql create mode 100644 populate-scripts/update/91-parkinson-clinical-and-medication-questionnaire.sql diff --git a/populate-scripts/insert-db.sql b/populate-scripts/insert-db.sql index 8978b4d..ccb75e4 100644 --- a/populate-scripts/insert-db.sql +++ b/populate-scripts/insert-db.sql @@ -14,7 +14,25 @@ INSERT INTO tasks (id, from_platform, task_type, name, description, external_url NULL, "PSHARPLAB", "QUESTIONNAIRE", - "Geriatric Depression Scale - Short Form", + "Modified: General Health Questionnaire", + "", + "", + '{}' +), +( + NULL, + "PSHARPLAB", + "QUESTIONNAIRE", + "Demographic and socioeconomic questionnaire", + "", + "", + '{}' +), +( + NULL, + "PSHARPLAB", + "QUESTIONNAIRE", + "Parkinson Clinical and Medication Questionnaire", "", "", '{}' diff --git a/populate-scripts/update/11-demographics-questionnaire.sql b/populate-scripts/update/11-demographics-questionnaire.sql index 831713c..1e143f5 100644 --- a/populate-scripts/update/11-demographics-questionnaire.sql +++ b/populate-scripts/update/11-demographics-questionnaire.sql @@ -3,8 +3,8 @@ UPDATE tasks set from_platform = "PSHARPLAB", task_type = "QUESTIONNAIRE", - name = "Demographics Questionnaire", - description = "Demographics questionnaire without SES questions", + name = "[ARCHIVED] Demographics Questionnaire", + description = "Demographics questionnaire without SES questions. This should no longer be used.", external_url = "", config = '{ "taskConfig": {}, diff --git a/populate-scripts/update/34-demographics-questionnaire-with-ses.sql b/populate-scripts/update/34-demographics-questionnaire-with-ses.sql index f48bdb4..072e7cf 100644 --- a/populate-scripts/update/34-demographics-questionnaire-with-ses.sql +++ b/populate-scripts/update/34-demographics-questionnaire-with-ses.sql @@ -3,8 +3,8 @@ UPDATE tasks SET from_platform = "PSHARPLAB", task_type = "QUESTIONNAIRE", - name = "Demographics Questionnaire With SES", - description = "", + name = "[ARCHIVED] Demographics Questionnaire With SES", + description = "This should no logner be used.", external_url = "", config = '{ "taskConfig": {}, diff --git a/populate-scripts/update/43-basic-background-questionnaire.sql b/populate-scripts/update/43-basic-background-questionnaire.sql index ed045d8..71a177a 100644 --- a/populate-scripts/update/43-basic-background-questionnaire.sql +++ b/populate-scripts/update/43-basic-background-questionnaire.sql @@ -3,8 +3,8 @@ UPDATE tasks SET from_platform = "PSHARPLAB", task_type = "QUESTIONNAIRE", - name = "Basic Background Questionnaire", - description = "Basic Background Questionnaire", + name = "[ARCHIVED] Basic Background Questionnaire", + description = "Basic Background Questionnaire. This should no longer be used.", external_url = "", config = '{ "taskConfig": {}, diff --git a/populate-scripts/update/44-parkinsons-treatment-questionnaire.sql b/populate-scripts/update/44-parkinsons-treatment-questionnaire.sql index 982ae6a..acbd943 100644 --- a/populate-scripts/update/44-parkinsons-treatment-questionnaire.sql +++ b/populate-scripts/update/44-parkinsons-treatment-questionnaire.sql @@ -3,8 +3,8 @@ UPDATE tasks SET from_platform = "PSHARPLAB", task_type = "QUESTIONNAIRE", - name = "Parkinson's treatment Questionnaire", - description = "Parkinson's treatment Questionnaire", + name = "[ARCHIVED] Parkinson's treatment Questionnaire", + description = "Parkinson's treatment Questionnaire. This should no longer be used.", external_url = "", config = '{ "taskConfig": {}, diff --git a/populate-scripts/update/45-general-health-questionnaire.sql b/populate-scripts/update/45-general-health-questionnaire.sql index 1253df5..cfeb718 100644 --- a/populate-scripts/update/45-general-health-questionnaire.sql +++ b/populate-scripts/update/45-general-health-questionnaire.sql @@ -3,8 +3,8 @@ UPDATE tasks SET from_platform = "PSHARPLAB", task_type = "QUESTIONNAIRE", - name = "General Health Questionnaire", - description = "General Health Questionnaire", + name = "[ARCHIVED] General Health Questionnaire", + description = "General Health Questionnaire. This should no longer be used.", external_url = "", config = '{ "taskConfig": {}, diff --git a/populate-scripts/update/89-modified-general-health-questionnaire.sql b/populate-scripts/update/89-modified-general-health-questionnaire.sql new file mode 100644 index 0000000..78a9e9c --- /dev/null +++ b/populate-scripts/update/89-modified-general-health-questionnaire.sql @@ -0,0 +1,1040 @@ +-- Geriatric Depression Scale Short Form + +UPDATE tasks SET + from_platform = "PSHARPLAB", + task_type = "QUESTIONNAIRE", + name = "Modified: General Health Questionnaire", + description = "", + external_url = "", + config = '{ + "taskConfig": {}, + "metadata": [ + { + "componentName": "QUESTIONNAIRECOMPONENT", + "componentConfig": { + "title": { + "en": "General Health Questionnaire", + "fr": "Le questionnaire sur la santé général" + }, + "questions": [ + { + "questionType": "displayText", + "key": "displayText1", + "title": { + "en": "The following questions are about your health. By health, we mean not only the absence of disease or injury, but also physical, mental, and social well-being.", + "fr": "Les questions suivantes concernent votre santé. Par «santé», nous voulons dire non seulement l''absence de maladie ou de blessure, mais aussi votre bien-être physique, mental et social." + } + }, + { + "questionType": "divider", + "key": "divider1" + }, + { + "questionType": "displayText", + "key": "displayText2", + "title": { + "en": "Physical Health", + "fr": "La Santé Physique" + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Have you ever been diagnosed with: (Please check all that apply)", + "fr": "Avez-vous déjà été diagnostiqué.e avec : (Veuillez cocher tout ce qui s''applique)" + }, + "key": "physicalHealthDiagnosis", + "validation": { + "required": true + }, + "allowMultipleSelections": true, + "options": [ + { + "label": { + "en": "Cancer", + "fr": "Cancer" + }, + "value": "Cancer" + }, + { + "label": { + "en": "Myocardial infarction or angina (heart attack)", + "fr": "Infarctus du myocarde ou angine (la crise cardiaque)" + }, + "value": "Myocardial infarction or angina" + }, + { + "label": { + "en": "Transient ischemic attack (TIA)", + "fr": "Accident ischémique transitoire (AIT)" + }, + "value": "TIA" + }, + { + "label": { + "en": "Cerebrovascular accident (stroke)", + "fr": "Accident vasculaire cérébral (AVC)" + }, + "value": "Stroke" + }, + { + "label": { + "en": "Epilepsy or seizures", + "fr": "Épilepsie ou Convulsions" + }, + "value": "Epilepsy or seizures" + }, + { + "label": { + "en": "Major head injury/trauma with lasting consequences", + "fr": "Blessure/traumatisme crânien majeur avec des conséquences à long terme" + }, + "value": "Major head injury/trauma with lasting consequences" + }, + { + "label": { + "en": "Respiratory problems", + "fr": "Problèmes respiratoires" + }, + "value": "Respiratory problems" + }, + { + "label": { + "en": "Lung disease", + "fr": "Maladies pulmonaires" + }, + "value": "Lung disease" + }, + { + "label": { + "en": "Anemia or other blood disease", + "fr": "Anémie ou autre maladie du sang" + }, + "value": "Anemia or other blood disease" + }, + { + "label": { + "en": "Hypertension (high blood pressure)", + "fr": "Hypertension (pression artérielle élevée)" + }, + "value": "Hypertension" + }, + { + "label": { + "en": "Hypotension (low blood pressure)", + "fr": "Hypotension (pression artérielle basse)" + }, + "value": "Hypotension" + }, + { + "label": { + "en": "Diabetes", + "fr": "Diabète" + }, + "value": "Diabetes" + }, + { + "label": { + "en": "Hypercholesterolemia (high cholesterol)", + "fr": "Hypercholestérolémie (cholestérol élevé)" + }, + "value": "Hypercholesterolemia" + }, + { + "label": { + "en": "Ulcers or stomach disease", + "fr": "Ulcères ou maladie de l''estomac" + }, + "value": "Ulcers or stomach disease" + }, + { + "label": { + "en": "Inflammatory bowel disease (IBD)", + "fr": "Maladie inflammatoire de l''intestin (MII)" + }, + "value": "IBD" + }, + { + "label": { + "en": "Liver disease", + "fr": "Maladie du foie" + }, + "value": "Liver disease" + }, + { + "label": { + "en": "Kidney disease", + "fr": "Maladie du rein" + }, + "value": "Kidney disease" + }, + { + "label": { + "en": "Osteoarthritis (degenerative)", + "fr": "Arthrose (dégénérative)" + }, + "value": "Osteoarthritis (degenerative)" + }, + { + "label": { + "en": "Rheumatoid Arthritis (i.e. autoimmune arthritis)", + "fr": "Polyarthrite rhumatoïde (c.-à-d. arthrite auto-immune)" + }, + "value": "Rheumatoid Arthritis" + }, + { + "label": { + "en": "Other", + "fr": "Autre" + }, + "value": "Other" + }, + { + "label": { + "en": "None of these", + "fr": "Aucune de ces maladies" + }, + "value": "None of these" + } + ] + }, + { + "questionType": "divider", + "key": "divider2" + }, + { + "questionType": "displayText", + "key": "cognitive-health-header", + "title": { + "en": "Cognitive Health", + "fr": "La Santé Cognitive" + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you have a diagnosis of dementia or Alzheimer''s disease given to you by a doctor?", + "fr": "Avez-vous un diagnostic de démence ou de maladie de Alzheimer qui vous a été donné par un médecin?" + }, + "key": "do-you-have-a-diagnosis-of-dementia-or-alzheimers-disease-given-by-doctor", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "Yes" + }, + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "No" + }, + { + "label": { + "en": "No, but I think I have dementia", + "fr": "Non, mais je pense je souffre de démence" + }, + "value": "No, but I think I have dementia" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you have a diagnosis of Mild Cognitive Impairment (MCI) given to you by a doctor?", + "fr": "Avez-vous un diagnostic de trouble cognitif léger (TCL) qui vous a été donné par un médecin?" + }, + "key": "do-you-have-a-diagnosis-of-mild-cognitive-impairment-mci-given-by-doctor", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "Yes" + }, + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "No" + }, + { + "label": { + "en": "No, but I think I have cognitive impairment", + "fr": "Non, mais je pense j''ai des troubles cognitifs" + }, + "value": "No, but I think I have cognitive impairment" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you feel that your memory and thinking have gotten worse?", + "fr": "Avez-vous l''impression que votre mémoire et vos pensées se sont détériorées?" + }, + "textContent": { + "en": "If you have Parkinson''s disease, consider the change since your diagnosis, or, if you don''t have Parkinson''s disease, consider the change in the last few years.", + "fr": "Si vous avez la maladie de Parkinson, considérez le changement depuis votre diagnostic ou, si vous n''avez pas la maladie de Parkinson, considérez le changement au cours des dernières années." + }, + "key": "do-you-feel-that-your-memory-and-thinking-have-gotten-worse", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "Yes" + }, + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "No" + }, + { + "label": { + "en": "Not sure", + "fr": "Pas certain.e" + }, + "value": "Not sure" + } + ] + }, + { + "questionType": "divider", + "key": "divider2" + }, + { + "questionType": "displayText", + "key": "displayText3", + "title": { + "en": "Mental Health", + "fr": "La Santé Mentale" + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Have you ever been diagnosed with: (Please check all that apply)", + "fr": "Avez-vous déjà été diagnostiqué.e avec: (Veuillez cocher tout ce qui s''applique)" + }, + "key": "mentalHealthDiagnosis", + "validation": { + "required": true + }, + "allowMultipleSelections": true, + "options": [ + { + "label": { + "en": "Depression - currently under treatment", + "fr": "Dépression - présentement sous traitement" + }, + "value": "Depression - currently under treatment" + }, + { + "label": { + "en": "Depression - but not currently receiving treatment", + "fr": "Dépression - mais je ne reçois pas présentement de traitement" + }, + "value": "Depression - but not currently receiving treatment" + }, + { + "label": { + "en": "Anxiety - currently under treatment", + "fr": "Anxiété - présentement sous traitement" + }, + "value": "Anxiety - currently under treatment" + }, + { + "label": { + "en": "Anxiety - but not currently receiving treatment", + "fr": "Anxiété - mais je ne reçois pas présentement de traitement" + }, + "value": "Anxiety - but not currently receiving treatment" + }, + { + "label": { + "en": "Obsessive Compulsive Disorder", + "fr": "Trouble Obsessionnel Compulsif" + }, + "value": "Obsessive Compulsive Disorder" + }, + { + "label": { + "en": "Bipolar Disorder", + "fr": "Trouble bipolaire" + }, + "value": "Bipolar Disorder" + }, + { + "label": { + "en": "Schizophrenia", + "fr": "Schizophrénie" + }, + "value": "Schizophrenia" + }, + { + "label": { + "en": "Other", + "fr": "Autre" + }, + "value": "Other" + }, + { + "label": { + "en": "No history of mental health problems", + "fr": "Aucun antécédent de problèmes de santé mentale" + }, + "value": "No history of mental health problems" + } + ] + }, + { + "questionType": "divider", + "key": "divider3" + }, + { + "questionType": "displayText", + "key": "general-health-header", + "title": { + "en": "General Health", + "fr": "Santé Générale" + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Have you gone through menopause, meaning that your menstrual period stopped for at least one year and did not restart?", + "fr": "Êtes-vous déjà passée par la ménopause (c.-à-d. vos menstruations sont arrêtées depuis au moins 1 an)?" + }, + "key": "menopause", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "No, have not gone through menopause", + "fr": "Non, je ne suis pas passée par la ménopause" + }, + "value": "No, have not gone through menopause" + }, + { + "label": { + "en": "Yes, have gone through menopause", + "fr": "Oui, je suis passée par la ménopause" + }, + "value": "Yes, have gone through menopause" + }, + { + "label": { + "en": "Not applicable", + "fr": "Ne s''applique pas" + }, + "value": "Not applicable" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "How do you you consider your eyesight? (consider your vision once corrected with glasses or corrective lenses, if you use them)", + "fr": "Comment évalueriez-vous votre vue? (considérez votre vue une fois corrigée à l''aide de lunettes ou de verres correcteurs, si vous en portez)" + }, + "key": "eyesight", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Excellent", + "fr": "Excellente" + }, + "value": "Excellent" + }, + { + "label": { + "en": "Good", + "fr": "Bonne" + }, + "value": "Good" + }, + { + "label": { + "en": "Poor", + "fr": "Faible" + }, + "value": "Poor" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "In the past 12 months, how many times have you been injured in a fall, to the point of being limited your normal activities?", + "fr": "Au cours des 12 derniers mois, combien de fois avez-vous été blessé.e suite à une chute, au point où vous étiez limité.e dans vos activités normales?" + }, + "key": "injury", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "None", + "fr": "Zéro" + }, + "value": "None" + }, + { + "label": { + "en": "1", + "fr": "1" + }, + "value": "1" + }, + { + "label": { + "en": "2 to 5", + "fr": "2 à 5" + }, + "value": "2 to 5" + }, + { + "label": { + "en": "6 to 10", + "fr": "6 à 10" + }, + "value": "6 to 10" + }, + { + "label": { + "en": "More than 10", + "fr": "Plus de 10" + }, + "value": "More than 10" + } + ] + }, + { + "questionType": "divider", + "key": "divider4" + }, + { + "questionType": "displayText", + "key": "displayText5", + "title": { + "en": "Habits", + "fr": "Habitudes de vie" + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you currently use any of the following? (check all that apply)", + "fr": "Consommez-vous actuellement l''un des suivants? (Veuillez cocher tout ce qui s''applique)" + }, + "key": "substanceUse", + "validation": { + "required": true + }, + "allowMultipleSelections": true, + "options": [ + { + "label": { + "en": "Alcohol", + "fr": "Alcool" + }, + "value": "Alcohol" + }, + { + "label": { + "en": "Cigarettes", + "fr": "Cigarettes" + }, + "value": "Cigarettes" + }, + { + "label": { + "en": "Other tobacco products", + "fr": "Autres produits de tabac" + }, + "value": "Other tobacco products" + }, + { + "label": { + "en": "Recreational drugs", + "fr": "Drogues récréatives" + }, + "value": "Recreational drugs" + }, + { + "label": { + "en": "Cannabis", + "fr": "Cannabis" + }, + "value": "Cannabis" + }, + { + "label": { + "en": "None of the above", + "fr": "Aucune de ces réponses" + }, + "value": "None of the above" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Have you smoked at least 100 cigarettes in your life?", + "fr": "Avez-vous fumé au moins 100 cigarettes dans votre vie?" + }, + "key": "cigarettes", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "Yes" + }, + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "No" + }, + { + "label": { + "en": "Don''t know", + "fr": "Je ne sais pas" + }, + "value": "Don''t know" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "What is your current smoking status?", + "fr": "Quel est votre statut de fumeur actuel?" + }, + "key": "smoking", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Not a smoker", + "fr": "Je ne fume pas" + }, + "value": "Not a smoker" + }, + { + "label": { + "en": "Current smoker: 20 or more cigarettes per day", + "fr": "Fumeur actuel : 20 cigarettes ou plus par jour" + }, + "value": "Current smoker: 20 or more cigarettes per day" + }, + { + "label": { + "en": "Current smoker: 10-19 cigarettes per day", + "fr": "Fumeur actuel : 10 à 19 cigarettes par jour" + }, + "value": "Current smoker: 10-19 cigarettes per day" + }, + { + "label": { + "en": "Current smoker: 0-9 cigarettes per day", + "fr": "Fumeur actuel : 0 à 9 cigarettes par jour" + }, + "value": "Current smoker: 0-9 cigarettes per day" + }, + { + "label": { + "en": "Quit in last year", + "fr": "J''ai arrêté l''année dernière" + }, + "value": "Quit in last year" + }, + { + "label": { + "en": "Quit in last 5 years", + "fr": "J''ai arrêté au cours des 5 dernières années" + }, + "value": "Quit in last 5 years" + }, + { + "label": { + "en": "Quit in last 15 years", + "fr": "J''ai arrêté au cours des 15 dernières années" + }, + "value": "Quit in last 15 years" + }, + { + "label": { + "en": "Quit in last 25 years", + "fr": "J''ai arrêté au cours des 25 dernières années" + }, + "value": "Quit in last 25 years" + }, + { + "label": { + "en": "Quit >25 years ago", + "fr": "J''ai arrêté il y a plus de 25 ans" + }, + "value": "Quit >25 years ago" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Have you ever drank alcohol?", + "fr": "Avez-vous déjà consommé de l''alcool?" + }, + "key": "alcohol", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "Yes" + }, + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "No" + }, + { + "label": { + "en": "Do not wish to answer", + "fr": "Je ne souhaite pas répondre" + }, + "value": "Do not wish to answer" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "About how often during the past 12 months did you drink alcohol?", + "fr": "À quelle fréquence (approximativement) au cours des 12 derniers mois avez-vous consommé de l''alcool?" + }, + "key": "alcoholUse", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Almost every day (6-7 times a week)", + "fr": "Presque tous les jours (6-7 fois par semaine)" + }, + "value": "Almost every day" + }, + { + "label": { + "en": "4-5 times a week", + "fr": "4-5 fois par semaine" + }, + "value": "4-5 times a week" + }, + { + "label": { + "en": "2-3 times a week", + "fr": "2-3 fois par semaine" + }, + "value": "2-3 times a week" + }, + { + "label": { + "en": "Once a week", + "fr": "Une fois par semaine" + }, + "value": "Once a week" + }, + { + "label": { + "en": "2-3 times a month", + "fr": "2-3 fois par mois" + }, + "value": "2-3 times a month" + }, + { + "label": { + "en": "About once a month", + "fr": "Environ une fois par mois" + }, + "value": "Once a month" + }, + { + "label": { + "en": "Less than once a month", + "fr": "Moins d''une fois par mois" + }, + "value": "Less than once a month" + }, + { + "label": { + "en": "Never", + "fr": "Jamais" + }, + "value": "Never" + }, + { + "label": { + "en": "Do not wish to answer", + "fr": "Je ne souhaite pas répondre" + }, + "value": "Do not wish to answer" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "How much time do you spend engaging in mental exercise (e.g. playing board games, cards, crossword puzzles, jigsaw puzzles, sudoku, playing a musical instrument, etc.)", + "fr": "Combien de temps passez-vous à faire de l''exercice mental (p.ex. jeux de société, cartes, mots croisés, casse-têtes, sudoku; jouer un instrument de musique, etc.)" + }, + "key": "mentalExercise", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Every day", + "fr": "Tous les jours" + }, + "value": "Every day" + }, + { + "label": { + "en": "Several times a week", + "fr": "Plusieurs fois par semaine" + }, + "value": "Several times a week" + }, + { + "label": { + "en": "Several times a month", + "fr": "Plusieurs fois par mois" + }, + "value": "Several times a month" + }, + { + "label": { + "en": "Several times a year", + "fr": "Plusieurs fois par année" + }, + "value": "Several times a year" + }, + { + "label": { + "en": "Once a year or less", + "fr": "Une fois par année ou moins" + }, + "value": "Once a year or less" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "How often do you exercise?", + "fr": "À quelle fréquence faites-vous de l''activité physique?" + }, + "key": "exercise", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Less than 1 time per week", + "fr": "Moins d''une fois par semaine" + }, + "value": "Less than 1 time per week" + }, + { + "label": { + "en": "1 to 2 days per week", + "fr": "1 à 2 jours par semaine" + }, + "value": "1 to 2 days per week" + }, + { + "label": { + "en": "3 to 5 days per week", + "fr": "3 à 5 jours par semaine" + }, + "value": "3 to 5 days per week" + }, + { + "label": { + "en": "6 to 7 days per week", + "fr": "6 à 7 jours par semaine" + }, + "value": "6 to 7 days per week" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "How long is one exercise session approximately?", + "fr": "Environ combien de temps dure une séance d''exercice?" + }, + "key": "exerciseSession", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Less than 30 minutes", + "fr": "Moins de 30 minutes" + }, + "value": "Less than 30 minutes" + }, + { + "label": { + "en": "30 to 60 minutes", + "fr": "30 à 60 minutes" + }, + "value": "30 to 60 minutes" + }, + { + "label": { + "en": "1 to 2 hours", + "fr": "1 à 2 heures" + }, + "value": "1 to 2 hours" + }, + { + "label": { + "en": "More than 2 hours", + "fr": "Plus de 2 heures" + }, + "value": "More than 2 hours" + } + ] + }, + { + "questionType": "divider", + "key": "divider6" + }, + { + "questionType": "displayText", + "key": "displayText6", + "title": { + "en": "Sleep", + "fr": "Le Sommeil" + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "How often is your sleep restless?", + "fr": "À quelle fréquence votre sommeil est-il agité?" + }, + "key": "restlessSleep", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "All of the time (5-7 days per week)", + "fr": "Tout le temps (5 à 7 jours par semaine)" + }, + "value": "All of the time" + }, + { + "label": { + "en": "Occasionally (3-4 days per week)", + "fr": "Parfois (3 à 4 jours par semaine)" + }, + "value": "Occasionally" + }, + { + "label": { + "en": "Some of the time (1-2 days per week)", + "fr": "Quelques fois (1 à 2 jours par semaine)" + }, + "value": "Some of the time" + }, + { + "label": { + "en": "Rarely or never (less than 1 day per week)", + "fr": "Rarement ou jamais (moins de 1 jours par semaine" + }, + "value": "Rarely or never" + } + ] + }, + { + "questionType": "radiobuttons", + "title": { + "en": "Have you ever been told, or suspected yourself, that you seem to \\"act out your dreams\\" while asleep (for example, punching, flailing your arms in the air, making running movements, etc.)?", + "fr": "Vous a-t-on déjà dit ou avez-vous déjà remarqué que vous reproduisiez physiquement la gestuelle de vos rêves / mouvements lorsque vous rêvez? (Exemple : coup de poing dans le vide, fouetter dans l''air, mouvements de courir)" + }, + "key": "actOutSleep", + "validation": { + "required": true + }, + "radiobuttonPresentation": "vertical", + "options": [ + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "Yes" + }, + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "No" + } + ] + } + ] + } + } + ] + }' +WHERE id = 89; \ No newline at end of file diff --git a/populate-scripts/update/90-demographic-and-socioeconomic-questionnaire.sql b/populate-scripts/update/90-demographic-and-socioeconomic-questionnaire.sql new file mode 100644 index 0000000..1d35315 --- /dev/null +++ b/populate-scripts/update/90-demographic-and-socioeconomic-questionnaire.sql @@ -0,0 +1,601 @@ + +-- Demographics and Socioeconomic Questionnaire +UPDATE tasks SET + from_platform = "PSHARPLAB", + task_type = "QUESTIONNAIRE", + name = "Demographics and Socioeconomic Questionnaire", + description = "Demographics and Socioeconomic Questionnaire.", + external_url = "", + config = '{ + "taskConfig": {}, + "metadata": [ + { + "componentName": "QUESTIONNAIRECOMPONENT", + "componentConfig": { + "title": "Questionnaire", + "questions": [ + { + "questionType": "input", + "title": { + "en": "What is your age (in years)?", + "fr": "Quel âge avez-vous actuellement?" + }, + "validation": { + "required": true, + "isNumeric": true, + "min": 18 + }, + "key": "what-is-your-age" + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "What sex were you assigned at birth?", + "fr": "Quel sexe vous a-t-on attribué à la naissance?" + }, + "validation": { + "required": true + }, + "key": "what-sex-were-you-assigned-at-birth", + "options": [ + { + "label": { + "en": "Female", + "fr": "Femme" + }, + "value": "female" + }, + { + "label": { + "en": "Male", + "fr": "Homme" + }, + "value": "male" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "How do you describe yourself?", + "fr": "Comment vous décrivez-vous?" + }, + "key": "how-do-you-describe-yourself", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Female", + "fr": "Femme" + }, + "value": "female" + }, + { + "label": { + "en": "Male", + "fr": "Homme" + }, + "value": "male" + }, + { + "label": { + "en": "Transgender", + "fr": "Transgenre" + }, + "value": "transgender" + }, + { + "label": { + "en": "Do not identify as female, male, or transgender", + "fr": "Je ne m''identifie ni comme femme, ni comme homme, ni comme transgenre" + }, + "value": "Do not identify as female, male, or transgender" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "What is your handedness?", + "fr": "Quelle est votre main dominante?" + }, + "key": "what-is-your-handedness", + "validation": { + "required": true + }, + "options": [{ + "label": { + "en": "Right-handed", + "fr": "Droitier/Droitière" + }, + "value": "Right" + }, + { + "label": { + "en": "Left-handed", + "fr": "Gaucher/Gauchère" + }, + "value": "Left" + }, + { + "label": { + "en": "Ambidextrous", + "fr": "Ambidextre" + }, + "value": "Ambidextrous" + }] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "To which group do you culturally belong? (Select all that apply)", + "fr": "Avec quel groupe vous identifiez-vous? (Sélectionnez tous ceux qui s''appliquent)" + }, + "key": "to-which-group-do-you-culturally-belong", + "validation": { + "required": true + }, + "allowMultipleSelections": true, + "options": [ + { + "label": { + "en": "White / Caucasian", + "fr": "Blanc / Caucasien.ne" + }, + "value": "White/Caucasian" + }, + { + "label": { + "en": "French Canadian", + "fr": "Canadien.ne Français.e" + }, + "value": "French Canadian" + }, + { + "label": { + "en": "Indigenous peoples", + "fr": "Autochtones" + }, + "value": "First Nations" + }, + { + "label": { + "en": "Hispanic or Latino", + "fr": "Hispanique ou Latino" + }, + "value": "Hispanic or Latino" + }, + { + "label": { + "en": "African / Carribean / Afro American", + "fr": "Africain.ne / Caribéen.ne / Afro Américain.e" + }, + "value": "African/Carribean/Afro American" + }, + { + "label": { + "en": "North African", + "fr": "Nord-Africain.ne" + }, + "value": "North African" + }, + { + "label": { + "en": "Middle Eastern", + "fr": "Moyen-Orient" + }, + "value": "Middle Eastern" + }, + { + "label": { + "en": "Chinese", + "fr": "Chinois.e" + }, + "value": "Chinese" + }, + { + "label": { + "en": "South Asian (E.g. Indian, Pakistani, Sri Lankan)", + "fr": "Sud-Asiatique (P.ex. Indien.ne, Pakistanais.e, Sri Lankais.e)" + }, + "value": "South Asian" + }, + { + "label": { + "en": "Southeast Asian (E.g. Filipino, Cambodian, Indonesian, Laotian, Vietnamese)", + "fr": "Asiatique du Sud-Est (P.ex. Philippin.e, Cambodgien.ne, Indonésien.ne, Laotien.ne, Vietnamien.ne)" + }, + "value": "Southeast Asian" + }, + { + "label": { + "en": "Japanese", + "fr": "Japonais.e" + }, + "value": "Japanese" + }, + { + "label": { + "en": "Korean", + "fr": "Coréen.ne" + }, + "value": "Korean" + }, + { + "label": { + "en": "Other", + "fr": "Autre" + }, + "value": "Other" + }, + { + "label": { + "en": "Don''t know", + "fr": "Je ne sais pas" + }, + "value": "Don''t know" + }, + { + "label": { + "en": "Prefer not to answer", + "fr": "Je ne préfère pas répondre" + }, + "value": "Prefer not to answer" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Which of the following languages do you consider yourself fluent in (can read and speak)? Select all that apply.", + "fr": "Laquelle des langues suivantes considérez-vous que vous parlez couramment (savoir lire et parler)? (Sélectionnez tout ce qui s''applique)" + }, + "key": "which-of-the-following-languages-do-you-consider-yourself-fluent-in", + "validation": { + "required": true + }, + "allowMultipleSelections": true, + "options": [ + { + "label": { + "en": "English", + "fr": "Anglais" + }, + "value": "English" + }, + { + "label": { + "en": "French", + "fr": "Français" + }, + "value": "French" + }, + { + "label": { + "en": "Neither", + "fr": "Aucun des deux" + }, + "value": "Neither" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you have color-blindness?", + "fr": "Êtes-vous daltonien.ne (déficience de la perception des couleurs)?" + }, + "key": "do-you-have-color-blindness", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "No" + }, + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "Yes" + }, + { + "label": { + "en": "Unsure", + "fr": "Incertain.e" + }, + "value": "Unsure" + } + ] + }, + { + "questionType": "input", + "key": "how-many-years-of-education-do-you-have", + "title": "How many years of education do you have (completing high school equals 12 years)?", + "validation": { + "isNumeric": true, + "required": true + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "What is the highest level of education you have completed?", + "fr": "Quel est le plus haut niveau d''éducation que vous avez complété?" + }, + "key": "what-is-the-highest-level-of-education-you-have-completed", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "None", + "fr": "Aucun" + }, + "value": "None" + }, + { + "label": { + "en": "Grade (Elementary) school", + "fr": "École primaire" + }, + "value": "Grade (Elementary) school" + }, + { + "label": { + "en": "High school", + "fr": "École secondaire" + }, + "value": "High school" + }, + { + "label": { + "en": "Trade Certificate/Diploma", + "fr": "Certificat/Diplôme de commerce" + }, + "value": "Trade Certificate/Diploma" + }, + { + "label": { + "en": "Non-University Diploma", + "fr": "Diplôme non-universitaire" + }, + "value": "Non-University Diploma" + }, + { + "label": { + "en": "Bachelor''s Degree", + "fr": "Baccalauréat" + }, + "value": "Bachelor''s Degree" + }, + { + "label": { + "en": "Postgraduate Degree", + "fr": "Diplôme d''études supérieures" + }, + "value": "Postgraduate Degree" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "key": "what-is-your-current-employment-status", + "title": "What is your current employment status?", + "options": [{ + "label": "Employed Full-time (30+ hours a week)", + "value": "Full-time" + }, + { + "label": "Employed Part-time", + "value": "Part-time" + }, + { + "label": "Unemployed", + "value": "Unemployed" + }, + { + "label": "Disability Leave", + "value": "Disability Leave" + }, + { + "label": "Homemaker", + "value": "Homemaker" + }, + { + "label": "Student", + "value": "Student" + }, + { + "label": "Volunteer", + "value": "Volunteer" + }, + { + "label": "Retired", + "value": "Retired" + }, + { + "label": "Do not wish to answer", + "value": "Do not wish to answer" + } + ], + "validation": { + "required": true + } + }, + { + "questionType": "freeTextResponse", + "key": "which-job-or-occupation-have-you-held-for-the-longest-period", + "title": { + "en": "Which job or occupation have you held for the longest period? Please provide the job title or a short description.", + "fr": "Quel emploi ou quelle profession avez-vous exercé(e) le plus longtemps? Veuillez fournir le titre du poste ou une brève description." + }, + "validation": { + "required": true + } + }, + { + "questionType": "multipleChoiceSelect", + "title": "What is your best estimate of the total household income received by all household members, from all sources, before taxes and deductions, in the past 12 months?", + "key": "householdIncome", + "validation": { + "required": true + }, + "options": [{ + "label": "Less than $20,000", + "value": "Less than $20,000" + }, + { + "label": "$20,000 or more, but less than $50,000", + "value": "$20,000 or more, but less than $50,000" + }, + { + "label": "$50,000 or more, but less than $100,000", + "value": "$50,000 or more, but less than $100,000" + }, + { + "label": "$150,000 or more", + "value": "$150,000 or more" + }, + { + "label": "Do not know", + "value": "Do not know" + }, + { + "label": "Do not wish to answer", + "value": "Do not wish to answer" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": "What is your current marital/partner status?", + "key": "marital", + "validation": { + "required": true + }, + "options": [{ + "label": "Single, never married, or never lived with a partner", + "value": "Single, never married, or never lived with a partner" + }, + { + "label": "Married/Living with a partner in a domestic relationship", + "value": "Married/Living with a partner in a domestic relationship" + }, + { + "label": "Widowed", + "value": "Widowed" + }, + { + "label": "Divorced/Separated", + "value": "Divorced/Separated" + }, + { + "label": "Do not wish to disclose", + "value": "Do not wish to disclose" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": "Which best describes your living situation?", + "key": "living", + "validation": { + "required": true + }, + "options": [{ + "label": "Living alone", + "value": "Living alone" + }, + { + "label": "Living with spouse/partner/significant other", + "value": "Living with spouse/partner/significant other" + }, + { + "label": "Living with adult child/children", + "value": "Living with adult child/children" + }, + { + "label": "Living with other family", + "value": "Living with other family" + }, + { + "label": "Living with paid in-home care provider/aide", + "value": "Living with paid in-home care provider/aide" + }, + { + "label": "Living in assisted living facility", + "value": "Living in assisted living facility" + }, + { + "label": "Living in nursing home", + "value": "Living in nursing home" + }, + { + "label": "Other", + "value": "Other" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you consider yourself to be:", + "fr": "Vous considérez-vous comme:" + }, + "key": "do-you-consider-yourself-to-be", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Heterosexual (sexual relations with people of the opposite sex)", + "fr": "Hétérosexuel (relations sexuelles avec des personnes du sexe opposé)" + }, + "value": "Heterosexual" + }, + { + "label": { + "en": "Homosexual, that is lesbian or gay (sexual relations with people of your own sex)", + "fr": "Homosexuel, c''est-à-dire lesbienne ou gay (relations sexuelles avec des personnes de votre propre sexe)" + }, + "value": "Homosexual" + }, + { + "label": { + "en": "Bisexual (sexual relations with people of both sexes)", + "fr": "Bisexuel (relations sexuelles avec des personnes des deux sexes)" + }, + "value": "Bisexual" + }, + { + "label": { + "en": "Other", + "fr": "Autre" + }, + "value": "Other" + }, + { + "label": { + "en": "Do not wish to answer", + "fr": "Je préfère ne pas répondre" + }, + "value": "Do not wish to answer" + } + ] + } + ] + } + } + ] + }' +WHERE id = 90; \ No newline at end of file diff --git a/populate-scripts/update/91-parkinson-clinical-and-medication-questionnaire.sql b/populate-scripts/update/91-parkinson-clinical-and-medication-questionnaire.sql new file mode 100644 index 0000000..7b5bb87 --- /dev/null +++ b/populate-scripts/update/91-parkinson-clinical-and-medication-questionnaire.sql @@ -0,0 +1,696 @@ + +-- Parkinson Clinical and Medication Questionnaire +UPDATE tasks SET + from_platform = "PSHARPLAB", + task_type = "QUESTIONNAIRE", + name = "Parkinson Clinical and Medication Questionnaire", + description = "Parkinson Clinical and Medication Questionnaire", + external_url = "", + + config = '{ + "taskConfig": {}, + "metadata": [ + { + "componentName": "QUESTIONNAIRECOMPONENT", + "componentConfig": { + "title": { + "en": "Questionnaire", + "fr": "Les Questions" + }, + "questions": [ + { + "questionType": "radiobuttons", + "title": { + "en": "Do you have a diagnosis of Parkinson''s disease given to you by a doctor (e.g. family doctor or neurologist)?", + "fr": "Avez-vous un diagnostic de la maladie de Parkinson qui vous a été donné par un médecin (par exemple, un médecin de famille ou un neurologue)?" + }, + "validation": { + "required": true + }, + "radiobuttonPresentation": "vertical", + "options": [ + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "yes" + }, + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "no" + }, + { + "label": { + "en": "No, but I think I have Parkinson''s disease", + "fr": "Non, mais je pense avoir la maladie de Parkinson" + }, + "value": "No, but I think I have Parkinson''s disease" + } + ], + "key": "do-you-have-a-diagnosis-of-parkinsons-disease-given-to-you-by-a-doctor" + }, + { + "questionType": "divider", + "key": "divider-1", + "condition": { + "dependsOnKey": "do-you-have-a-diagnosis-of-parkinsons-disease-given-to-you-by-a-doctor", + "doConditional": { + "onlyShowWhenValuesSelected": [ "yes" ] + } + } + }, + { + "questionType": "input", + "title": { + "en": "In what year were you diagnosed with Parkinson'' disease?", + "fr": "En quelle année avez-vous reçu votre diagnostic de Parkinson? Si vous n''avez PAS la maladie de Parkinson, SVP inscrire \\"0\\"." + }, + "key": "in-what-year-were-you-diagnosed-with-parkinsons-disease", + "label": { + "en": "Year (e.g. 2009)", + "fr": "Année (ex. 2009)" + }, + "condition": { + "dependsOnKey": "do-you-have-a-diagnosis-of-parkinsons-disease-given-to-you-by-a-doctor", + "doConditional": { + "onlyShowWhenValuesSelected": [ "yes" ] + } + }, + "validation": { + "required": true, + "isNumeric": true, + "min": 0 + } + }, + { + "questionType": "radiobuttons", + "title": { + "en": "Do you have rest tremor as part of your symptoms of Parkinson''s disease (either currently or in the past)?", + "fr": "Avez-vous un tremblement de repos comme symptôme de votre maladie de Parkinson (soit présemntement ou dans le passé)?" + }, + "validation": { + "required": true + }, + "condition": { + "dependsOnKey": "do-you-have-a-diagnosis-of-parkinsons-disease-given-to-you-by-a-doctor", + "doConditional": { + "onlyShowWhenValuesSelected": [ "yes" ] + } + }, + "radiobuttonPresentation": "vertical", + "options": [ + { + "label": { + "en": "Yes", + "fr": "Oui" + }, + "value": "Yes" + }, + { + "label": { + "en": "No", + "fr": "Non" + }, + "value": "No" + }, + { + "label": { + "en": "Unsure", + "fr": "Incertain" + }, + "value": "unsure" + } + ], + "key": "do-you-have-rest-tremor-as-part-of-your-symptoms-of-parkinsons-disease" + }, + { + "questionType": "radiobuttons", + "title": { + "en": "Have you had falls since your diagnosis of Parkinson''s disease?", + "fr": "Avez-vous eu des chutes depuis votre diagnostic de la maladie de Parkinson?" + }, + "validation": { + "required": true + }, + "condition": { + "dependsOnKey": "do-you-have-a-diagnosis-of-parkinsons-disease-given-to-you-by-a-doctor", + "doConditional": { + "onlyShowWhenValuesSelected": [ "yes" ] + } + }, + "radiobuttonPresentation": "vertical", + "options": [ + { + "label": { + "en": "No, I have not fallen since my diagnosis", + "fr": "Non, je n''ai pas chuté depuis mon diagnostic" + }, + "value": "no-i-have-not-fallen-since-my-diagnosis" + }, + { + "label": { + "en": "Yes, about once per week", + "fr": "Oui, environ une fois par semaine" + }, + "value": "yes-about-once-per-week" + }, + { + "label": { + "en": "Yes, about once per month", + "fr": "Oui, environ une fois par mois" + }, + "value": "yes-about-once-per-month" + }, + { + "label": { + "en": "Yes, a few times per year", + "fr": "Oui, quelques fois par an" + }, + "value": "yes-a-few-times-per-year" + }, + { + "label": { + "en": "Yes, only very rarely", + "fr": "Oui, seulement très rarement" + }, + "value": "yes-only-very-rarely" + } + ], + "key": "have-you-had-falls-since-your-diagnosis-of-parkinsons-disease" + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you currently take medication for Parkinson''s disease?", + "fr": "Prenez-vous actuellement des médicaments pour la maladie de Parkinson?" + }, + "validation": { + "required": true + }, + "key": "do-you-currently-take-medication-for-parkinsons-disease", + "condition": { + "dependsOnKey": "do-you-have-a-diagnosis-of-parkinsons-disease-given-to-you-by-a-doctor", + "doConditional": { + "onlyShowWhenValuesSelected": [ "yes" ] + } + }, + "options": [ + { + "label": { + "en": "I have PD but DON''T take medications for it", + "fr": "J''ai la MP mais je ne prends PAS de médicaments pour ça" + }, + "value": "I have PD but don''t take medications for it" + }, + { + "label": { + "en": "I have PD and I DO take medications for it", + "fr": "J''ai la MP et je PRENDS des médicaments pour ça" + }, + "value": "I-have-pd-and-i-do-take-medications-for-it" + } + ] + }, + { + "questionType": "displayText", + "key": "displayText2", + "title": { + "en": "How long ago did you take the last dose?", + "fr": "Il y a combien de temps que vous avez pris la dernière dose?" + }, + "condition": { + "dependsOnKey": "do-you-currently-take-medication-for-parkinsons-disease", + "doConditional": { + "onlyShowWhenValuesSelected": [ "I-have-pd-and-i-do-take-medications-for-it" ] + } + }, + "indent": 1 + }, + { + "questionType": "input", + "indent": 1, + "condition": { + "dependsOnKey": "do-you-currently-take-medication-for-parkinsons-disease", + "doConditional": { + "onlyShowWhenValuesSelected": [ "I-have-pd-and-i-do-take-medications-for-it" ] + } + }, + "key": "how-long-ago-did-you-take-the-last-dose-hours", + "label": { + "en": "Hours", + "fr": "Heures" + }, + "validation": { + "required": true, + "isNumeric": true, + "min": 0 + } + }, + { + "questionType": "input", + "indent": 1, + "condition": { + "dependsOnKey": "do-you-currently-take-medication-for-parkinsons-disease", + "doConditional": { + "onlyShowWhenValuesSelected": [ "I-have-pd-and-i-do-take-medications-for-it" ] + } + }, + "key": "how-long-ago-did-you-take-the-last-dose", + "label": { + "en": "Minutes", + "fr": "Minutes" + }, + "validation": { + "required": true, + "isNumeric": true, + "min": 0 + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you feel ON (i.e. can feel that the PD medications are taking effect) or OFF (i.e. medications are not currently taking effect)?", + "fr": "Vous sentez-vous ACTIVÉ.E (\\"ON\\") (c.-à-d. sentir que les médicaments de la MP font effet) ou INACTIVÉ.E (\\"OFF\\") (c.-à-d. sentir que les médicaments ne font pas actuellement effet)?" + }, + "key": "do-you-feel-on-or-off", + "validation": { + "required": true + }, + "condition": { + "dependsOnKey": "do-you-currently-take-medication-for-parkinsons-disease", + "doConditional": { + "onlyShowWhenValuesSelected": [ "I-have-pd-and-i-do-take-medications-for-it" ] + } + }, + "indent": 1, + "options": [ + { + "label": { + "en": "I feel ON", + "fr": "Je me sens ON" + }, + "value": "I feel ON" + }, + { + "label": { + "en": "I feel OFF", + "fr": "Je me sens OFF" + }, + "value": "I feel OFF" + }, + { + "label": { + "en": "I cannot tell the difference between ON and OFF", + "fr": "Je ne vois pas la différence entre le ON et le OFF" + }, + "value": "I cannot tell the difference" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Are you currently taking any of the following medications to treat your Parkinson''s disease symptoms? (Please check all that apply)", + "fr": "Prenez-vous actuellement l''un des ces médicaments pour traiter les symptômes de la maladie de Parkinson? (SVP sélectionner tout ce qui s''applique)" + }, + "key": "are-you-taking-any-of-the-following-medications-to-treat-your-parkinsons-disease-symptoms", + "validation": { + "required": true + }, + "allowMultipleSelections": true, + "condition": { + "dependsOnKey": "do-you-currently-take-medication-for-parkinsons-disease", + "doConditional": { + "onlyShowWhenValuesSelected": [ "I-have-pd-and-i-do-take-medications-for-it" ] + } + }, + "indent": 1, + "options": [ + { + "label": { + "en": "Sinemet or carbidopa-levodopa or Parcopa (Oral)", + "fr": "Sinemet ou carbidopa-levodopa ou Parcopa (Orale)" + }, + "value": "Sinemet or Carbidopa-Levodopa or Parcopa (Oral)" + }, + { + "label": { + "en": "Sinemet CR or carbidopa-levodopa Extended Release (Oral)", + "fr": "Sinemet CR ou carbidopa-levodopa action/libération prolongée (Orale)" + }, + "value": "Sinemet CR or Carbidopa-Levodopa, Extended Release (Oral)" + }, + { + "label": { + "en": "Rytary or Numient (i.e. carbidopa-levodopa, Extended Release, Oral)", + "fr": "Rytary ou Numient (c.-à-d. carbidopa-levodopa, Extended Release, Orale)" + }, + "value": "Rytary or Numient" + }, + { + "label": { + "en": "Duopa or Duodopa (i.e. Intestinal gel of carbidopa-levodopa)", + "fr": "Duopa ou Duodopa (c.-à-d. Gel intestinal de carbidopa-levodopa)" + }, + "value": "Duopa or Duodopa" + }, + { + "label": { + "en": "Stalevo (i.e. combination in one pill of carbidopa, cevodopa, and entacapone)", + "fr": "Stalevo (c.-à-d. la combinaison en une pilule de carbidopa, levodopa, et entacapone)" + }, + "value": "Stalevo" + }, + { + "label": { + "en": "Madopar or levodopa-benserazide", + "fr": "Madopar ou levodopa-benserazide" + }, + "value": "Madopar or Levodopa-Benserazide" + }, + { + "label": { + "en": "Entacapone or Comtan", + "fr": "Entacapone ou Comtan" + }, + "value": "Entacapone or Comtan" + }, + { + "label": { + "en": "Tolcapone or Tasmar", + "fr": "Tolcapone ou Tasmar" + }, + "value": "Tolcapone or Tasmar" + }, + { + "label": { + "en": "Rasagiline or Azilect", + "fr": "Rasagiline ou Azilect" + }, + "value": "Rasagiline or Azilect" + }, + { + "label": { + "en": "Selegiline or Deprenyl or Elderpryl or Zelapar", + "fr": "Selegiline ou Deprenyl ou Elderpryl ou Zelapar" + }, + "value": "Selegiline or Deprenyl or Elderpryl or Zelapar or Emasm" + }, + { + "label": { + "en": "Pramipexole or Mirapex", + "fr": "Pramipexole ou Mirapex" + }, + "value": "Pramipexole or Mirapex" + }, + { + "label": { + "en": "Ropinirole or Requip", + "fr": "Ropinirole ou Requip" + }, + "value": "Ropinirole or Requip" + }, + { + "label": { + "en": "Neupro patch or Rotigotine patch", + "fr": "timbre (\\"patch\\") de Neupro ou Rotigotine" + }, + "value": "Neupro timbre or Rotigotine timbre" + }, + { + "label": { + "en": "Amantadine or Symmetrel or Gocovri", + "fr": "Amantadine ou Symmetrel ou Gocovri" + }, + "value": "Amantadine or Symmetrel or Gocovri" + }, + { + "label": { + "en": "Apokyn or Kinmobi or Apomorphine", + "fr": "Apokyn ou Kinmobi ou Apomorphine" + }, + "value": "Apokyn or Kinmobi or Apomorphine" + }, + { + "label": { + "en": "Bromocriptine or Parlodel", + "fr": "Bromocriptine ou Parlodel" + }, + "value": "Bromocriptine or Parlodel" + }, + { + "label": { + "en": "Onstryv or Xadago or Safinamide", + "fr": "Onstryv ou Xadago ou Safinamide" + }, + "value": "Onstryv or Xadago or Safinamide" + }, + { + "label": { + "en": "Trihexyphenidyl or Artane", + "fr": "Trihexyphenidyl ou Artane" + }, + "value": "Trihexyphenidyl or Artane" + }, + { + "label": { + "en": "Rivastigmine or Exelon", + "fr": "Rivastigmine ou Exelon" + }, + "value": "Rivastigmine or Exelon" + }, + { + "label": { + "en": "Donepezil or Aricept", + "fr": "Donepezil ou Aricept" + }, + "value": "Donepezil or Aricept" + }, + { + "label": { + "en": "Galantamine or Razadyne or Reminyl", + "fr": "Galantamine ou Razadyne ou Reminyl" + }, + "value": "Galantamine or Razadyne or Reminyl" + }, + { + "label": { + "en": "Memantine or Namenda or Ebixa", + "fr": "Memantine ou Namenda ou Ebixa" + }, + "value": "Memantine or Namenda or Ebixa" + }, + { + "label": { + "en": "I take other medications for my Parkinson''s disease but they are not on this list", + "fr": "Je prends d''autres médicaments pour ma maladie de Parkinson mais ils ne sont pas inclus dans cette liste" + }, + "value": "i-take-other-medications-for-my-parkinson-disease-but-they-are-not-on-this-list" + } + ] + }, + { + "questionType": "freeTextResponse", + "title": { + "en": "If you take medications for Parkinson''s disease that are not on the list, please write it below.", + "fr": "Si vous prenez d''autres médicaments pour votre maladie de Parkinson qui ne sont pas inclus dans cette liste, SVP écrivez-les ci-dessous." + }, + "key": "other-medications-not-on-list", + "indent": 1, + "condition": { + "dependsOnKey": "are-you-taking-any-of-the-following-medications-to-treat-your-parkinsons-disease-symptoms", + "doConditional": { + "onlyShowWhenValuesSelected": [ "i-take-other-medications-for-my-parkinson-disease-but-they-are-not-on-this-list" ] + } + }, + "validation": { + "required": true + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Have you ever undergone any of these PD surgeries or procedures? (Please check all that apply)", + "fr": "Avez-vous déjà subi l''une des chirurgies ou procédures suivantes pour votre maladie de Parkinson? (Veuillez cocher tout ce qui s''applique)" + }, + "indent": 1, + "key": "have-you-ever-undergone-any-of-these-pd-surgeries-or-procedures", + "validation": { + "required": true + }, + "condition": { + "dependsOnKey": "do-you-currently-take-medication-for-parkinsons-disease", + "doConditional": { + "onlyShowWhenValuesSelected": [ "I-have-pd-and-i-do-take-medications-for-it" ] + } + }, + "allowMultipleSelections": true, + "options": [ + { + "label": { + "en": "Deep brain stimulation (\\"DBS\\")", + "fr": "Chirurgie de stimulation cérébrale profonde (\\"DBS\\")" + }, + "value": "Deep brain stimulation" + }, + { + "label": { + "en": "Pallidotomy", + "fr": "Pallidotomie" + }, + "value": "Pallidotomy" + }, + { + "label": { + "en": "Thalamotomy", + "fr": "Thalamotomie" + }, + "value": "Thalamotomy" + }, + { + "label": { + "en": "Focused ultrasound (\\"FUS\\")", + "fr": "Ultrason focalisé (\\"FUS\\")" + }, + "value": "Focused ultrasound" + }, + { + "label": { + "en": "Gamma knife radiosurgery", + "fr": "Radiochirurgie au scalpel gamma" + }, + "value": "Gamma knife radiosurgery" + }, + { + "label": { + "en": "I have not undergone any of the PD procedures listed above", + "fr": "Je n''ai subi aucune des procédures mentionnées ci-dessus" + }, + "value": "I have not undergone any of the PD procedures listed above" + } + ] + }, + { + "questionType": "divider", + "key": "divider-2", + "condition": { + "dependsOnKey": "do-you-have-a-diagnosis-of-parkinsons-disease-given-to-you-by-a-doctor", + "doConditional": { + "onlyShowWhenValuesSelected": [ "yes" ] + } + } + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Are you currently taking medications (prescription or over the counter) for any of the following conditions? (Please check all that apply)", + "fr": "Est-ce que vous prenez présentement des médicaments, soit sous ordonnance ou sans ordonnance, pour l''une ou plusieurs des conditions suivantes?" + }, + "key": "are-you-currently-taking-medications-for-any-of-the-following-conditions", + "validation": { + "required": true + }, + "allowMultipleSelections": true, + "options": [ + { + "label": { + "en": "Depression", + "fr": "Dépression" + }, + "value": "Depression" + }, + { + "label": { + "en": "Anxiety", + "fr": "Anxiété" + }, + "value": "Anxiety" + }, + { + "label": { + "en": "Sleep problems", + "fr": "Troubles du sommeil" + }, + "value": "Sleep Problems" + }, + { + "label": { + "en": "Problems with cognition", + "fr": "Problèmes de cognition" + }, + "value": "Problems with cognition" + }, + { + "label": { + "en": "Hallucinations", + "fr": "Hallucinations" + }, + "value": "Hallucinations" + }, + { + "label": { + "en": "I am not taking medication to treat any of the conditions listed above/ I have not been diagnosed with any of the following conditions", + "fr": "Je prends aucun médicament pour les conditions mentionnées ci-dessus/ Je n''étais pas diagnostiqué.e par aucune de ces conditions" + }, + "value": "I am not taking medication to treat any of the conditions listed above" + } + ] + }, + { + "questionType": "multipleChoiceSelect", + "title": { + "en": "Do you have a family history of Parkinson''s disease?", + "fr": "Avez-vous des antécédents familiaux de maladie de Parkinson?" + }, + "key": "do-you-have-a-family-history-of-parkinsons-disease", + "validation": { + "required": true + }, + "options": [ + { + "label": { + "en": "Yes, my biological mother or father has/had Parkinson''s disease", + "fr": "Oui, ma mère/mon père biologiques ont/avaient la maladie de Parkinson" + }, + "value": "Yes, biological mother or father" + }, + { + "label": { + "en": "Yes, one of my siblings has/had Parkinson''s disease", + "fr": "Oui, un.e de mes frères/soeurs a/avait la maladie de Parkinson" + }, + "value": "Yes, siblings" + }, + { + "label": { + "en": "Yes, one of my children has/had Parkinson''s disease", + "fr": "Oui, un de mes enfants a/avait la maladie de Parkinson" + }, + "value": "Yes, children" + }, + { + "label": { + "en": "Yes, an uncle/aunt/cousin or other blood relative has/had Parkinson’s disease", + "fr": "Oui, un oncle/tante/cousin.e ou un autre proche par le sang a/avait la maladie de Parkinson" + }, + "value": "Yes, relative" + }, + { + "label": { + "en": "No, no family history", + "fr": "Non, pas d''antécédents familiaux" + }, + "value": "No" + } + ] + } + ] + } + } + ] + }' +WHERE id = 91; \ No newline at end of file From 51e66b337b1f2f4e6dac8f25bd2f8640ac2a8405 Mon Sep 17 00:00:00 2001 From: Nicholas Lee Date: Mon, 27 May 2024 11:30:53 -0400 Subject: [PATCH 2/2] feat: update plt version 2 with correct version --- populate-scripts/update/65-plt-version-2.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/populate-scripts/update/65-plt-version-2.sql b/populate-scripts/update/65-plt-version-2.sql index 41f835d..f4dd72b 100644 --- a/populate-scripts/update/65-plt-version-2.sql +++ b/populate-scripts/update/65-plt-version-2.sql @@ -8,7 +8,7 @@ UPDATE tasks SET external_url = "", config = '{ "taskConfig": { - "version": 1 + "version": 2 }, "metadata": [ {