Flatten questionnaire ID dict.

labels
junos 2022-03-16 17:38:09 +01:00
parent cb116100dd
commit 1374eda171
2 changed files with 26 additions and 42 deletions

View File

@ -239,7 +239,7 @@ PHONE_ESM:
PROVIDERS: PROVIDERS:
STRAW: STRAW:
COMPUTE: True COMPUTE: True
FEATURES: FEATURES: ["PANAS_positive_affect", "PANAS_negative_affect"]
SRC_SCRIPT: src/features/phone_esm/rapids/main.py SRC_SCRIPT: src/features/phone_esm/rapids/main.py
# See https://www.rapids.science/latest/features/phone-keyboard/ # See https://www.rapids.science/latest/features/phone-keyboard/

View File

@ -19,48 +19,32 @@ ESM_TYPE = {
QUESTIONNAIRE_IDS = { QUESTIONNAIRE_IDS = {
"sleep_quality": 1, "sleep_quality": 1,
"PANAS": { "PANAS_positive_affect": 8,
"positive_affect": 8, "PANAS_negative_affect": 9,
"negative_affect": 9 "JCQ_job_demand": 10,
}, "JCQ_job_control": 11,
"job_content_questionnaire": { "JCQ_supervisor_support": 12,
"job_demand": 10, "JCQ_coworker_support": 13,
"job_control": 11, "PFITS_supervisor": 14,
"supervisor_support": 12, "PFITS_coworkers": 15,
"coworker_support": 13, "UWES_vigor": 16,
}, "UWES_dedication": 17,
"PFITS": { "UWES_absorption": 18,
"supervisor": 14, "COPE_active": 19,
"coworkers": 15 "COPE_support": 20,
}, "COPE_emotions": 21,
"UWES": { "balance_life_work": 22,
"vigor": 16, "balance_work_life": 23,
"dedication": 17, "recovery_experience_detachment": 24,
"absorption": 18 "recovery_experience_relaxation": 25,
},
"COPE": {
"active": 19,
"support": 20,
"emotions": 21
},
"work_life_balance": {
"life_work": 22,
"work_life": 23
},
"recovery_experience": {
"detachment": 24,
"relaxation": 25
},
"symptoms": 26, "symptoms": 26,
"stress_appraisal": { "appraisal_stressfulness_event": 87,
"stressfulness_event": 87, "appraisal_threat": 88,
"threat": 88, "appraisal_challenge": 89,
"challenge": 89, "appraisal_event_time": 90,
"event_time": 90, "appraisal_event_duration": 91,
"event_duration": 91, "appraisal_event_work_related": 92,
"event_work_related": 92, "appraisal_stressfulness_period": 93,
"stressfulness_period": 93,
},
"late_work": 94, "late_work": 94,
"work_hours": 95, "work_hours": 95,
"left_work": 96, "left_work": 96,