How to use isDefined method in root

Best JavaScript code snippet using root

qcov.ts

Source:qcov.ts Github

copy

Full Screen

1import { SurveyGroupItem, SurveySingleItem, Survey } from "survey-engine/lib/data_types"2const Q1: SurveySingleItem = {3 key: 'covidweekly.32',4 version: 1,5 validations: [],6 components: {7 role: "root",8 items: [9 {10 role: "title",11 content: [12 {13 code: "en",14 parts: [15 {16 str: "Have you had any of the following symptoms since your last visit (or in the past weeks, if this is your first visit)?"17 }18 ]19 }20 ]21 },22 {23 key: '1',24 role: "responseGroup",25 items: [26 {27 key: '1',28 role: "multipleChoiceGroup",29 items: [30 {31 key: "141",32 role: "option",33 content: [34 {35 code: "en",36 parts: [37 {38 str: "No symptoms"39 }40 ]41 }42 ],43 },44 {45 key: "142",46 role: "option",47 content: [48 {49 code: "en",50 parts: [51 {52 str: "Fever"53 }54 ]55 }56 ]57 },58 {59 key: "143",60 role: "option",61 content: [62 {63 code: "en",64 parts: [65 {66 str: "Chills"67 }68 ]69 }70 ]71 },72 {73 key: '144',74 role: "option",75 content: [76 {77 code: "en",78 parts: [79 {80 str: "Runny or blocked nose"81 }82 ]83 }84 ]85 },86 {87 key: "145",88 role: "option",89 content: [90 {91 code: "en",92 parts: [93 {94 str: "Sneezing"95 }96 ]97 }98 ]99 },100 {101 key: "146",102 role: "option",103 content: [104 {105 code: "en",106 parts: [107 {108 str: "Sore thoat"109 }110 ]111 }112 ]113 },114 {115 key: "147",116 role: "option",117 content: [118 {119 code: "en",120 parts: [121 {122 str: "Cough"123 }124 ]125 }126 ]127 },128 {129 key: "148",130 role: "option",131 content: [132 {133 code: "en",134 parts: [135 {136 str: "Shortness of breath"137 }138 ]139 }140 ]141 },142 {143 key: "149",144 role: "option",145 content: [146 {147 code: "en",148 parts: [149 {150 str: "Headache"151 }152 ]153 }154 ]155 },156 {157 key: "150",158 role: "option",159 content: [160 {161 code: "en",162 parts: [163 {164 str: "Muscle/joint pain"165 }166 ]167 }168 ]169 },170 {171 key: "151",172 role: "option",173 content: [174 {175 code: "en",176 parts: [177 {178 str: "Chest pain"179 }180 ]181 }182 ]183 },184 {185 key: "152",186 role: "option",187 content: [188 {189 code: "en",190 parts: [191 {192 str: "Feeling tired or exhausted (malaise)"193 }194 ]195 }196 ]197 },198 {199 key: "153",200 role: "option",201 content: [202 {203 code: "en",204 parts: [205 {206 str: "Loss of appetite"207 }208 ]209 }210 ]211 },212 {213 key: "154",214 role: "option",215 content: [216 {217 code: "en",218 parts: [219 {220 str: "Coloured sputum/phlegm"221 }222 ]223 }224 ]225 },226 {227 key: "155",228 role: "option",229 content: [230 {231 code: "en",232 parts: [233 {234 str: "Watery, bloodshot eyes"235 }236 ]237 }238 ]239 },240 {241 key: "156",242 role: "option",243 content: [244 {245 code: "en",246 parts: [247 {248 str: "Nausea"249 }250 ]251 }252 ]253 },254 {255 key: "157",256 role: "option",257 content: [258 {259 code: "en",260 parts: [261 {262 str: "Vomiting"263 }264 ]265 }266 ]267 },268 {269 key: "158",270 role: "option",271 content: [272 {273 code: "en",274 parts: [275 {276 str: "Diarrhoea"277 }278 ]279 }280 ]281 },282 {283 key: "159",284 role: "option",285 content: [286 {287 code: "en",288 parts: [289 {290 str: "Stomach ache"291 }292 ]293 }294 ]295 },296 {297 key: "20",298 role: "option",299 content: [300 {301 code: "en",302 parts: [303 {304 str: "Loss of smell"305 }306 ]307 }308 ]309 },310 {311 key: "21",312 role: "option",313 content: [314 {315 code: "en",316 parts: [317 {318 str: "Loss of taste"319 }320 ]321 }322 ]323 },324 {325 key: "22",326 role: "option",327 content: [328 {329 code: "en",330 parts: [331 {332 str: "Nose bleed"333 }334 ]335 }336 ]337 },338 {339 key: "160",340 role: "option",341 content: [342 {343 code: "en",344 parts: [345 {346 str: "Other"347 }348 ]349 }350 ]351 }352 ]353 }354 ]355 }356 ]357 }358}359const Q2: SurveySingleItem = {360 key: "covidweekly.33",361 condition: {362 name: "and",363 data: [364 // if report any symptoms365 {366 dtype: 'exp',367 exp: {368 name: "or",369 data: [370 {371 dtype: 'exp',372 exp: {373 name: 'isDefined',374 data: [375 {376 dtype: 'exp',377 exp: {378 name: 'getResponseItem',379 data: [380 {381 str: 'covidweekly.32'382 },383 {384 str: '1.1.142'385 }386 ]387 }388 }389 ]390 }391 },392 {393 dtype: 'exp',394 exp: {395 name: 'isDefined',396 data: [397 {398 dtype: 'exp',399 exp: {400 name: 'getResponseItem',401 data: [402 {403 str: 'covidweekly.32'404 },405 {406 str: '1.1.143'407 }408 ]409 }410 }411 ]412 }413 },414 {415 dtype: 'exp',416 exp: {417 name: 'isDefined',418 data: [419 {420 dtype: 'exp',421 exp: {422 name: 'getResponseItem',423 data: [424 {425 str: 'covidweekly.32'426 },427 {428 str: '1.1.144'429 }430 ]431 }432 }433 ]434 }435 },436 {437 dtype: 'exp',438 exp: {439 name: 'isDefined',440 data: [441 {442 dtype: 'exp',443 exp: {444 name: 'getResponseItem',445 data: [446 {447 str: 'covidweekly.32'448 },449 {450 str: '1.1.145'451 }452 ]453 }454 }455 ]456 }457 },458 {459 dtype: 'exp',460 exp: {461 name: 'isDefined',462 data: [463 {464 dtype: 'exp',465 exp: {466 name: 'getResponseItem',467 data: [468 {469 str: 'covidweekly.32'470 },471 {472 str: '1.1.146'473 }474 ]475 }476 }477 ]478 }479 },480 {481 dtype: 'exp',482 exp: {483 name: 'isDefined',484 data: [485 {486 dtype: 'exp',487 exp: {488 name: 'getResponseItem',489 data: [490 {491 str: 'covidweekly.32'492 },493 {494 str: '1.1.147'495 }496 ]497 }498 }499 ]500 }501 },502 {503 dtype: 'exp',504 exp: {505 name: 'isDefined',506 data: [507 {508 dtype: 'exp',509 exp: {510 name: 'getResponseItem',511 data: [512 {513 str: 'covidweekly.32'514 },515 {516 str: '1.1.148'517 }518 ]519 }520 }521 ]522 }523 },524 {525 dtype: 'exp',526 exp: {527 name: 'isDefined',528 data: [529 {530 dtype: 'exp',531 exp: {532 name: 'getResponseItem',533 data: [534 {535 str: 'covidweekly.32'536 },537 {538 str: '1.1.149'539 }540 ]541 }542 }543 ]544 }545 },546 {547 dtype: 'exp',548 exp: {549 name: 'isDefined',550 data: [551 {552 dtype: 'exp',553 exp: {554 name: 'getResponseItem',555 data: [556 {557 str: 'covidweekly.32'558 },559 {560 str: '1.1.150'561 }562 ]563 }564 }565 ]566 }567 },568 {569 dtype: 'exp',570 exp: {571 name: 'isDefined',572 data: [573 {574 dtype: 'exp',575 exp: {576 name: 'getResponseItem',577 data: [578 {579 str: 'covidweekly.32'580 },581 {582 str: '1.1.151'583 }584 ]585 }586 }587 ]588 }589 },590 {591 dtype: 'exp',592 exp: {593 name: 'isDefined',594 data: [595 {596 dtype: 'exp',597 exp: {598 name: 'getResponseItem',599 data: [600 {601 str: 'covidweekly.32'602 },603 {604 str: '1.1.152'605 }606 ]607 }608 }609 ]610 }611 },612 {613 dtype: 'exp',614 exp: {615 name: 'isDefined',616 data: [617 {618 dtype: 'exp',619 exp: {620 name: 'getResponseItem',621 data: [622 {623 str: 'covidweekly.32'624 },625 {626 str: '1.1.153'627 }628 ]629 }630 }631 ]632 }633 },634 {635 dtype: 'exp',636 exp: {637 name: 'isDefined',638 data: [639 {640 dtype: 'exp',641 exp: {642 name: 'getResponseItem',643 data: [644 {645 str: 'covidweekly.32'646 },647 {648 str: '1.1.154'649 }650 ]651 }652 }653 ]654 }655 },656 {657 dtype: 'exp',658 exp: {659 name: 'isDefined',660 data: [661 {662 dtype: 'exp',663 exp: {664 name: 'getResponseItem',665 data: [666 {667 str: 'covidweekly.32'668 },669 {670 str: '1.1.155'671 }672 ]673 }674 }675 ]676 }677 },678 {679 dtype: 'exp',680 exp: {681 name: 'isDefined',682 data: [683 {684 dtype: 'exp',685 exp: {686 name: 'getResponseItem',687 data: [688 {689 str: 'covidweekly.32'690 },691 {692 str: '1.1.156'693 }694 ]695 }696 }697 ]698 }699 },700 {701 dtype: 'exp',702 exp: {703 name: 'isDefined',704 data: [705 {706 dtype: 'exp',707 exp: {708 name: 'getResponseItem',709 data: [710 {711 str: 'covidweekly.32'712 },713 {714 str: '1.1.157'715 }716 ]717 }718 }719 ]720 }721 },722 {723 dtype: 'exp',724 exp: {725 name: 'isDefined',726 data: [727 {728 dtype: 'exp',729 exp: {730 name: 'getResponseItem',731 data: [732 {733 str: 'covidweekly.32'734 },735 {736 str: '1.1.158'737 }738 ]739 }740 }741 ]742 }743 },744 {745 dtype: 'exp',746 exp: {747 name: 'isDefined',748 data: [749 {750 dtype: 'exp',751 exp: {752 name: 'getResponseItem',753 data: [754 {755 str: 'covidweekly.32'756 },757 {758 str: '1.1.159'759 }760 ]761 }762 }763 ]764 }765 },766 {767 dtype: 'exp',768 exp: {769 name: 'isDefined',770 data: [771 {772 dtype: 'exp',773 exp: {774 name: 'getResponseItem',775 data: [776 {777 str: 'covidweekly.32'778 },779 {780 str: '1.1.160'781 }782 ]783 }784 }785 ]786 }787 },788 ]789 }790 },791 // participant STILL ILL when they last completed the covidweekly survey (i.e. they said “I am still ill” in response to covidweekly Q4 below last time?)792 {793 dtype: "exp",794 exp: {795 name: "isDefined",796 data: [797 {798 dtype: "exp",799 exp: {800 name: "getNestedObjectByKey",801 data: [802 {803 dtype: "exp",804 exp: {805 name: "getAttribute",806 data: [807 {808 dtype: "exp",809 exp: {810 name: "getLastFromSurveyItemResponses",811 data: [812 {813 dtype: "exp",814 exp: {815 name: "getPreviousResponses",816 data: [817 {818 str: "covidweekly.36"819 }820 ]821 }822 }823 ]824 }825 },826 {827 str: "response"828 }829 ]830 }831 },832 {833 str: "1.1.169"834 }835 ]836 }837 }838 ]839 }840 },841 // have fewer than 15 days elapsed since they last completed the covidweekly Survey842 {843 dtype: "exp",844 exp: {845 name: "lt",846 data: [847 {848 dtype: "exp",849 exp: {850 name: "getSecondsSince",851 data: [852 {853 dtype: "exp",854 exp: {855 name: "getAttribute",856 data: [857 {858 dtype: "exp",859 exp: {860 name: "getLastFromSurveyResponses",861 data: [862 {863 str: "covidweekly"864 }865 ]866 }867 },868 {869 str: "submittedAt"870 }871 ]872 }873 }874 ]875 }876 },877 {878 dtype: "num",879 num: 1296000,880 }881 ]882 }883 },884 // fewer than 15 days have elapsed since their previous date of symptom onset885 {886 dtype: "exp",887 exp: {888 name: "lt",889 data: [890 {891 dtype: "exp",892 exp: {893 name: "getSecondsSince",894 data: [895 {896 dtype: "exp",897 exp: {898 name: "getAttribute",899 data: [900 {901 dtype: "exp",902 exp: {903 name: "getNestedObjectByKey",904 data: [905 {906 dtype: "exp",907 exp: {908 name: "getAttribute",909 data: [910 {911 dtype: "exp",912 exp: {913 name: "getLastFromSurveyItemResponses",914 data: [915 {916 dtype: "exp",917 exp: {918 name: "filterResponsesByIncludesKeys",919 data: [920 {921 dtype: "exp",922 exp: {923 name: "getPreviousResponses",924 data: [925 {926 str: "covidweekly.35"927 }928 ]929 }930 },931 {932 str: "1.1"933 },934 {935 str: "169"936 }937 ]938 }939 }940 ]941 }942 },943 {944 str: "response"945 }946 ]947 }948 },949 {950 str: "1.1.169"951 }952 ]953 }954 },955 {956 str: "value"957 }958 ]959 }960 }961 ]962 }963 },964 {965 dtype: "num",966 num: 1296000,967 }968 ]969 }970 },971 ]972 },973 follows: [974 "covidweekly.32",975 ],976 version: 1,977 validations: [],978 components: {979 role: "root",980 items: [981 {982 role: "title",983 content: [984 {985 code: "en",986 parts: [987 {988 str: "On your last visit, you reported that you were still ill. Are the symptoms you report today part of the same bout of illness?"989 }990 ]991 }992 ]993 },994 {995 key: "1",996 role: "responseGroup",997 items: [998 {999 key: "1",1000 role: "singleChoiceGroup",1001 items: [1002 {1003 key: "161",1004 role: "option",1005 content: [1006 {1007 code: "en",1008 parts: [1009 {1010 str: "Yes"1011 }1012 ]1013 }1014 ]1015 },1016 {1017 key: "162",1018 role: "option",1019 content: [1020 {1021 code: "en",1022 parts: [1023 {1024 str: "No"1025 }1026 ]1027 }1028 ]1029 },1030 {1031 key: "163",1032 role: "option",1033 content: [1034 {1035 code: "en",1036 parts: [1037 {1038 str: "I don't know/can't remember"1039 }1040 ]1041 }1042 ]1043 }1044 ]1045 }1046 ]1047 }1048 ]1049 }1050}1051const Qcov1: SurveySingleItem = {1052 key: "covidweekly.Qcov1",1053 condition: {1054 name: "and",1055 data: [1056 // if report any symptoms1057 {1058 dtype: 'exp',1059 exp: {1060 name: "or",1061 data: [1062 {1063 dtype: 'exp',1064 exp: {1065 name: 'isDefined',1066 data: [1067 {1068 dtype: 'exp',1069 exp: {1070 name: 'getResponseItem',1071 data: [1072 {1073 str: 'covidweekly.32'1074 },1075 {1076 str: '1.1.142'1077 }1078 ]1079 }1080 }1081 ]1082 }1083 },1084 {1085 dtype: 'exp',1086 exp: {1087 name: 'isDefined',1088 data: [1089 {1090 dtype: 'exp',1091 exp: {1092 name: 'getResponseItem',1093 data: [1094 {1095 str: 'covidweekly.32'1096 },1097 {1098 str: '1.1.143'1099 }1100 ]1101 }1102 }1103 ]1104 }1105 },1106 {1107 dtype: 'exp',1108 exp: {1109 name: 'isDefined',1110 data: [1111 {1112 dtype: 'exp',1113 exp: {1114 name: 'getResponseItem',1115 data: [1116 {1117 str: 'covidweekly.32'1118 },1119 {1120 str: '1.1.144'1121 }1122 ]1123 }1124 }1125 ]1126 }1127 },1128 {1129 dtype: 'exp',1130 exp: {1131 name: 'isDefined',1132 data: [1133 {1134 dtype: 'exp',1135 exp: {1136 name: 'getResponseItem',1137 data: [1138 {1139 str: 'covidweekly.32'1140 },1141 {1142 str: '1.1.145'1143 }1144 ]1145 }1146 }1147 ]1148 }1149 },1150 {1151 dtype: 'exp',1152 exp: {1153 name: 'isDefined',1154 data: [1155 {1156 dtype: 'exp',1157 exp: {1158 name: 'getResponseItem',1159 data: [1160 {1161 str: 'covidweekly.32'1162 },1163 {1164 str: '1.1.146'1165 }1166 ]1167 }1168 }1169 ]1170 }1171 },1172 {1173 dtype: 'exp',1174 exp: {1175 name: 'isDefined',1176 data: [1177 {1178 dtype: 'exp',1179 exp: {1180 name: 'getResponseItem',1181 data: [1182 {1183 str: 'covidweekly.32'1184 },1185 {1186 str: '1.1.147'1187 }1188 ]1189 }1190 }1191 ]1192 }1193 },1194 {1195 dtype: 'exp',1196 exp: {1197 name: 'isDefined',1198 data: [1199 {1200 dtype: 'exp',1201 exp: {1202 name: 'getResponseItem',1203 data: [1204 {1205 str: 'covidweekly.32'1206 },1207 {1208 str: '1.1.148'1209 }1210 ]1211 }1212 }1213 ]1214 }1215 },1216 {1217 dtype: 'exp',1218 exp: {1219 name: 'isDefined',1220 data: [1221 {1222 dtype: 'exp',1223 exp: {1224 name: 'getResponseItem',1225 data: [1226 {1227 str: 'covidweekly.32'1228 },1229 {1230 str: '1.1.149'1231 }1232 ]1233 }1234 }1235 ]1236 }1237 },1238 {1239 dtype: 'exp',1240 exp: {1241 name: 'isDefined',1242 data: [1243 {1244 dtype: 'exp',1245 exp: {1246 name: 'getResponseItem',1247 data: [1248 {1249 str: 'covidweekly.32'1250 },1251 {1252 str: '1.1.150'1253 }1254 ]1255 }1256 }1257 ]1258 }1259 },1260 {1261 dtype: 'exp',1262 exp: {1263 name: 'isDefined',1264 data: [1265 {1266 dtype: 'exp',1267 exp: {1268 name: 'getResponseItem',1269 data: [1270 {1271 str: 'covidweekly.32'1272 },1273 {1274 str: '1.1.151'1275 }1276 ]1277 }1278 }1279 ]1280 }1281 },1282 {1283 dtype: 'exp',1284 exp: {1285 name: 'isDefined',1286 data: [1287 {1288 dtype: 'exp',1289 exp: {1290 name: 'getResponseItem',1291 data: [1292 {1293 str: 'covidweekly.32'1294 },1295 {1296 str: '1.1.152'1297 }1298 ]1299 }1300 }1301 ]1302 }1303 },1304 {1305 dtype: 'exp',1306 exp: {1307 name: 'isDefined',1308 data: [1309 {1310 dtype: 'exp',1311 exp: {1312 name: 'getResponseItem',1313 data: [1314 {1315 str: 'covidweekly.32'1316 },1317 {1318 str: '1.1.153'1319 }1320 ]1321 }1322 }1323 ]1324 }1325 },1326 {1327 dtype: 'exp',1328 exp: {1329 name: 'isDefined',1330 data: [1331 {1332 dtype: 'exp',1333 exp: {1334 name: 'getResponseItem',1335 data: [1336 {1337 str: 'covidweekly.32'1338 },1339 {1340 str: '1.1.154'1341 }1342 ]1343 }1344 }1345 ]1346 }1347 },1348 {1349 dtype: 'exp',1350 exp: {1351 name: 'isDefined',1352 data: [1353 {1354 dtype: 'exp',1355 exp: {1356 name: 'getResponseItem',1357 data: [1358 {1359 str: 'covidweekly.32'1360 },1361 {1362 str: '1.1.155'1363 }1364 ]1365 }1366 }1367 ]1368 }1369 },1370 {1371 dtype: 'exp',1372 exp: {1373 name: 'isDefined',1374 data: [1375 {1376 dtype: 'exp',1377 exp: {1378 name: 'getResponseItem',1379 data: [1380 {1381 str: 'covidweekly.32'1382 },1383 {1384 str: '1.1.156'1385 }1386 ]1387 }1388 }1389 ]1390 }1391 },1392 {1393 dtype: 'exp',1394 exp: {1395 name: 'isDefined',1396 data: [1397 {1398 dtype: 'exp',1399 exp: {1400 name: 'getResponseItem',1401 data: [1402 {1403 str: 'covidweekly.32'1404 },1405 {1406 str: '1.1.157'1407 }1408 ]1409 }1410 }1411 ]1412 }1413 },1414 {1415 dtype: 'exp',1416 exp: {1417 name: 'isDefined',1418 data: [1419 {1420 dtype: 'exp',1421 exp: {1422 name: 'getResponseItem',1423 data: [1424 {1425 str: 'covidweekly.32'1426 },1427 {1428 str: '1.1.158'1429 }1430 ]1431 }1432 }1433 ]1434 }1435 },1436 {1437 dtype: 'exp',1438 exp: {1439 name: 'isDefined',1440 data: [1441 {1442 dtype: 'exp',1443 exp: {1444 name: 'getResponseItem',1445 data: [1446 {1447 str: 'covidweekly.32'1448 },1449 {1450 str: '1.1.159'1451 }1452 ]1453 }1454 }1455 ]1456 }1457 },1458 {1459 dtype: 'exp',1460 exp: {1461 name: 'isDefined',1462 data: [1463 {1464 dtype: 'exp',1465 exp: {1466 name: 'getResponseItem',1467 data: [1468 {1469 str: 'covidweekly.32'1470 },1471 {1472 str: '1.1.160'1473 }1474 ]1475 }1476 }1477 ]1478 }1479 },1480 ]1481 }1482 },1483 // answers to Q2 covidweekly other than « Yes »1484 {1485 dtype: "exp",1486 exp: {1487 name: "not",1488 data: [1489 {1490 dtype: 'exp',1491 exp: {1492 name: 'isDefined',1493 data: [1494 {1495 dtype: 'exp',1496 exp: {1497 name: 'getResponseItem',1498 data: [1499 {1500 str: 'covidweekly.33'1501 },1502 {1503 str: '1.1.161'1504 }1505 ]1506 }1507 }1508 ]1509 }1510 }1511 ]1512 }1513 }1514 ]1515 },1516 version: 1,1517 validations: [],1518 components: {1519 role: "root",1520 items: [1521 {1522 role: "title",1523 content: [1524 {1525 code: "en",1526 parts: [1527 {1528 str: "In the 14 days before your symptoms started, did you travel to a foreign country?"1529 }1530 ]1531 }1532 ]1533 },1534 // {1535 // role: 'text',1536 // style: [{ key: 'variant', value: 'body2' }],1537 // content: [1538 // {1539 // code: 'en',1540 // parts: [1541 // {1542 // str: 'China (mainland China, Hong Kong, Macao), Singapore, South Korea, Iran, Italy (regions of Lombardy, Venetia, Emilia-Romagna)'1543 // },1544 // ]1545 // },1546 // ]1547 // },1548 {1549 key: "1",1550 role: "responseGroup",1551 items: [1552 {1553 key: "1",1554 role: "singleChoiceGroup",1555 items: [1556 {1557 key: "1",1558 role: "option",1559 content: [1560 {1561 code: "en",1562 parts: [1563 {1564 str: "Yes"1565 }1566 ]1567 }1568 ]1569 },1570 {1571 key: "0",1572 role: "option",1573 content: [1574 {1575 code: "en",1576 parts: [1577 {1578 str: "No"1579 }1580 ]1581 }1582 ]1583 },1584 {1585 key: "2",1586 role: "option",1587 content: [1588 {1589 code: "en",1590 parts: [1591 {1592 str: "I don't know"1593 }1594 ]1595 }1596 ]1597 },1598 ]1599 }1600 ]1601 }1602 ]1603 }1604}1605const Qcov1b: SurveySingleItem = {1606 key: "covidweekly.Qcov1b",1607 condition: {1608 name: "and",1609 data: [1610 // « yes » to Qcov11611 {1612 dtype: 'exp',1613 exp: {1614 name: 'isDefined',1615 data: [1616 {1617 dtype: 'exp',1618 exp: {1619 name: 'getResponseItem',1620 data: [1621 {1622 str: 'covidweekly.Qcov1'1623 },1624 {1625 str: '1.1.1'1626 }1627 ]1628 }1629 }1630 ]1631 }1632 }1633 ]1634 },1635 version: 1,1636 validations: [],1637 components: {1638 role: "root",1639 items: [1640 {1641 role: "title",1642 content: [1643 {1644 code: "en",1645 parts: [1646 {1647 str: "In which of these areas at risk of infection with the new coronavirus did you go within 14 days before the onset of your symptoms (Several answers possible)?"1648 }1649 ]1650 }1651 ]1652 },1653 {1654 key: "1",1655 role: "responseGroup",1656 items: [1657 {1658 key: "1",1659 role: "multipleChoiceGroup",1660 items: [1661 {1662 key: "1",1663 role: "option",1664 content: [1665 {1666 code: "en",1667 parts: [1668 {1669 str: "China (mainland China, Hong Kong, Macao)"1670 }1671 ]1672 }1673 ]1674 },1675 {1676 key: "2",1677 role: "option",1678 content: [1679 {1680 code: "en",1681 parts: [1682 {1683 str: "Singapore"1684 }1685 ]1686 }1687 ]1688 },1689 {1690 key: "3",1691 role: "option",1692 content: [1693 {1694 code: "en",1695 parts: [1696 {1697 str: "South Korea"1698 }1699 ]1700 }1701 ]1702 },1703 {1704 key: "4",1705 role: "option",1706 content: [1707 {1708 code: "en",1709 parts: [1710 {1711 str: "Iran"1712 }1713 ]1714 }1715 ]1716 },1717 {1718 key: "5",1719 role: "option",1720 content: [1721 {1722 code: "en",1723 parts: [1724 {1725 str: "Italy (regions of Venetia, Lombardy, Emilia-Romagna)"1726 }1727 ]1728 }1729 ]1730 },1731 ]1732 }1733 ]1734 }1735 ]1736 }1737}1738const Qcov2: SurveySingleItem = {1739 key: "covidweekly.Qcov2",1740 version: 1,1741 validations: [],1742 components: {1743 role: "root",1744 items: [1745 {1746 role: "title",1747 content: [1748 {1749 code: "en",1750 parts: [1751 {1752 str: "In the 14 days before the onset of your symptoms, have you been in contact with one or more people who have stayed in an area at risk of infection with the new coronavirus? (See the list of areas at risk below)"1753 }1754 ]1755 }1756 ]1757 },1758 {1759 role: 'text',1760 style: [{ key: 'variant', value: 'body2' }],1761 content: [1762 {1763 code: 'en',1764 parts: [1765 {1766 str: 'China (mainland China, Hong Kong, Macao), Singapore, South Korea, Iran, Italy (regions of Lombardy, Venetia, Emilia-Romagna)'1767 },1768 ]1769 },1770 ]1771 },1772 {1773 key: "1",1774 role: "responseGroup",1775 items: [1776 {1777 key: "1",1778 role: "singleChoiceGroup",1779 items: [1780 {1781 key: "1",1782 role: "option",1783 content: [1784 {1785 code: "en",1786 parts: [1787 {1788 str: "Yes"1789 }1790 ]1791 }1792 ]1793 },1794 {1795 key: "0",1796 role: "option",1797 content: [1798 {1799 code: "en",1800 parts: [1801 {1802 str: "No"1803 }1804 ]1805 }1806 ]1807 },1808 {1809 key: "2",1810 role: "option",1811 content: [1812 {1813 code: "en",1814 parts: [1815 {1816 str: "I don't know"1817 }1818 ]1819 }1820 ]1821 },1822 ]1823 }1824 ]1825 }1826 ]1827 }1828}1829const Qcov2b: SurveySingleItem = {1830 key: "covidweekly.Qcov2b",1831 version: 1,1832 validations: [],1833 components: {1834 role: "root",1835 items: [1836 {1837 role: "title",1838 content: [1839 {1840 code: "en",1841 parts: [1842 {1843 str: "In which of these areas at risk of infection with the new coronavirus these people have been? (Select all the relevant answers)?"1844 }1845 ]1846 }1847 ]1848 },1849 {1850 key: "1",1851 role: "responseGroup",1852 items: [1853 {1854 key: "1",1855 role: "multipleChoiceGroup",1856 items: [1857 {1858 key: "1",1859 role: "option",1860 content: [1861 {1862 code: "en",1863 parts: [1864 {1865 str: "China (mainland China, Hong Kong, Macao)"1866 }1867 ]1868 }1869 ]1870 },1871 {1872 key: "2",1873 role: "option",1874 content: [1875 {1876 code: "en",1877 parts: [1878 {1879 str: "Singapore"1880 }1881 ]1882 }1883 ]1884 },1885 {1886 key: "3",1887 role: "option",1888 content: [1889 {1890 code: "en",1891 parts: [1892 {1893 str: "South Korea"1894 }1895 ]1896 }1897 ]1898 },1899 {1900 key: "4",1901 role: "option",1902 content: [1903 {1904 code: "en",1905 parts: [1906 {1907 str: "Iran"1908 }1909 ]1910 }1911 ]1912 },1913 {1914 key: "5",1915 role: "option",1916 content: [1917 {1918 code: "en",1919 parts: [1920 {1921 str: "Italy (regions of Venetia, Lombardy, Emilia-Romagna)"1922 }1923 ]1924 }1925 ]1926 },1927 ]1928 }1929 ]1930 }1931 ]1932 }1933}1934const Qcov3: SurveySingleItem = {1935 key: "covidweekly.Qcov3",1936 condition: {1937 name: "and",1938 data: [1939 {1940 // if report any symptoms1941 dtype: "exp",1942 exp: {1943 name: "or",1944 data: [1945 {1946 dtype: 'exp',1947 exp: {1948 name: 'isDefined',1949 data: [1950 {1951 dtype: 'exp',1952 exp: {1953 name: 'getResponseItem',1954 data: [1955 {1956 str: 'covidweekly.32'1957 },1958 {1959 str: '1.1.142'1960 }1961 ]1962 }1963 }1964 ]1965 }1966 },1967 {1968 dtype: 'exp',1969 exp: {1970 name: 'isDefined',1971 data: [1972 {1973 dtype: 'exp',1974 exp: {1975 name: 'getResponseItem',1976 data: [1977 {1978 str: 'covidweekly.32'1979 },1980 {1981 str: '1.1.143'1982 }1983 ]1984 }1985 }1986 ]1987 }1988 },1989 {1990 dtype: 'exp',1991 exp: {1992 name: 'isDefined',1993 data: [1994 {1995 dtype: 'exp',1996 exp: {1997 name: 'getResponseItem',1998 data: [1999 {2000 str: 'covidweekly.32'2001 },2002 {2003 str: '1.1.144'2004 }2005 ]2006 }2007 }2008 ]2009 }2010 },2011 {2012 dtype: 'exp',2013 exp: {2014 name: 'isDefined',2015 data: [2016 {2017 dtype: 'exp',2018 exp: {2019 name: 'getResponseItem',2020 data: [2021 {2022 str: 'covidweekly.32'2023 },2024 {2025 str: '1.1.145'2026 }2027 ]2028 }2029 }2030 ]2031 }2032 },2033 {2034 dtype: 'exp',2035 exp: {2036 name: 'isDefined',2037 data: [2038 {2039 dtype: 'exp',2040 exp: {2041 name: 'getResponseItem',2042 data: [2043 {2044 str: 'covidweekly.32'2045 },2046 {2047 str: '1.1.146'2048 }2049 ]2050 }2051 }2052 ]2053 }2054 },2055 {2056 dtype: 'exp',2057 exp: {2058 name: 'isDefined',2059 data: [2060 {2061 dtype: 'exp',2062 exp: {2063 name: 'getResponseItem',2064 data: [2065 {2066 str: 'covidweekly.32'2067 },2068 {2069 str: '1.1.147'2070 }2071 ]2072 }2073 }2074 ]2075 }2076 },2077 {2078 dtype: 'exp',2079 exp: {2080 name: 'isDefined',2081 data: [2082 {2083 dtype: 'exp',2084 exp: {2085 name: 'getResponseItem',2086 data: [2087 {2088 str: 'covidweekly.32'2089 },2090 {2091 str: '1.1.148'2092 }2093 ]2094 }2095 }2096 ]2097 }2098 },2099 {2100 dtype: 'exp',2101 exp: {2102 name: 'isDefined',2103 data: [2104 {2105 dtype: 'exp',2106 exp: {2107 name: 'getResponseItem',2108 data: [2109 {2110 str: 'covidweekly.32'2111 },2112 {2113 str: '1.1.149'2114 }2115 ]2116 }2117 }2118 ]2119 }2120 },2121 {2122 dtype: 'exp',2123 exp: {2124 name: 'isDefined',2125 data: [2126 {2127 dtype: 'exp',2128 exp: {2129 name: 'getResponseItem',2130 data: [2131 {2132 str: 'covidweekly.32'2133 },2134 {2135 str: '1.1.150'2136 }2137 ]2138 }2139 }2140 ]2141 }2142 },2143 {2144 dtype: 'exp',2145 exp: {2146 name: 'isDefined',2147 data: [2148 {2149 dtype: 'exp',2150 exp: {2151 name: 'getResponseItem',2152 data: [2153 {2154 str: 'covidweekly.32'2155 },2156 {2157 str: '1.1.151'2158 }2159 ]2160 }2161 }2162 ]2163 }2164 },2165 {2166 dtype: 'exp',2167 exp: {2168 name: 'isDefined',2169 data: [2170 {2171 dtype: 'exp',2172 exp: {2173 name: 'getResponseItem',2174 data: [2175 {2176 str: 'covidweekly.32'2177 },2178 {2179 str: '1.1.152'2180 }2181 ]2182 }2183 }2184 ]2185 }2186 },2187 {2188 dtype: 'exp',2189 exp: {2190 name: 'isDefined',2191 data: [2192 {2193 dtype: 'exp',2194 exp: {2195 name: 'getResponseItem',2196 data: [2197 {2198 str: 'covidweekly.32'2199 },2200 {2201 str: '1.1.153'2202 }2203 ]2204 }2205 }2206 ]2207 }2208 },2209 {2210 dtype: 'exp',2211 exp: {2212 name: 'isDefined',2213 data: [2214 {2215 dtype: 'exp',2216 exp: {2217 name: 'getResponseItem',2218 data: [2219 {2220 str: 'covidweekly.32'2221 },2222 {2223 str: '1.1.154'2224 }2225 ]2226 }2227 }2228 ]2229 }2230 },2231 {2232 dtype: 'exp',2233 exp: {2234 name: 'isDefined',2235 data: [2236 {2237 dtype: 'exp',2238 exp: {2239 name: 'getResponseItem',2240 data: [2241 {2242 str: 'covidweekly.32'2243 },2244 {2245 str: '1.1.155'2246 }2247 ]2248 }2249 }2250 ]2251 }2252 },2253 {2254 dtype: 'exp',2255 exp: {2256 name: 'isDefined',2257 data: [2258 {2259 dtype: 'exp',2260 exp: {2261 name: 'getResponseItem',2262 data: [2263 {2264 str: 'covidweekly.32'2265 },2266 {2267 str: '1.1.156'2268 }2269 ]2270 }2271 }2272 ]2273 }2274 },2275 {2276 dtype: 'exp',2277 exp: {2278 name: 'isDefined',2279 data: [2280 {2281 dtype: 'exp',2282 exp: {2283 name: 'getResponseItem',2284 data: [2285 {2286 str: 'covidweekly.32'2287 },2288 {2289 str: '1.1.157'2290 }2291 ]2292 }2293 }2294 ]2295 }2296 },2297 {2298 dtype: 'exp',2299 exp: {2300 name: 'isDefined',2301 data: [2302 {2303 dtype: 'exp',2304 exp: {2305 name: 'getResponseItem',2306 data: [2307 {2308 str: 'covidweekly.32'2309 },2310 {2311 str: '1.1.158'2312 }2313 ]2314 }2315 }2316 ]2317 }2318 },2319 {2320 dtype: 'exp',2321 exp: {2322 name: 'isDefined',2323 data: [2324 {2325 dtype: 'exp',2326 exp: {2327 name: 'getResponseItem',2328 data: [2329 {2330 str: 'covidweekly.32'2331 },2332 {2333 str: '1.1.159'2334 }2335 ]2336 }2337 }2338 ]2339 }2340 },2341 {2342 dtype: 'exp',2343 exp: {2344 name: 'isDefined',2345 data: [2346 {2347 dtype: 'exp',2348 exp: {2349 name: 'getResponseItem',2350 data: [2351 {2352 str: 'covidweekly.32'2353 },2354 {2355 str: '1.1.160'2356 }2357 ]2358 }2359 }2360 ]2361 }2362 },2363 ]2364 }2365 },2366 // answers to Q2 covidweekly other than « Yes »2367 {2368 dtype: "exp",2369 exp: {2370 name: "not",2371 data: [2372 {2373 dtype: 'exp',2374 exp: {2375 name: 'isDefined',2376 data: [2377 {2378 dtype: 'exp',2379 exp: {2380 name: 'getResponseItem',2381 data: [2382 {2383 str: 'covidweekly.33'2384 },2385 {2386 str: '1.1.161'2387 }2388 ]2389 }2390 }2391 ]2392 }2393 },2394 ]2395 }2396 }2397 ]2398 },2399 follows: [2400 "covidweekly.32",2401 ],2402 version: 1,2403 validations: [],2404 components: {2405 role: "root",2406 items: [2407 {2408 role: "title",2409 content: [2410 {2411 code: "en",2412 parts: [2413 {2414 str: "In the 14 days before your symptoms started, have you been in close contact with someone for whom tests have confirmed that they have Covid-19?"2415 }2416 ]2417 }2418 ]2419 },2420 {2421 key: "1",2422 role: "responseGroup",2423 items: [2424 {2425 key: "1",2426 role: "singleChoiceGroup",2427 items: [2428 {2429 key: "1",2430 role: "option",2431 content: [2432 {2433 code: "en",2434 parts: [2435 {2436 str: "Yes"2437 }2438 ]2439 }2440 ]2441 },2442 {2443 key: "0",2444 role: "option",2445 content: [2446 {2447 code: "en",2448 parts: [2449 {2450 str: "No"2451 }2452 ]2453 }2454 ]2455 },2456 {2457 key: "2",2458 role: "option",2459 content: [2460 {2461 code: "en",2462 parts: [2463 {2464 str: "I don't know"2465 }2466 ]2467 }2468 ]2469 },2470 ]2471 }2472 ]2473 }2474 ]2475 }2476}2477const Qcov3b: SurveySingleItem = {2478 key: "covidweekly.Qcov3b",2479 // “yes” to Qcov32480 condition: {2481 name: 'isDefined',2482 data: [2483 {2484 dtype: 'exp',2485 exp: {2486 name: 'getResponseItem',2487 data: [2488 {2489 str: 'covidweekly.Qcov3'2490 },2491 {2492 str: '1.1.1'2493 }2494 ]2495 }2496 }2497 ]2498 },2499 follows: [2500 "covidweekly.Qcov3",2501 ],2502 version: 1,2503 validations: [],2504 components: {2505 role: "root",2506 items: [2507 {2508 role: "title",2509 content: [2510 {2511 code: "en",2512 parts: [2513 {2514 str: "Do you live in the same household as that person?"2515 }2516 ]2517 }2518 ]2519 },2520 {2521 key: "1",2522 role: "responseGroup",2523 items: [2524 {2525 key: "1",2526 role: "singleChoiceGroup",2527 items: [2528 {2529 key: "1",2530 role: "option",2531 content: [2532 {2533 code: "en",2534 parts: [2535 {2536 str: "Yes"2537 }2538 ]2539 }2540 ]2541 },2542 {2543 key: "0",2544 role: "option",2545 content: [2546 {2547 code: "en",2548 parts: [2549 {2550 str: "No"2551 }2552 ]2553 }2554 ]2555 },2556 {2557 key: "2",2558 role: "option",2559 content: [2560 {2561 code: "en",2562 parts: [2563 {2564 str: "I don't know"2565 }2566 ]2567 }2568 ]2569 },2570 ]2571 }2572 ]2573 }2574 ]2575 }2576}2577const Qcov8: SurveySingleItem = {2578 key: "covidweekly.Qcov8",2579 // if report any symptoms2580 condition: {2581 name: "or",2582 data: [2583 {2584 dtype: 'exp',2585 exp: {2586 name: 'isDefined',2587 data: [2588 {2589 dtype: 'exp',2590 exp: {2591 name: 'getResponseItem',2592 data: [2593 {2594 str: 'covidweekly.32'2595 },2596 {2597 str: '1.1.142'2598 }2599 ]2600 }2601 }2602 ]2603 }2604 },2605 {2606 dtype: 'exp',2607 exp: {2608 name: 'isDefined',2609 data: [2610 {2611 dtype: 'exp',2612 exp: {2613 name: 'getResponseItem',2614 data: [2615 {2616 str: 'covidweekly.32'2617 },2618 {2619 str: '1.1.143'2620 }2621 ]2622 }2623 }2624 ]2625 }2626 },2627 {2628 dtype: 'exp',2629 exp: {2630 name: 'isDefined',2631 data: [2632 {2633 dtype: 'exp',2634 exp: {2635 name: 'getResponseItem',2636 data: [2637 {2638 str: 'covidweekly.32'2639 },2640 {2641 str: '1.1.144'2642 }2643 ]2644 }2645 }2646 ]2647 }2648 },2649 {2650 dtype: 'exp',2651 exp: {2652 name: 'isDefined',2653 data: [2654 {2655 dtype: 'exp',2656 exp: {2657 name: 'getResponseItem',2658 data: [2659 {2660 str: 'covidweekly.32'2661 },2662 {2663 str: '1.1.145'2664 }2665 ]2666 }2667 }2668 ]2669 }2670 },2671 {2672 dtype: 'exp',2673 exp: {2674 name: 'isDefined',2675 data: [2676 {2677 dtype: 'exp',2678 exp: {2679 name: 'getResponseItem',2680 data: [2681 {2682 str: 'covidweekly.32'2683 },2684 {2685 str: '1.1.146'2686 }2687 ]2688 }2689 }2690 ]2691 }2692 },2693 {2694 dtype: 'exp',2695 exp: {2696 name: 'isDefined',2697 data: [2698 {2699 dtype: 'exp',2700 exp: {2701 name: 'getResponseItem',2702 data: [2703 {2704 str: 'covidweekly.32'2705 },2706 {2707 str: '1.1.147'2708 }2709 ]2710 }2711 }2712 ]2713 }2714 },2715 {2716 dtype: 'exp',2717 exp: {2718 name: 'isDefined',2719 data: [2720 {2721 dtype: 'exp',2722 exp: {2723 name: 'getResponseItem',2724 data: [2725 {2726 str: 'covidweekly.32'2727 },2728 {2729 str: '1.1.148'2730 }2731 ]2732 }2733 }2734 ]2735 }2736 },2737 {2738 dtype: 'exp',2739 exp: {2740 name: 'isDefined',2741 data: [2742 {2743 dtype: 'exp',2744 exp: {2745 name: 'getResponseItem',2746 data: [2747 {2748 str: 'covidweekly.32'2749 },2750 {2751 str: '1.1.149'2752 }2753 ]2754 }2755 }2756 ]2757 }2758 },2759 {2760 dtype: 'exp',2761 exp: {2762 name: 'isDefined',2763 data: [2764 {2765 dtype: 'exp',2766 exp: {2767 name: 'getResponseItem',2768 data: [2769 {2770 str: 'covidweekly.32'2771 },2772 {2773 str: '1.1.150'2774 }2775 ]2776 }2777 }2778 ]2779 }2780 },2781 {2782 dtype: 'exp',2783 exp: {2784 name: 'isDefined',2785 data: [2786 {2787 dtype: 'exp',2788 exp: {2789 name: 'getResponseItem',2790 data: [2791 {2792 str: 'covidweekly.32'2793 },2794 {2795 str: '1.1.151'2796 }2797 ]2798 }2799 }2800 ]2801 }2802 },2803 {2804 dtype: 'exp',2805 exp: {2806 name: 'isDefined',2807 data: [2808 {2809 dtype: 'exp',2810 exp: {2811 name: 'getResponseItem',2812 data: [2813 {2814 str: 'covidweekly.32'2815 },2816 {2817 str: '1.1.152'2818 }2819 ]2820 }2821 }2822 ]2823 }2824 },2825 {2826 dtype: 'exp',2827 exp: {2828 name: 'isDefined',2829 data: [2830 {2831 dtype: 'exp',2832 exp: {2833 name: 'getResponseItem',2834 data: [2835 {2836 str: 'covidweekly.32'2837 },2838 {2839 str: '1.1.153'2840 }2841 ]2842 }2843 }2844 ]2845 }2846 },2847 {2848 dtype: 'exp',2849 exp: {2850 name: 'isDefined',2851 data: [2852 {2853 dtype: 'exp',2854 exp: {2855 name: 'getResponseItem',2856 data: [2857 {2858 str: 'covidweekly.32'2859 },2860 {2861 str: '1.1.154'2862 }2863 ]2864 }2865 }2866 ]2867 }2868 },2869 {2870 dtype: 'exp',2871 exp: {2872 name: 'isDefined',2873 data: [2874 {2875 dtype: 'exp',2876 exp: {2877 name: 'getResponseItem',2878 data: [2879 {2880 str: 'covidweekly.32'2881 },2882 {2883 str: '1.1.155'2884 }2885 ]2886 }2887 }2888 ]2889 }2890 },2891 {2892 dtype: 'exp',2893 exp: {2894 name: 'isDefined',2895 data: [2896 {2897 dtype: 'exp',2898 exp: {2899 name: 'getResponseItem',2900 data: [2901 {2902 str: 'covidweekly.32'2903 },2904 {2905 str: '1.1.156'2906 }2907 ]2908 }2909 }2910 ]2911 }2912 },2913 {2914 dtype: 'exp',2915 exp: {2916 name: 'isDefined',2917 data: [2918 {2919 dtype: 'exp',2920 exp: {2921 name: 'getResponseItem',2922 data: [2923 {2924 str: 'covidweekly.32'2925 },2926 {2927 str: '1.1.157'2928 }2929 ]2930 }2931 }2932 ]2933 }2934 },2935 {2936 dtype: 'exp',2937 exp: {2938 name: 'isDefined',2939 data: [2940 {2941 dtype: 'exp',2942 exp: {2943 name: 'getResponseItem',2944 data: [2945 {2946 str: 'covidweekly.32'2947 },2948 {2949 str: '1.1.158'2950 }2951 ]2952 }2953 }2954 ]2955 }2956 },2957 {2958 dtype: 'exp',2959 exp: {2960 name: 'isDefined',2961 data: [2962 {2963 dtype: 'exp',2964 exp: {2965 name: 'getResponseItem',2966 data: [2967 {2968 str: 'covidweekly.32'2969 },2970 {2971 str: '1.1.159'2972 }2973 ]2974 }2975 }2976 ]2977 }2978 },2979 {2980 dtype: 'exp',2981 exp: {2982 name: 'isDefined',2983 data: [2984 {2985 dtype: 'exp',2986 exp: {2987 name: 'getResponseItem',2988 data: [2989 {2990 str: 'covidweekly.32'2991 },2992 {2993 str: '1.1.160'2994 }2995 ]2996 }2997 }2998 ]2999 }3000 },3001 ]3002 },3003 follows: [],3004 version: 1,3005 validations: [],3006 components: {3007 role: "root",3008 items: [3009 {3010 role: "title",3011 content: [3012 {3013 code: "en",3014 parts: [3015 {3016 str: "In the 14 days before your symptoms started, have you been in close contact with someone presenting symptoms of COVID-19?"3017 }3018 ]3019 }3020 ]3021 },3022 {3023 key: "1",3024 role: "responseGroup",3025 items: [3026 {3027 key: "1",3028 role: "singleChoiceGroup",3029 items: [3030 {3031 key: "1",3032 role: "option",3033 content: [3034 {3035 code: "en",3036 parts: [3037 {3038 str: "Yes"3039 }3040 ]3041 }3042 ]3043 },3044 {3045 key: "0",3046 role: "option",3047 content: [3048 {3049 code: "en",3050 parts: [3051 {3052 str: "No"3053 }3054 ]3055 }3056 ]3057 },3058 {3059 key: "2",3060 role: "option",3061 content: [3062 {3063 code: "en",3064 parts: [3065 {3066 str: "I don't know"3067 }3068 ]3069 }3070 ]3071 },3072 ]3073 }3074 ]3075 }3076 ]3077 }3078}3079const Qcov8b: SurveySingleItem = {3080 key: "covidweekly.Qcov8b",3081 // “yes” to Qcov83082 condition: {3083 name: 'isDefined',3084 data: [3085 {3086 dtype: 'exp',3087 exp: {3088 name: 'getResponseItem',3089 data: [3090 {3091 str: 'covidweekly.Qcov8'3092 },3093 {3094 str: '1.1.1'3095 }3096 ]3097 }3098 }3099 ]3100 },3101 follows: [3102 "covidweekly.Qcov8",3103 ],3104 version: 1,3105 validations: [],3106 components: {3107 role: "root",3108 items: [3109 {3110 role: "title",3111 content: [3112 {3113 code: "en",3114 parts: [3115 {3116 str: "Do you live in the same household as that person?"3117 }3118 ]3119 }3120 ]3121 },3122 {3123 key: "1",3124 role: "responseGroup",3125 items: [3126 {3127 key: "1",3128 role: "singleChoiceGroup",3129 items: [3130 {3131 key: "1",3132 role: "option",3133 content: [3134 {3135 code: "en",3136 parts: [3137 {3138 str: "Yes"3139 }3140 ]3141 }3142 ]3143 },3144 {3145 key: "0",3146 role: "option",3147 content: [3148 {3149 code: "en",3150 parts: [3151 {3152 str: "No"3153 }3154 ]3155 }3156 ]3157 },3158 {3159 key: "2",3160 role: "option",3161 content: [3162 {3163 code: "en",3164 parts: [3165 {3166 str: "I don't know"3167 }3168 ]3169 }3170 ]3171 },3172 ]3173 }3174 ]3175 }3176 ]3177 }3178}3179const Q3: SurveySingleItem = {3180 key: "covidweekly.35",3181 // if report any symptoms3182 condition: {3183 name: "or",3184 data: [3185 {3186 dtype: 'exp',3187 exp: {3188 name: 'isDefined',3189 data: [3190 {3191 dtype: 'exp',3192 exp: {3193 name: 'getResponseItem',3194 data: [3195 {3196 str: 'covidweekly.32'3197 },3198 {3199 str: '1.1.142'3200 }3201 ]3202 }3203 }3204 ]3205 }3206 },3207 {3208 dtype: 'exp',3209 exp: {3210 name: 'isDefined',3211 data: [3212 {3213 dtype: 'exp',3214 exp: {3215 name: 'getResponseItem',3216 data: [3217 {3218 str: 'covidweekly.32'3219 },3220 {3221 str: '1.1.143'3222 }3223 ]3224 }3225 }3226 ]3227 }3228 },3229 {3230 dtype: 'exp',3231 exp: {3232 name: 'isDefined',3233 data: [3234 {3235 dtype: 'exp',3236 exp: {3237 name: 'getResponseItem',3238 data: [3239 {3240 str: 'covidweekly.32'3241 },3242 {3243 str: '1.1.144'3244 }3245 ]3246 }3247 }3248 ]3249 }3250 },3251 {3252 dtype: 'exp',3253 exp: {3254 name: 'isDefined',3255 data: [3256 {3257 dtype: 'exp',3258 exp: {3259 name: 'getResponseItem',3260 data: [3261 {3262 str: 'covidweekly.32'3263 },3264 {3265 str: '1.1.145'3266 }3267 ]3268 }3269 }3270 ]3271 }3272 },3273 {3274 dtype: 'exp',3275 exp: {3276 name: 'isDefined',3277 data: [3278 {3279 dtype: 'exp',3280 exp: {3281 name: 'getResponseItem',3282 data: [3283 {3284 str: 'covidweekly.32'3285 },3286 {3287 str: '1.1.146'3288 }3289 ]3290 }3291 }3292 ]3293 }3294 },3295 {3296 dtype: 'exp',3297 exp: {3298 name: 'isDefined',3299 data: [3300 {3301 dtype: 'exp',3302 exp: {3303 name: 'getResponseItem',3304 data: [3305 {3306 str: 'covidweekly.32'3307 },3308 {3309 str: '1.1.147'3310 }3311 ]3312 }3313 }3314 ]3315 }3316 },3317 {3318 dtype: 'exp',3319 exp: {3320 name: 'isDefined',3321 data: [3322 {3323 dtype: 'exp',3324 exp: {3325 name: 'getResponseItem',3326 data: [3327 {3328 str: 'covidweekly.32'3329 },3330 {3331 str: '1.1.148'3332 }3333 ]3334 }3335 }3336 ]3337 }3338 },3339 {3340 dtype: 'exp',3341 exp: {3342 name: 'isDefined',3343 data: [3344 {3345 dtype: 'exp',3346 exp: {3347 name: 'getResponseItem',3348 data: [3349 {3350 str: 'covidweekly.32'3351 },3352 {3353 str: '1.1.149'3354 }3355 ]3356 }3357 }3358 ]3359 }3360 },3361 {3362 dtype: 'exp',3363 exp: {3364 name: 'isDefined',3365 data: [3366 {3367 dtype: 'exp',3368 exp: {3369 name: 'getResponseItem',3370 data: [3371 {3372 str: 'covidweekly.32'3373 },3374 {3375 str: '1.1.150'3376 }3377 ]3378 }3379 }3380 ]3381 }3382 },3383 {3384 dtype: 'exp',3385 exp: {3386 name: 'isDefined',3387 data: [3388 {3389 dtype: 'exp',3390 exp: {3391 name: 'getResponseItem',3392 data: [3393 {3394 str: 'covidweekly.32'3395 },3396 {3397 str: '1.1.151'3398 }3399 ]3400 }3401 }3402 ]3403 }3404 },3405 {3406 dtype: 'exp',3407 exp: {3408 name: 'isDefined',3409 data: [3410 {3411 dtype: 'exp',3412 exp: {3413 name: 'getResponseItem',3414 data: [3415 {3416 str: 'covidweekly.32'3417 },3418 {3419 str: '1.1.152'3420 }3421 ]3422 }3423 }3424 ]3425 }3426 },3427 {3428 dtype: 'exp',3429 exp: {3430 name: 'isDefined',3431 data: [3432 {3433 dtype: 'exp',3434 exp: {3435 name: 'getResponseItem',3436 data: [3437 {3438 str: 'covidweekly.32'3439 },3440 {3441 str: '1.1.153'3442 }3443 ]3444 }3445 }3446 ]3447 }3448 },3449 {3450 dtype: 'exp',3451 exp: {3452 name: 'isDefined',3453 data: [3454 {3455 dtype: 'exp',3456 exp: {3457 name: 'getResponseItem',3458 data: [3459 {3460 str: 'covidweekly.32'3461 },3462 {3463 str: '1.1.154'3464 }3465 ]3466 }3467 }3468 ]3469 }3470 },3471 {3472 dtype: 'exp',3473 exp: {3474 name: 'isDefined',3475 data: [3476 {3477 dtype: 'exp',3478 exp: {3479 name: 'getResponseItem',3480 data: [3481 {3482 str: 'covidweekly.32'3483 },3484 {3485 str: '1.1.155'3486 }3487 ]3488 }3489 }3490 ]3491 }3492 },3493 {3494 dtype: 'exp',3495 exp: {3496 name: 'isDefined',3497 data: [3498 {3499 dtype: 'exp',3500 exp: {3501 name: 'getResponseItem',3502 data: [3503 {3504 str: 'covidweekly.32'3505 },3506 {3507 str: '1.1.156'3508 }3509 ]3510 }3511 }3512 ]3513 }3514 },3515 {3516 dtype: 'exp',3517 exp: {3518 name: 'isDefined',3519 data: [3520 {3521 dtype: 'exp',3522 exp: {3523 name: 'getResponseItem',3524 data: [3525 {3526 str: 'covidweekly.32'3527 },3528 {3529 str: '1.1.157'3530 }3531 ]3532 }3533 }3534 ]3535 }3536 },3537 {3538 dtype: 'exp',3539 exp: {3540 name: 'isDefined',3541 data: [3542 {3543 dtype: 'exp',3544 exp: {3545 name: 'getResponseItem',3546 data: [3547 {3548 str: 'covidweekly.32'3549 },3550 {3551 str: '1.1.158'3552 }3553 ]3554 }3555 }3556 ]3557 }3558 },3559 {3560 dtype: 'exp',3561 exp: {3562 name: 'isDefined',3563 data: [3564 {3565 dtype: 'exp',3566 exp: {3567 name: 'getResponseItem',3568 data: [3569 {3570 str: 'covidweekly.32'3571 },3572 {3573 str: '1.1.159'3574 }3575 ]3576 }3577 }3578 ]3579 }3580 },3581 {3582 dtype: 'exp',3583 exp: {3584 name: 'isDefined',3585 data: [3586 {3587 dtype: 'exp',3588 exp: {3589 name: 'getResponseItem',3590 data: [3591 {3592 str: 'covidweekly.32'3593 },3594 {3595 str: '1.1.160'3596 }3597 ]3598 }3599 }3600 ]3601 }3602 },3603 ]3604 },3605 follows: [3606 "covidweekly.32",3607 ],3608 version: 1,3609 validations: [],3610 components: {3611 role: "root",3612 items: [3613 {3614 role: "title",3615 content: [3616 {3617 code: "en",3618 parts: [3619 {3620 str: "When did the first symptoms appear?"3621 }3622 ]3623 }3624 ]3625 },3626 {3627 key: "1",3628 role: "responseGroup",3629 items: [3630 {3631 key: "1",3632 role: "singleChoiceGroup",3633 items: [3634 {3635 key: "165",3636 role: "dateInput",3637 content: [3638 {3639 code: "en",3640 parts: [3641 {3642 str: "Choose date"3643 }3644 ]3645 }3646 ]3647 },3648 {3649 key: "166",3650 role: "option",3651 content: [3652 {3653 code: "en",3654 parts: [3655 {3656 str: "I don't know/can't remember"3657 }3658 ]3659 }3660 ]3661 }3662 ]3663 }3664 ]3665 }3666 ]3667 }3668}3669const Q4: SurveySingleItem = {3670 key: "covidweekly.36",3671 // if report any symptoms3672 condition: {3673 name: "or",3674 data: [3675 {3676 dtype: 'exp',3677 exp: {3678 name: 'isDefined',3679 data: [3680 {3681 dtype: 'exp',3682 exp: {3683 name: 'getResponseItem',3684 data: [3685 {3686 str: 'covidweekly.32'3687 },3688 {3689 str: '1.1.142'3690 }3691 ]3692 }3693 }3694 ]3695 }3696 },3697 {3698 dtype: 'exp',3699 exp: {3700 name: 'isDefined',3701 data: [3702 {3703 dtype: 'exp',3704 exp: {3705 name: 'getResponseItem',3706 data: [3707 {3708 str: 'covidweekly.32'3709 },3710 {3711 str: '1.1.143'3712 }3713 ]3714 }3715 }3716 ]3717 }3718 },3719 {3720 dtype: 'exp',3721 exp: {3722 name: 'isDefined',3723 data: [3724 {3725 dtype: 'exp',3726 exp: {3727 name: 'getResponseItem',3728 data: [3729 {3730 str: 'covidweekly.32'3731 },3732 {3733 str: '1.1.144'3734 }3735 ]3736 }3737 }3738 ]3739 }3740 },3741 {3742 dtype: 'exp',3743 exp: {3744 name: 'isDefined',3745 data: [3746 {3747 dtype: 'exp',3748 exp: {3749 name: 'getResponseItem',3750 data: [3751 {3752 str: 'covidweekly.32'3753 },3754 {3755 str: '1.1.145'3756 }3757 ]3758 }3759 }3760 ]3761 }3762 },3763 {3764 dtype: 'exp',3765 exp: {3766 name: 'isDefined',3767 data: [3768 {3769 dtype: 'exp',3770 exp: {3771 name: 'getResponseItem',3772 data: [3773 {3774 str: 'covidweekly.32'3775 },3776 {3777 str: '1.1.146'3778 }3779 ]3780 }3781 }3782 ]3783 }3784 },3785 {3786 dtype: 'exp',3787 exp: {3788 name: 'isDefined',3789 data: [3790 {3791 dtype: 'exp',3792 exp: {3793 name: 'getResponseItem',3794 data: [3795 {3796 str: 'covidweekly.32'3797 },3798 {3799 str: '1.1.147'3800 }3801 ]3802 }3803 }3804 ]3805 }3806 },3807 {3808 dtype: 'exp',3809 exp: {3810 name: 'isDefined',3811 data: [3812 {3813 dtype: 'exp',3814 exp: {3815 name: 'getResponseItem',3816 data: [3817 {3818 str: 'covidweekly.32'3819 },3820 {3821 str: '1.1.148'3822 }3823 ]3824 }3825 }3826 ]3827 }3828 },3829 {3830 dtype: 'exp',3831 exp: {3832 name: 'isDefined',3833 data: [3834 {3835 dtype: 'exp',3836 exp: {3837 name: 'getResponseItem',3838 data: [3839 {3840 str: 'covidweekly.32'3841 },3842 {3843 str: '1.1.149'3844 }3845 ]3846 }3847 }3848 ]3849 }3850 },3851 {3852 dtype: 'exp',3853 exp: {3854 name: 'isDefined',3855 data: [3856 {3857 dtype: 'exp',3858 exp: {3859 name: 'getResponseItem',3860 data: [3861 {3862 str: 'covidweekly.32'3863 },3864 {3865 str: '1.1.150'3866 }3867 ]3868 }3869 }3870 ]3871 }3872 },3873 {3874 dtype: 'exp',3875 exp: {3876 name: 'isDefined',3877 data: [3878 {3879 dtype: 'exp',3880 exp: {3881 name: 'getResponseItem',3882 data: [3883 {3884 str: 'covidweekly.32'3885 },3886 {3887 str: '1.1.151'3888 }3889 ]3890 }3891 }3892 ]3893 }3894 },3895 {3896 dtype: 'exp',3897 exp: {3898 name: 'isDefined',3899 data: [3900 {3901 dtype: 'exp',3902 exp: {3903 name: 'getResponseItem',3904 data: [3905 {3906 str: 'covidweekly.32'3907 },3908 {3909 str: '1.1.152'3910 }3911 ]3912 }3913 }3914 ]3915 }3916 },3917 {3918 dtype: 'exp',3919 exp: {3920 name: 'isDefined',3921 data: [3922 {3923 dtype: 'exp',3924 exp: {3925 name: 'getResponseItem',3926 data: [3927 {3928 str: 'covidweekly.32'3929 },3930 {3931 str: '1.1.153'3932 }3933 ]3934 }3935 }3936 ]3937 }3938 },3939 {3940 dtype: 'exp',3941 exp: {3942 name: 'isDefined',3943 data: [3944 {3945 dtype: 'exp',3946 exp: {3947 name: 'getResponseItem',3948 data: [3949 {3950 str: 'covidweekly.32'3951 },3952 {3953 str: '1.1.154'3954 }3955 ]3956 }3957 }3958 ]3959 }3960 },3961 {3962 dtype: 'exp',3963 exp: {3964 name: 'isDefined',3965 data: [3966 {3967 dtype: 'exp',3968 exp: {3969 name: 'getResponseItem',3970 data: [3971 {3972 str: 'covidweekly.32'3973 },3974 {3975 str: '1.1.155'3976 }3977 ]3978 }3979 }3980 ]3981 }3982 },3983 {3984 dtype: 'exp',3985 exp: {3986 name: 'isDefined',3987 data: [3988 {3989 dtype: 'exp',3990 exp: {3991 name: 'getResponseItem',3992 data: [3993 {3994 str: 'covidweekly.32'3995 },3996 {3997 str: '1.1.156'3998 }3999 ]4000 }4001 }4002 ]4003 }4004 },4005 {4006 dtype: 'exp',4007 exp: {4008 name: 'isDefined',4009 data: [4010 {4011 dtype: 'exp',4012 exp: {4013 name: 'getResponseItem',4014 data: [4015 {4016 str: 'covidweekly.32'4017 },4018 {4019 str: '1.1.157'4020 }4021 ]4022 }4023 }4024 ]4025 }4026 },4027 {4028 dtype: 'exp',4029 exp: {4030 name: 'isDefined',4031 data: [4032 {4033 dtype: 'exp',4034 exp: {4035 name: 'getResponseItem',4036 data: [4037 {4038 str: 'covidweekly.32'4039 },4040 {4041 str: '1.1.158'4042 }4043 ]4044 }4045 }4046 ]4047 }4048 },4049 {4050 dtype: 'exp',4051 exp: {4052 name: 'isDefined',4053 data: [4054 {4055 dtype: 'exp',4056 exp: {4057 name: 'getResponseItem',4058 data: [4059 {4060 str: 'covidweekly.32'4061 },4062 {4063 str: '1.1.159'4064 }4065 ]4066 }4067 }4068 ]4069 }4070 },4071 {4072 dtype: 'exp',4073 exp: {4074 name: 'isDefined',4075 data: [4076 {4077 dtype: 'exp',4078 exp: {4079 name: 'getResponseItem',4080 data: [4081 {4082 str: 'covidweekly.32'4083 },4084 {4085 str: '1.1.160'4086 }4087 ]4088 }4089 }4090 ]4091 }4092 },4093 ]4094 },4095 version: 1,4096 validations: [],4097 components: {4098 role: "root",4099 items: [4100 {4101 role: "title",4102 content: [4103 {4104 code: "en",4105 parts: [4106 {4107 str: "When did your symptoms end?"4108 }4109 ]4110 }4111 ]4112 },4113 {4114 key: "1",4115 role: "responseGroup",4116 items: [4117 {4118 key: "1",4119 role: "singleChoiceGroup",4120 items: [4121 {4122 key: "167",4123 role: "dateInput",4124 content: [4125 {4126 code: "en",4127 parts: [4128 {4129 str: "Choose date"4130 }4131 ]4132 }4133 ]4134 },4135 {4136 key: "168",4137 role: "option",4138 content: [4139 {4140 code: "en",4141 parts: [4142 {4143 str: "I don't know/can't remember"4144 }4145 ]4146 }4147 ]4148 },4149 {4150 key: "169",4151 role: "option",4152 content: [4153 {4154 code: "en",4155 parts: [4156 {4157 str: "I am still ill"4158 }4159 ]4160 }4161 ]4162 }4163 ]4164 }4165 ]4166 }4167 ]4168 }4169}4170const Q5: SurveySingleItem = {4171 key: "covidweekly.37",4172 // if report any symptoms4173 condition: {4174 name: "or",4175 data: [4176 {4177 dtype: 'exp',4178 exp: {4179 name: 'isDefined',4180 data: [4181 {4182 dtype: 'exp',4183 exp: {4184 name: 'getResponseItem',4185 data: [4186 {4187 str: 'covidweekly.32'4188 },4189 {4190 str: '1.1.142'4191 }4192 ]4193 }4194 }4195 ]4196 }4197 },4198 {4199 dtype: 'exp',4200 exp: {4201 name: 'isDefined',4202 data: [4203 {4204 dtype: 'exp',4205 exp: {4206 name: 'getResponseItem',4207 data: [4208 {4209 str: 'covidweekly.32'4210 },4211 {4212 str: '1.1.143'4213 }4214 ]4215 }4216 }4217 ]4218 }4219 },4220 {4221 dtype: 'exp',4222 exp: {4223 name: 'isDefined',4224 data: [4225 {4226 dtype: 'exp',4227 exp: {4228 name: 'getResponseItem',4229 data: [4230 {4231 str: 'covidweekly.32'4232 },4233 {4234 str: '1.1.144'4235 }4236 ]4237 }4238 }4239 ]4240 }4241 },4242 {4243 dtype: 'exp',4244 exp: {4245 name: 'isDefined',4246 data: [4247 {4248 dtype: 'exp',4249 exp: {4250 name: 'getResponseItem',4251 data: [4252 {4253 str: 'covidweekly.32'4254 },4255 {4256 str: '1.1.145'4257 }4258 ]4259 }4260 }4261 ]4262 }4263 },4264 {4265 dtype: 'exp',4266 exp: {4267 name: 'isDefined',4268 data: [4269 {4270 dtype: 'exp',4271 exp: {4272 name: 'getResponseItem',4273 data: [4274 {4275 str: 'covidweekly.32'4276 },4277 {4278 str: '1.1.146'4279 }4280 ]4281 }4282 }4283 ]4284 }4285 },4286 {4287 dtype: 'exp',4288 exp: {4289 name: 'isDefined',4290 data: [4291 {4292 dtype: 'exp',4293 exp: {4294 name: 'getResponseItem',4295 data: [4296 {4297 str: 'covidweekly.32'4298 },4299 {4300 str: '1.1.147'4301 }4302 ]4303 }4304 }4305 ]4306 }4307 },4308 {4309 dtype: 'exp',4310 exp: {4311 name: 'isDefined',4312 data: [4313 {4314 dtype: 'exp',4315 exp: {4316 name: 'getResponseItem',4317 data: [4318 {4319 str: 'covidweekly.32'4320 },4321 {4322 str: '1.1.148'4323 }4324 ]4325 }4326 }4327 ]4328 }4329 },4330 {4331 dtype: 'exp',4332 exp: {4333 name: 'isDefined',4334 data: [4335 {4336 dtype: 'exp',4337 exp: {4338 name: 'getResponseItem',4339 data: [4340 {4341 str: 'covidweekly.32'4342 },4343 {4344 str: '1.1.149'4345 }4346 ]4347 }4348 }4349 ]4350 }4351 },4352 {4353 dtype: 'exp',4354 exp: {4355 name: 'isDefined',4356 data: [4357 {4358 dtype: 'exp',4359 exp: {4360 name: 'getResponseItem',4361 data: [4362 {4363 str: 'covidweekly.32'4364 },4365 {4366 str: '1.1.150'4367 }4368 ]4369 }4370 }4371 ]4372 }4373 },4374 {4375 dtype: 'exp',4376 exp: {4377 name: 'isDefined',4378 data: [4379 {4380 dtype: 'exp',4381 exp: {4382 name: 'getResponseItem',4383 data: [4384 {4385 str: 'covidweekly.32'4386 },4387 {4388 str: '1.1.151'4389 }4390 ]4391 }4392 }4393 ]4394 }4395 },4396 {4397 dtype: 'exp',4398 exp: {4399 name: 'isDefined',4400 data: [4401 {4402 dtype: 'exp',4403 exp: {4404 name: 'getResponseItem',4405 data: [4406 {4407 str: 'covidweekly.32'4408 },4409 {4410 str: '1.1.152'4411 }4412 ]4413 }4414 }4415 ]4416 }4417 },4418 {4419 dtype: 'exp',4420 exp: {4421 name: 'isDefined',4422 data: [4423 {4424 dtype: 'exp',4425 exp: {4426 name: 'getResponseItem',4427 data: [4428 {4429 str: 'covidweekly.32'4430 },4431 {4432 str: '1.1.153'4433 }4434 ]4435 }4436 }4437 ]4438 }4439 },4440 {4441 dtype: 'exp',4442 exp: {4443 name: 'isDefined',4444 data: [4445 {4446 dtype: 'exp',4447 exp: {4448 name: 'getResponseItem',4449 data: [4450 {4451 str: 'covidweekly.32'4452 },4453 {4454 str: '1.1.154'4455 }4456 ]4457 }4458 }4459 ]4460 }4461 },4462 {4463 dtype: 'exp',4464 exp: {4465 name: 'isDefined',4466 data: [4467 {4468 dtype: 'exp',4469 exp: {4470 name: 'getResponseItem',4471 data: [4472 {4473 str: 'covidweekly.32'4474 },4475 {4476 str: '1.1.155'4477 }4478 ]4479 }4480 }4481 ]4482 }4483 },4484 {4485 dtype: 'exp',4486 exp: {4487 name: 'isDefined',4488 data: [4489 {4490 dtype: 'exp',4491 exp: {4492 name: 'getResponseItem',4493 data: [4494 {4495 str: 'covidweekly.32'4496 },4497 {4498 str: '1.1.156'4499 }4500 ]4501 }4502 }4503 ]4504 }4505 },4506 {4507 dtype: 'exp',4508 exp: {4509 name: 'isDefined',4510 data: [4511 {4512 dtype: 'exp',4513 exp: {4514 name: 'getResponseItem',4515 data: [4516 {4517 str: 'covidweekly.32'4518 },4519 {4520 str: '1.1.157'4521 }4522 ]4523 }4524 }4525 ]4526 }4527 },4528 {4529 dtype: 'exp',4530 exp: {4531 name: 'isDefined',4532 data: [4533 {4534 dtype: 'exp',4535 exp: {4536 name: 'getResponseItem',4537 data: [4538 {4539 str: 'covidweekly.32'4540 },4541 {4542 str: '1.1.158'4543 }4544 ]4545 }4546 }4547 ]4548 }4549 },4550 {4551 dtype: 'exp',4552 exp: {4553 name: 'isDefined',4554 data: [4555 {4556 dtype: 'exp',4557 exp: {4558 name: 'getResponseItem',4559 data: [4560 {4561 str: 'covidweekly.32'4562 },4563 {4564 str: '1.1.159'4565 }4566 ]4567 }4568 }4569 ]4570 }4571 },4572 {4573 dtype: 'exp',4574 exp: {4575 name: 'isDefined',4576 data: [4577 {4578 dtype: 'exp',4579 exp: {4580 name: 'getResponseItem',4581 data: [4582 {4583 str: 'covidweekly.32'4584 },4585 {4586 str: '1.1.160'4587 }4588 ]4589 }4590 }4591 ]4592 }4593 },4594 ]4595 },4596 version: 1,4597 validations: [],4598 components: {4599 role: "root",4600 items: [4601 {4602 role: "title",4603 content: [4604 {4605 code: "en",4606 parts: [4607 {4608 str: "Did your symptoms develop suddenly over a few hours?"4609 }4610 ]4611 }4612 ]4613 },4614 {4615 key: "1",4616 role: "responseGroup",4617 items: [4618 {4619 key: "1",4620 role: "singleChoiceGroup",4621 items: [4622 {4623 key: "170",4624 role: "option",4625 content: [4626 {4627 code: "en",4628 parts: [4629 {4630 str: "Yes"4631 }4632 ]4633 }4634 ]4635 },4636 {4637 key: "171",4638 role: "option",4639 content: [4640 {4641 code: "en",4642 parts: [4643 {4644 str: "No"4645 }4646 ]4647 }4648 ]4649 },4650 {4651 key: "172",4652 role: "option",4653 content: [4654 {4655 code: "en",4656 parts: [4657 {4658 str: "I don't know/can't remember"4659 }4660 ]4661 }4662 ]4663 }4664 ]4665 }4666 ]4667 }4668 ]4669 }4670}4671const Q6: SurveySingleItem = {4672 key: "covidweekly.38",4673 // fever4674 condition: {4675 name: 'isDefined',4676 data: [4677 {4678 dtype: 'exp',4679 exp: {4680 name: 'getResponseItem',4681 data: [4682 {4683 str: 'covidweekly.32'4684 },4685 {4686 str: '1.1.142'4687 }4688 ]4689 }4690 }4691 ]4692 },4693 version: 1,4694 validations: [],4695 components: {4696 role: "root",4697 items: [4698 {4699 role: "title",4700 content: [4701 {4702 code: "en",4703 parts: [4704 {4705 str: "When did your fever begin?"4706 }4707 ]4708 }4709 ]4710 },4711 {4712 key: "1",4713 role: "responseGroup",4714 items: [4715 {4716 key: "1",4717 role: "singleChoiceGroup",4718 items: [4719 {4720 key: "173",4721 role: "dateInput",4722 content: [4723 {4724 code: "en",4725 parts: [4726 {4727 str: "Choose date"4728 }4729 ]4730 }4731 ]4732 },4733 {4734 key: "174",4735 role: "option",4736 content: [4737 {4738 code: "en",4739 parts: [4740 {4741 str: "I don't know/can't rember"4742 }4743 ]4744 }4745 ]4746 }4747 ]4748 }4749 ]4750 }4751 ]4752 }4753}4754const Q6b: SurveySingleItem = {4755 key: "covidweekly.39",4756 // fever4757 condition: {4758 name: 'isDefined',4759 data: [4760 {4761 dtype: 'exp',4762 exp: {4763 name: 'getResponseItem',4764 data: [4765 {4766 str: 'covidweekly.32'4767 },4768 {4769 str: '1.1.142'4770 }4771 ]4772 }4773 }4774 ]4775 },4776 version: 1,4777 validations: [],4778 components: {4779 role: "root",4780 items: [4781 {4782 role: "title",4783 content: [4784 {4785 code: "en",4786 parts: [4787 {4788 str: "Did your fever develop suddenly over a few hours?"4789 }4790 ]4791 }4792 ]4793 },4794 {4795 key: "1",4796 role: "responseGroup",4797 items: [4798 {4799 key: "1",4800 role: "singleChoiceGroup",4801 items: [4802 {4803 key: "175",4804 role: "option",4805 content: [4806 {4807 code: "en",4808 parts: [4809 {4810 str: "Yes"4811 }4812 ]4813 }4814 ]4815 },4816 {4817 key: "176",4818 role: "option",4819 content: [4820 {4821 code: "en",4822 parts: [4823 {4824 str: "No"4825 }4826 ]4827 }4828 ]4829 },4830 {4831 key: "177",4832 role: "option",4833 content: [4834 {4835 code: "en",4836 parts: [4837 {4838 str: "I don't know"4839 }4840 ]4841 }4842 ]4843 }4844 ]4845 }4846 ]4847 }4848 ]4849 }4850}4851const Q6c: SurveySingleItem = {4852 key: "covidweekly.40",4853 // if report any symptoms4854 condition: {4855 name: "or",4856 data: [4857 {4858 dtype: 'exp',4859 exp: {4860 name: 'isDefined',4861 data: [4862 {4863 dtype: 'exp',4864 exp: {4865 name: 'getResponseItem',4866 data: [4867 {4868 str: 'covidweekly.32'4869 },4870 {4871 str: '1.1.142'4872 }4873 ]4874 }4875 }4876 ]4877 }4878 },4879 {4880 dtype: 'exp',4881 exp: {4882 name: 'isDefined',4883 data: [4884 {4885 dtype: 'exp',4886 exp: {4887 name: 'getResponseItem',4888 data: [4889 {4890 str: 'covidweekly.32'4891 },4892 {4893 str: '1.1.143'4894 }4895 ]4896 }4897 }4898 ]4899 }4900 },4901 {4902 dtype: 'exp',4903 exp: {4904 name: 'isDefined',4905 data: [4906 {4907 dtype: 'exp',4908 exp: {4909 name: 'getResponseItem',4910 data: [4911 {4912 str: 'covidweekly.32'4913 },4914 {4915 str: '1.1.144'4916 }4917 ]4918 }4919 }4920 ]4921 }4922 },4923 {4924 dtype: 'exp',4925 exp: {4926 name: 'isDefined',4927 data: [4928 {4929 dtype: 'exp',4930 exp: {4931 name: 'getResponseItem',4932 data: [4933 {4934 str: 'covidweekly.32'4935 },4936 {4937 str: '1.1.145'4938 }4939 ]4940 }4941 }4942 ]4943 }4944 },4945 {4946 dtype: 'exp',4947 exp: {4948 name: 'isDefined',4949 data: [4950 {4951 dtype: 'exp',4952 exp: {4953 name: 'getResponseItem',4954 data: [4955 {4956 str: 'covidweekly.32'4957 },4958 {4959 str: '1.1.146'4960 }4961 ]4962 }4963 }4964 ]4965 }4966 },4967 {4968 dtype: 'exp',4969 exp: {4970 name: 'isDefined',4971 data: [4972 {4973 dtype: 'exp',4974 exp: {4975 name: 'getResponseItem',4976 data: [4977 {4978 str: 'covidweekly.32'4979 },4980 {4981 str: '1.1.147'4982 }4983 ]4984 }4985 }4986 ]4987 }4988 },4989 {4990 dtype: 'exp',4991 exp: {4992 name: 'isDefined',4993 data: [4994 {4995 dtype: 'exp',4996 exp: {4997 name: 'getResponseItem',4998 data: [4999 {5000 str: 'covidweekly.32'5001 },5002 {5003 str: '1.1.148'5004 }5005 ]5006 }5007 }5008 ]5009 }5010 },5011 {5012 dtype: 'exp',5013 exp: {5014 name: 'isDefined',5015 data: [5016 {5017 dtype: 'exp',5018 exp: {5019 name: 'getResponseItem',5020 data: [5021 {5022 str: 'covidweekly.32'5023 },5024 {5025 str: '1.1.149'5026 }5027 ]5028 }5029 }5030 ]5031 }5032 },5033 {5034 dtype: 'exp',5035 exp: {5036 name: 'isDefined',5037 data: [5038 {5039 dtype: 'exp',5040 exp: {5041 name: 'getResponseItem',5042 data: [5043 {5044 str: 'covidweekly.32'5045 },5046 {5047 str: '1.1.150'5048 }5049 ]5050 }5051 }5052 ]5053 }5054 },5055 {5056 dtype: 'exp',5057 exp: {5058 name: 'isDefined',5059 data: [5060 {5061 dtype: 'exp',5062 exp: {5063 name: 'getResponseItem',5064 data: [5065 {5066 str: 'covidweekly.32'5067 },5068 {5069 str: '1.1.151'5070 }5071 ]5072 }5073 }5074 ]5075 }5076 },5077 {5078 dtype: 'exp',5079 exp: {5080 name: 'isDefined',5081 data: [5082 {5083 dtype: 'exp',5084 exp: {5085 name: 'getResponseItem',5086 data: [5087 {5088 str: 'covidweekly.32'5089 },5090 {5091 str: '1.1.152'5092 }5093 ]5094 }5095 }5096 ]5097 }5098 },5099 {5100 dtype: 'exp',5101 exp: {5102 name: 'isDefined',5103 data: [5104 {5105 dtype: 'exp',5106 exp: {5107 name: 'getResponseItem',5108 data: [5109 {5110 str: 'covidweekly.32'5111 },5112 {5113 str: '1.1.153'5114 }5115 ]5116 }5117 }5118 ]5119 }5120 },5121 {5122 dtype: 'exp',5123 exp: {5124 name: 'isDefined',5125 data: [5126 {5127 dtype: 'exp',5128 exp: {5129 name: 'getResponseItem',5130 data: [5131 {5132 str: 'covidweekly.32'5133 },5134 {5135 str: '1.1.154'5136 }5137 ]5138 }5139 }5140 ]5141 }5142 },5143 {5144 dtype: 'exp',5145 exp: {5146 name: 'isDefined',5147 data: [5148 {5149 dtype: 'exp',5150 exp: {5151 name: 'getResponseItem',5152 data: [5153 {5154 str: 'covidweekly.32'5155 },5156 {5157 str: '1.1.155'5158 }5159 ]5160 }5161 }5162 ]5163 }5164 },5165 {5166 dtype: 'exp',5167 exp: {5168 name: 'isDefined',5169 data: [5170 {5171 dtype: 'exp',5172 exp: {5173 name: 'getResponseItem',5174 data: [5175 {5176 str: 'covidweekly.32'5177 },5178 {5179 str: '1.1.156'5180 }5181 ]5182 }5183 }5184 ]5185 }5186 },5187 {5188 dtype: 'exp',5189 exp: {5190 name: 'isDefined',5191 data: [5192 {5193 dtype: 'exp',5194 exp: {5195 name: 'getResponseItem',5196 data: [5197 {5198 str: 'covidweekly.32'5199 },5200 {5201 str: '1.1.157'5202 }5203 ]5204 }5205 }5206 ]5207 }5208 },5209 {5210 dtype: 'exp',5211 exp: {5212 name: 'isDefined',5213 data: [5214 {5215 dtype: 'exp',5216 exp: {5217 name: 'getResponseItem',5218 data: [5219 {5220 str: 'covidweekly.32'5221 },5222 {5223 str: '1.1.158'5224 }5225 ]5226 }5227 }5228 ]5229 }5230 },5231 {5232 dtype: 'exp',5233 exp: {5234 name: 'isDefined',5235 data: [5236 {5237 dtype: 'exp',5238 exp: {5239 name: 'getResponseItem',5240 data: [5241 {5242 str: 'covidweekly.32'5243 },5244 {5245 str: '1.1.159'5246 }5247 ]5248 }5249 }5250 ]5251 }5252 },5253 {5254 dtype: 'exp',5255 exp: {5256 name: 'isDefined',5257 data: [5258 {5259 dtype: 'exp',5260 exp: {5261 name: 'getResponseItem',5262 data: [5263 {5264 str: 'covidweekly.32'5265 },5266 {5267 str: '1.1.160'5268 }5269 ]5270 }5271 }5272 ]5273 }5274 },5275 ]5276 },5277 version: 1,5278 validations: [],5279 components: {5280 role: "root",5281 items: [5282 {5283 role: "title",5284 content: [5285 {5286 code: "en",5287 parts: [5288 {5289 str: "Did you take your temperature?"5290 }5291 ]5292 }5293 ]5294 },5295 {5296 key: "1",5297 role: "responseGroup",5298 items: [5299 {5300 key: "1",5301 role: "singleChoiceGroup",5302 items: [5303 {5304 key: "178",5305 role: "option",5306 content: [5307 {5308 code: "en",5309 parts: [5310 {5311 str: "Yes"5312 }5313 ]5314 }5315 ]5316 },5317 {5318 key: "179",5319 role: "option",5320 content: [5321 {5322 code: "en",5323 parts: [5324 {5325 str: "No"5326 }5327 ]5328 }5329 ]5330 },5331 {5332 key: "180",5333 role: "option",5334 content: [5335 {5336 code: "en",5337 parts: [5338 {5339 str: "I don't know"5340 }5341 ]5342 }5343 ]5344 }5345 ]5346 }5347 ]5348 }5349 ]5350 }5351}5352const Q6d: SurveySingleItem = {5353 key: "covidweekly.41",5354 condition: {5355 name: "and",5356 data: [5357 {5358 // if report any symptoms5359 dtype: "exp",5360 exp: {5361 name: "or",5362 data: [5363 {5364 dtype: 'exp',5365 exp: {5366 name: 'isDefined',5367 data: [5368 {5369 dtype: 'exp',5370 exp: {5371 name: 'getResponseItem',5372 data: [5373 {5374 str: 'covidweekly.32'5375 },5376 {5377 str: '1.1.142'5378 }5379 ]5380 }5381 }5382 ]5383 }5384 },5385 {5386 dtype: 'exp',5387 exp: {5388 name: 'isDefined',5389 data: [5390 {5391 dtype: 'exp',5392 exp: {5393 name: 'getResponseItem',5394 data: [5395 {5396 str: 'covidweekly.32'5397 },5398 {5399 str: '1.1.143'5400 }5401 ]5402 }5403 }5404 ]5405 }5406 },5407 {5408 dtype: 'exp',5409 exp: {5410 name: 'isDefined',5411 data: [5412 {5413 dtype: 'exp',5414 exp: {5415 name: 'getResponseItem',5416 data: [5417 {5418 str: 'covidweekly.32'5419 },5420 {5421 str: '1.1.144'5422 }5423 ]5424 }5425 }5426 ]5427 }5428 },5429 {5430 dtype: 'exp',5431 exp: {5432 name: 'isDefined',5433 data: [5434 {5435 dtype: 'exp',5436 exp: {5437 name: 'getResponseItem',5438 data: [5439 {5440 str: 'covidweekly.32'5441 },5442 {5443 str: '1.1.145'5444 }5445 ]5446 }5447 }5448 ]5449 }5450 },5451 {5452 dtype: 'exp',5453 exp: {5454 name: 'isDefined',5455 data: [5456 {5457 dtype: 'exp',5458 exp: {5459 name: 'getResponseItem',5460 data: [5461 {5462 str: 'covidweekly.32'5463 },5464 {5465 str: '1.1.146'5466 }5467 ]5468 }5469 }5470 ]5471 }5472 },5473 {5474 dtype: 'exp',5475 exp: {5476 name: 'isDefined',5477 data: [5478 {5479 dtype: 'exp',5480 exp: {5481 name: 'getResponseItem',5482 data: [5483 {5484 str: 'covidweekly.32'5485 },5486 {5487 str: '1.1.147'5488 }5489 ]5490 }5491 }5492 ]5493 }5494 },5495 {5496 dtype: 'exp',5497 exp: {5498 name: 'isDefined',5499 data: [5500 {5501 dtype: 'exp',5502 exp: {5503 name: 'getResponseItem',5504 data: [5505 {5506 str: 'covidweekly.32'5507 },5508 {5509 str: '1.1.148'5510 }5511 ]5512 }5513 }5514 ]5515 }5516 },5517 {5518 dtype: 'exp',5519 exp: {5520 name: 'isDefined',5521 data: [5522 {5523 dtype: 'exp',5524 exp: {5525 name: 'getResponseItem',5526 data: [5527 {5528 str: 'covidweekly.32'5529 },5530 {5531 str: '1.1.149'5532 }5533 ]5534 }5535 }5536 ]5537 }5538 },5539 {5540 dtype: 'exp',5541 exp: {5542 name: 'isDefined',5543 data: [5544 {5545 dtype: 'exp',5546 exp: {5547 name: 'getResponseItem',5548 data: [5549 {5550 str: 'covidweekly.32'5551 },5552 {5553 str: '1.1.150'5554 }5555 ]5556 }5557 }5558 ]5559 }5560 },5561 {5562 dtype: 'exp',5563 exp: {5564 name: 'isDefined',5565 data: [5566 {5567 dtype: 'exp',5568 exp: {5569 name: 'getResponseItem',5570 data: [5571 {5572 str: 'covidweekly.32'5573 },5574 {5575 str: '1.1.151'5576 }5577 ]5578 }5579 }5580 ]5581 }5582 },5583 {5584 dtype: 'exp',5585 exp: {5586 name: 'isDefined',5587 data: [5588 {5589 dtype: 'exp',5590 exp: {5591 name: 'getResponseItem',5592 data: [5593 {5594 str: 'covidweekly.32'5595 },5596 {5597 str: '1.1.152'5598 }5599 ]5600 }5601 }5602 ]5603 }5604 },5605 {5606 dtype: 'exp',5607 exp: {5608 name: 'isDefined',5609 data: [5610 {5611 dtype: 'exp',5612 exp: {5613 name: 'getResponseItem',5614 data: [5615 {5616 str: 'covidweekly.32'5617 },5618 {5619 str: '1.1.153'5620 }5621 ]5622 }5623 }5624 ]5625 }5626 },5627 {5628 dtype: 'exp',5629 exp: {5630 name: 'isDefined',5631 data: [5632 {5633 dtype: 'exp',5634 exp: {5635 name: 'getResponseItem',5636 data: [5637 {5638 str: 'covidweekly.32'5639 },5640 {5641 str: '1.1.154'5642 }5643 ]5644 }5645 }5646 ]5647 }5648 },5649 {5650 dtype: 'exp',5651 exp: {5652 name: 'isDefined',5653 data: [5654 {5655 dtype: 'exp',5656 exp: {5657 name: 'getResponseItem',5658 data: [5659 {5660 str: 'covidweekly.32'5661 },5662 {5663 str: '1.1.155'5664 }5665 ]5666 }5667 }5668 ]5669 }5670 },5671 {5672 dtype: 'exp',5673 exp: {5674 name: 'isDefined',5675 data: [5676 {5677 dtype: 'exp',5678 exp: {5679 name: 'getResponseItem',5680 data: [5681 {5682 str: 'covidweekly.32'5683 },5684 {5685 str: '1.1.156'5686 }5687 ]5688 }5689 }5690 ]5691 }5692 },5693 {5694 dtype: 'exp',5695 exp: {5696 name: 'isDefined',5697 data: [5698 {5699 dtype: 'exp',5700 exp: {5701 name: 'getResponseItem',5702 data: [5703 {5704 str: 'covidweekly.32'5705 },5706 {5707 str: '1.1.157'5708 }5709 ]5710 }5711 }5712 ]5713 }5714 },5715 {5716 dtype: 'exp',5717 exp: {5718 name: 'isDefined',5719 data: [5720 {5721 dtype: 'exp',5722 exp: {5723 name: 'getResponseItem',5724 data: [5725 {5726 str: 'covidweekly.32'5727 },5728 {5729 str: '1.1.158'5730 }5731 ]5732 }5733 }5734 ]5735 }5736 },5737 {5738 dtype: 'exp',5739 exp: {5740 name: 'isDefined',5741 data: [5742 {5743 dtype: 'exp',5744 exp: {5745 name: 'getResponseItem',5746 data: [5747 {5748 str: 'covidweekly.32'5749 },5750 {5751 str: '1.1.159'5752 }5753 ]5754 }5755 }5756 ]5757 }5758 },5759 {5760 dtype: 'exp',5761 exp: {5762 name: 'isDefined',5763 data: [5764 {5765 dtype: 'exp',5766 exp: {5767 name: 'getResponseItem',5768 data: [5769 {5770 str: 'covidweekly.32'5771 },5772 {5773 str: '1.1.160'5774 }5775 ]5776 }5777 }5778 ]5779 }5780 },5781 ]5782 }5783 },5784 // took temperature5785 {5786 dtype: 'exp',5787 exp: {5788 name: 'isDefined',5789 data: [5790 {5791 dtype: 'exp',5792 exp: {5793 name: 'getResponseItem',5794 data: [5795 {5796 str: 'covidweekly.40'5797 },5798 {5799 str: '1.1.178'5800 }5801 ]5802 }5803 }5804 ]5805 }5806 },5807 ]5808 },5809 follows: [5810 "covidweekly.40",5811 ],5812 version: 1,5813 validations: [],5814 components: {5815 role: "root",5816 items: [5817 {5818 role: "title",5819 content: [5820 {5821 code: "en",5822 parts: [5823 {5824 str: "What was your highest temperature measured?"5825 }5826 ]5827 }5828 ]5829 },5830 {5831 key: "1",5832 role: "responseGroup",5833 items: [5834 {5835 key: "1",5836 role: "singleChoiceGroup",5837 items: [5838 {5839 key: "181",5840 role: "option",5841 content: [5842 {5843 code: "en",5844 parts: [5845 {5846 str: "Below 37°C"5847 }5848 ]5849 }5850 ]5851 },5852 {5853 key: "182",5854 role: "option",5855 content: [5856 {5857 code: "en",5858 parts: [5859 {5860 str: "37° - 37.4°C"5861 }5862 ]5863 }5864 ]5865 },5866 {5867 key: "183",5868 role: "option",5869 content: [5870 {5871 code: "en",5872 parts: [5873 {5874 str: "37.5° - 37.9°C"5875 }5876 ]5877 }5878 ]5879 },5880 {5881 key: "184",5882 role: "option",5883 content: [5884 {5885 code: "en",5886 parts: [5887 {5888 str: "38° - 38.9°C"5889 }5890 ]5891 }5892 ]5893 },5894 {5895 key: "185",5896 role: "option",5897 content: [5898 {5899 code: "en",5900 parts: [5901 {5902 str: "39° - 39.9°C"5903 }5904 ]5905 }5906 ]5907 },5908 {5909 key: "186",5910 role: "option",5911 content: [5912 {5913 code: "en",5914 parts: [5915 {5916 str: "40°C or more"5917 }5918 ]5919 }5920 ]5921 },5922 {5923 key: "187",5924 role: "option",5925 content: [5926 {5927 code: "en",5928 parts: [5929 {5930 str: "I don't know/can't remember"5931 }5932 ]5933 }5934 ]5935 }5936 ]5937 }5938 ]5939 }5940 ]5941 }5942}5943const Q7: SurveySingleItem = {5944 key: "covidweekly.42",5945 // if report any symptoms5946 condition: {5947 name: "or",5948 data: [5949 {5950 dtype: 'exp',5951 exp: {5952 name: 'isDefined',5953 data: [5954 {5955 dtype: 'exp',5956 exp: {5957 name: 'getResponseItem',5958 data: [5959 {5960 str: 'covidweekly.32'5961 },5962 {5963 str: '1.1.142'5964 }5965 ]5966 }5967 }5968 ]5969 }5970 },5971 {5972 dtype: 'exp',5973 exp: {5974 name: 'isDefined',5975 data: [5976 {5977 dtype: 'exp',5978 exp: {5979 name: 'getResponseItem',5980 data: [5981 {5982 str: 'covidweekly.32'5983 },5984 {5985 str: '1.1.143'5986 }5987 ]5988 }5989 }5990 ]5991 }5992 },5993 {5994 dtype: 'exp',5995 exp: {5996 name: 'isDefined',5997 data: [5998 {5999 dtype: 'exp',6000 exp: {6001 name: 'getResponseItem',6002 data: [6003 {6004 str: 'covidweekly.32'6005 },6006 {6007 str: '1.1.144'6008 }6009 ]6010 }6011 }6012 ]6013 }6014 },6015 {6016 dtype: 'exp',6017 exp: {6018 name: 'isDefined',6019 data: [6020 {6021 dtype: 'exp',6022 exp: {6023 name: 'getResponseItem',6024 data: [6025 {6026 str: 'covidweekly.32'6027 },6028 {6029 str: '1.1.145'6030 }6031 ]6032 }6033 }6034 ]6035 }6036 },6037 {6038 dtype: 'exp',6039 exp: {6040 name: 'isDefined',6041 data: [6042 {6043 dtype: 'exp',6044 exp: {6045 name: 'getResponseItem',6046 data: [6047 {6048 str: 'covidweekly.32'6049 },6050 {6051 str: '1.1.146'6052 }6053 ]6054 }6055 }6056 ]6057 }6058 },6059 {6060 dtype: 'exp',6061 exp: {6062 name: 'isDefined',6063 data: [6064 {6065 dtype: 'exp',6066 exp: {6067 name: 'getResponseItem',6068 data: [6069 {6070 str: 'covidweekly.32'6071 },6072 {6073 str: '1.1.147'6074 }6075 ]6076 }6077 }6078 ]6079 }6080 },6081 {6082 dtype: 'exp',6083 exp: {6084 name: 'isDefined',6085 data: [6086 {6087 dtype: 'exp',6088 exp: {6089 name: 'getResponseItem',6090 data: [6091 {6092 str: 'covidweekly.32'6093 },6094 {6095 str: '1.1.148'6096 }6097 ]6098 }6099 }6100 ]6101 }6102 },6103 {6104 dtype: 'exp',6105 exp: {6106 name: 'isDefined',6107 data: [6108 {6109 dtype: 'exp',6110 exp: {6111 name: 'getResponseItem',6112 data: [6113 {6114 str: 'covidweekly.32'6115 },6116 {6117 str: '1.1.149'6118 }6119 ]6120 }6121 }6122 ]6123 }6124 },6125 {6126 dtype: 'exp',6127 exp: {6128 name: 'isDefined',6129 data: [6130 {6131 dtype: 'exp',6132 exp: {6133 name: 'getResponseItem',6134 data: [6135 {6136 str: 'covidweekly.32'6137 },6138 {6139 str: '1.1.150'6140 }6141 ]6142 }6143 }6144 ]6145 }6146 },6147 {6148 dtype: 'exp',6149 exp: {6150 name: 'isDefined',6151 data: [6152 {6153 dtype: 'exp',6154 exp: {6155 name: 'getResponseItem',6156 data: [6157 {6158 str: 'covidweekly.32'6159 },6160 {6161 str: '1.1.151'6162 }6163 ]6164 }6165 }6166 ]6167 }6168 },6169 {6170 dtype: 'exp',6171 exp: {6172 name: 'isDefined',6173 data: [6174 {6175 dtype: 'exp',6176 exp: {6177 name: 'getResponseItem',6178 data: [6179 {6180 str: 'covidweekly.32'6181 },6182 {6183 str: '1.1.152'6184 }6185 ]6186 }6187 }6188 ]6189 }6190 },6191 {6192 dtype: 'exp',6193 exp: {6194 name: 'isDefined',6195 data: [6196 {6197 dtype: 'exp',6198 exp: {6199 name: 'getResponseItem',6200 data: [6201 {6202 str: 'covidweekly.32'6203 },6204 {6205 str: '1.1.153'6206 }6207 ]6208 }6209 }6210 ]6211 }6212 },6213 {6214 dtype: 'exp',6215 exp: {6216 name: 'isDefined',6217 data: [6218 {6219 dtype: 'exp',6220 exp: {6221 name: 'getResponseItem',6222 data: [6223 {6224 str: 'covidweekly.32'6225 },6226 {6227 str: '1.1.154'6228 }6229 ]6230 }6231 }6232 ]6233 }6234 },6235 {6236 dtype: 'exp',6237 exp: {6238 name: 'isDefined',6239 data: [6240 {6241 dtype: 'exp',6242 exp: {6243 name: 'getResponseItem',6244 data: [6245 {6246 str: 'covidweekly.32'6247 },6248 {6249 str: '1.1.155'6250 }6251 ]6252 }6253 }6254 ]6255 }6256 },6257 {6258 dtype: 'exp',6259 exp: {6260 name: 'isDefined',6261 data: [6262 {6263 dtype: 'exp',6264 exp: {6265 name: 'getResponseItem',6266 data: [6267 {6268 str: 'covidweekly.32'6269 },6270 {6271 str: '1.1.156'6272 }6273 ]6274 }6275 }6276 ]6277 }6278 },6279 {6280 dtype: 'exp',6281 exp: {6282 name: 'isDefined',6283 data: [6284 {6285 dtype: 'exp',6286 exp: {6287 name: 'getResponseItem',6288 data: [6289 {6290 str: 'covidweekly.32'6291 },6292 {6293 str: '1.1.157'6294 }6295 ]6296 }6297 }6298 ]6299 }6300 },6301 {6302 dtype: 'exp',6303 exp: {6304 name: 'isDefined',6305 data: [6306 {6307 dtype: 'exp',6308 exp: {6309 name: 'getResponseItem',6310 data: [6311 {6312 str: 'covidweekly.32'6313 },6314 {6315 str: '1.1.158'6316 }6317 ]6318 }6319 }6320 ]6321 }6322 },6323 {6324 dtype: 'exp',6325 exp: {6326 name: 'isDefined',6327 data: [6328 {6329 dtype: 'exp',6330 exp: {6331 name: 'getResponseItem',6332 data: [6333 {6334 str: 'covidweekly.32'6335 },6336 {6337 str: '1.1.159'6338 }6339 ]6340 }6341 }6342 ]6343 }6344 },6345 {6346 dtype: 'exp',6347 exp: {6348 name: 'isDefined',6349 data: [6350 {6351 dtype: 'exp',6352 exp: {6353 name: 'getResponseItem',6354 data: [6355 {6356 str: 'covidweekly.32'6357 },6358 {6359 str: '1.1.160'6360 }6361 ]6362 }6363 }6364 ]6365 }6366 },6367 ]6368 },6369 version: 1,6370 validations: [],6371 components: {6372 role: "root",6373 items: [6374 {6375 role: "title",6376 content: [6377 {6378 code: "en",6379 parts: [6380 {6381 str: "Because of your symptoms, did you VISIT (see face to face) any medical services?"6382 }6383 ]6384 }6385 ]6386 },6387 {6388 key: "1",6389 role: "responseGroup",6390 items: [6391 {6392 key: "1",6393 role: "multipleChoiceGroup",6394 items: [6395 {6396 key: "188",6397 role: "option",6398 content: [6399 {6400 code: "en",6401 parts: [6402 {6403 str: "No"6404 }6405 ]6406 }6407 ]6408 },6409 {6410 key: "189",6411 role: "option",6412 content: [6413 {6414 code: "en",6415 parts: [6416 {6417 str: "GP or GP's practice nurse"6418 }6419 ]6420 }6421 ]6422 },6423 {6424 key: "190",6425 role: "option",6426 content: [6427 {6428 code: "en",6429 parts: [6430 {6431 str: "Hospital accident & emergency department / out of hours service"6432 }6433 ]6434 }6435 ]6436 },6437 {6438 key: "191",6439 role: "option",6440 content: [6441 {6442 code: "en",6443 parts: [6444 {6445 str: "Hospital admission"6446 }6447 ]6448 }6449 ]6450 },6451 {6452 key: "192",6453 role: "option",6454 content: [6455 {6456 code: "en",6457 parts: [6458 {6459 str: "Other medical services"6460 }6461 ]6462 }6463 ]6464 },6465 {6466 key: "193",6467 role: "option",6468 content: [6469 {6470 code: "en",6471 parts: [6472 {6473 str: "No, but I have an appointment scheduled"6474 }6475 ]6476 }6477 ]6478 }6479 ]6480 }6481 ]6482 }6483 ]6484 }6485}6486const Q7b: SurveySingleItem = {6487 key: "covidweekly.64",6488 // if report any symptoms6489 condition: {6490 name: "or",6491 data: [6492 {6493 dtype: 'exp',6494 exp: {6495 name: 'isDefined',6496 data: [6497 {6498 dtype: 'exp',6499 exp: {6500 name: 'getResponseItem',6501 data: [6502 {6503 str: 'covidweekly.32'6504 },6505 {6506 str: '1.1.142'6507 }6508 ]6509 }6510 }6511 ]6512 }6513 },6514 {6515 dtype: 'exp',6516 exp: {6517 name: 'isDefined',6518 data: [6519 {6520 dtype: 'exp',6521 exp: {6522 name: 'getResponseItem',6523 data: [6524 {6525 str: 'covidweekly.32'6526 },6527 {6528 str: '1.1.143'6529 }6530 ]6531 }6532 }6533 ]6534 }6535 },6536 {6537 dtype: 'exp',6538 exp: {6539 name: 'isDefined',6540 data: [6541 {6542 dtype: 'exp',6543 exp: {6544 name: 'getResponseItem',6545 data: [6546 {6547 str: 'covidweekly.32'6548 },6549 {6550 str: '1.1.144'6551 }6552 ]6553 }6554 }6555 ]6556 }6557 },6558 {6559 dtype: 'exp',6560 exp: {6561 name: 'isDefined',6562 data: [6563 {6564 dtype: 'exp',6565 exp: {6566 name: 'getResponseItem',6567 data: [6568 {6569 str: 'covidweekly.32'6570 },6571 {6572 str: '1.1.145'6573 }6574 ]6575 }6576 }6577 ]6578 }6579 },6580 {6581 dtype: 'exp',6582 exp: {6583 name: 'isDefined',6584 data: [6585 {6586 dtype: 'exp',6587 exp: {6588 name: 'getResponseItem',6589 data: [6590 {6591 str: 'covidweekly.32'6592 },6593 {6594 str: '1.1.146'6595 }6596 ]6597 }6598 }6599 ]6600 }6601 },6602 {6603 dtype: 'exp',6604 exp: {6605 name: 'isDefined',6606 data: [6607 {6608 dtype: 'exp',6609 exp: {6610 name: 'getResponseItem',6611 data: [6612 {6613 str: 'covidweekly.32'6614 },6615 {6616 str: '1.1.147'6617 }6618 ]6619 }6620 }6621 ]6622 }6623 },6624 {6625 dtype: 'exp',6626 exp: {6627 name: 'isDefined',6628 data: [6629 {6630 dtype: 'exp',6631 exp: {6632 name: 'getResponseItem',6633 data: [6634 {6635 str: 'covidweekly.32'6636 },6637 {6638 str: '1.1.148'6639 }6640 ]6641 }6642 }6643 ]6644 }6645 },6646 {6647 dtype: 'exp',6648 exp: {6649 name: 'isDefined',6650 data: [6651 {6652 dtype: 'exp',6653 exp: {6654 name: 'getResponseItem',6655 data: [6656 {6657 str: 'covidweekly.32'6658 },6659 {6660 str: '1.1.149'6661 }6662 ]6663 }6664 }6665 ]6666 }6667 },6668 {6669 dtype: 'exp',6670 exp: {6671 name: 'isDefined',6672 data: [6673 {6674 dtype: 'exp',6675 exp: {6676 name: 'getResponseItem',6677 data: [6678 {6679 str: 'covidweekly.32'6680 },6681 {6682 str: '1.1.150'6683 }6684 ]6685 }6686 }6687 ]6688 }6689 },6690 {6691 dtype: 'exp',6692 exp: {6693 name: 'isDefined',6694 data: [6695 {6696 dtype: 'exp',6697 exp: {6698 name: 'getResponseItem',6699 data: [6700 {6701 str: 'covidweekly.32'6702 },6703 {6704 str: '1.1.151'6705 }6706 ]6707 }6708 }6709 ]6710 }6711 },6712 {6713 dtype: 'exp',6714 exp: {6715 name: 'isDefined',6716 data: [6717 {6718 dtype: 'exp',6719 exp: {6720 name: 'getResponseItem',6721 data: [6722 {6723 str: 'covidweekly.32'6724 },6725 {6726 str: '1.1.152'6727 }6728 ]6729 }6730 }6731 ]6732 }6733 },6734 {6735 dtype: 'exp',6736 exp: {6737 name: 'isDefined',6738 data: [6739 {6740 dtype: 'exp',6741 exp: {6742 name: 'getResponseItem',6743 data: [6744 {6745 str: 'covidweekly.32'6746 },6747 {6748 str: '1.1.153'6749 }6750 ]6751 }6752 }6753 ]6754 }6755 },6756 {6757 dtype: 'exp',6758 exp: {6759 name: 'isDefined',6760 data: [6761 {6762 dtype: 'exp',6763 exp: {6764 name: 'getResponseItem',6765 data: [6766 {6767 str: 'covidweekly.32'6768 },6769 {6770 str: '1.1.154'6771 }6772 ]6773 }6774 }6775 ]6776 }6777 },6778 {6779 dtype: 'exp',6780 exp: {6781 name: 'isDefined',6782 data: [6783 {6784 dtype: 'exp',6785 exp: {6786 name: 'getResponseItem',6787 data: [6788 {6789 str: 'covidweekly.32'6790 },6791 {6792 str: '1.1.155'6793 }6794 ]6795 }6796 }6797 ]6798 }6799 },6800 {6801 dtype: 'exp',6802 exp: {6803 name: 'isDefined',6804 data: [6805 {6806 dtype: 'exp',6807 exp: {6808 name: 'getResponseItem',6809 data: [6810 {6811 str: 'covidweekly.32'6812 },6813 {6814 str: '1.1.156'6815 }6816 ]6817 }6818 }6819 ]6820 }6821 },6822 {6823 dtype: 'exp',6824 exp: {6825 name: 'isDefined',6826 data: [6827 {6828 dtype: 'exp',6829 exp: {6830 name: 'getResponseItem',6831 data: [6832 {6833 str: 'covidweekly.32'6834 },6835 {6836 str: '1.1.157'6837 }6838 ]6839 }6840 }6841 ]6842 }6843 },6844 {6845 dtype: 'exp',6846 exp: {6847 name: 'isDefined',6848 data: [6849 {6850 dtype: 'exp',6851 exp: {6852 name: 'getResponseItem',6853 data: [6854 {6855 str: 'covidweekly.32'6856 },6857 {6858 str: '1.1.158'6859 }6860 ]6861 }6862 }6863 ]6864 }6865 },6866 {6867 dtype: 'exp',6868 exp: {6869 name: 'isDefined',6870 data: [6871 {6872 dtype: 'exp',6873 exp: {6874 name: 'getResponseItem',6875 data: [6876 {6877 str: 'covidweekly.32'6878 },6879 {6880 str: '1.1.159'6881 }6882 ]6883 }6884 }6885 ]6886 }6887 },6888 {6889 dtype: 'exp',6890 exp: {6891 name: 'isDefined',6892 data: [6893 {6894 dtype: 'exp',6895 exp: {6896 name: 'getResponseItem',6897 data: [6898 {6899 str: 'covidweekly.32'6900 },6901 {6902 str: '1.1.160'6903 }6904 ]6905 }6906 }6907 ]6908 }6909 },6910 ]6911 },6912 follows: [6913 "covidweekly.42",6914 ],6915 version: 1,6916 validations: [],6917 components: {6918 role: "root",6919 items: [6920 {6921 role: "title",6922 content: [6923 {6924 code: "en",6925 parts: [6926 {6927 str: "How soon after your symptoms appeared did you first VISIT a medical service?"6928 }6929 ]6930 }6931 ]6932 },6933 {6934 key: "1",6935 role: "responseGroup",6936 items: [6937 {6938 key: "1",6939 role: "undefined",6940 items: []6941 }6942 ]6943 }6944 ]6945 }6946}6947const Qcov4: SurveySingleItem = {6948 key: "covidweekly.Qcov4",6949 // if report any symptoms6950 condition: {6951 name: "or",6952 data: [6953 {6954 dtype: 'exp',6955 exp: {6956 name: 'isDefined',6957 data: [6958 {6959 dtype: 'exp',6960 exp: {6961 name: 'getResponseItem',6962 data: [6963 {6964 str: 'covidweekly.32'6965 },6966 {6967 str: '1.1.142'6968 }6969 ]6970 }6971 }6972 ]6973 }6974 },6975 {6976 dtype: 'exp',6977 exp: {6978 name: 'isDefined',6979 data: [6980 {6981 dtype: 'exp',6982 exp: {6983 name: 'getResponseItem',6984 data: [6985 {6986 str: 'covidweekly.32'6987 },6988 {6989 str: '1.1.143'6990 }6991 ]6992 }6993 }6994 ]6995 }6996 },6997 {6998 dtype: 'exp',6999 exp: {7000 name: 'isDefined',7001 data: [7002 {7003 dtype: 'exp',7004 exp: {7005 name: 'getResponseItem',7006 data: [7007 {7008 str: 'covidweekly.32'7009 },7010 {7011 str: '1.1.144'7012 }7013 ]7014 }7015 }7016 ]7017 }7018 },7019 {7020 dtype: 'exp',7021 exp: {7022 name: 'isDefined',7023 data: [7024 {7025 dtype: 'exp',7026 exp: {7027 name: 'getResponseItem',7028 data: [7029 {7030 str: 'covidweekly.32'7031 },7032 {7033 str: '1.1.145'7034 }7035 ]7036 }7037 }7038 ]7039 }7040 },7041 {7042 dtype: 'exp',7043 exp: {7044 name: 'isDefined',7045 data: [7046 {7047 dtype: 'exp',7048 exp: {7049 name: 'getResponseItem',7050 data: [7051 {7052 str: 'covidweekly.32'7053 },7054 {7055 str: '1.1.146'7056 }7057 ]7058 }7059 }7060 ]7061 }7062 },7063 {7064 dtype: 'exp',7065 exp: {7066 name: 'isDefined',7067 data: [7068 {7069 dtype: 'exp',7070 exp: {7071 name: 'getResponseItem',7072 data: [7073 {7074 str: 'covidweekly.32'7075 },7076 {7077 str: '1.1.147'7078 }7079 ]7080 }7081 }7082 ]7083 }7084 },7085 {7086 dtype: 'exp',7087 exp: {7088 name: 'isDefined',7089 data: [7090 {7091 dtype: 'exp',7092 exp: {7093 name: 'getResponseItem',7094 data: [7095 {7096 str: 'covidweekly.32'7097 },7098 {7099 str: '1.1.148'7100 }7101 ]7102 }7103 }7104 ]7105 }7106 },7107 {7108 dtype: 'exp',7109 exp: {7110 name: 'isDefined',7111 data: [7112 {7113 dtype: 'exp',7114 exp: {7115 name: 'getResponseItem',7116 data: [7117 {7118 str: 'covidweekly.32'7119 },7120 {7121 str: '1.1.149'7122 }7123 ]7124 }7125 }7126 ]7127 }7128 },7129 {7130 dtype: 'exp',7131 exp: {7132 name: 'isDefined',7133 data: [7134 {7135 dtype: 'exp',7136 exp: {7137 name: 'getResponseItem',7138 data: [7139 {7140 str: 'covidweekly.32'7141 },7142 {7143 str: '1.1.150'7144 }7145 ]7146 }7147 }7148 ]7149 }7150 },7151 {7152 dtype: 'exp',7153 exp: {7154 name: 'isDefined',7155 data: [7156 {7157 dtype: 'exp',7158 exp: {7159 name: 'getResponseItem',7160 data: [7161 {7162 str: 'covidweekly.32'7163 },7164 {7165 str: '1.1.151'7166 }7167 ]7168 }7169 }7170 ]7171 }7172 },7173 {7174 dtype: 'exp',7175 exp: {7176 name: 'isDefined',7177 data: [7178 {7179 dtype: 'exp',7180 exp: {7181 name: 'getResponseItem',7182 data: [7183 {7184 str: 'covidweekly.32'7185 },7186 {7187 str: '1.1.152'7188 }7189 ]7190 }7191 }7192 ]7193 }7194 },7195 {7196 dtype: 'exp',7197 exp: {7198 name: 'isDefined',7199 data: [7200 {7201 dtype: 'exp',7202 exp: {7203 name: 'getResponseItem',7204 data: [7205 {7206 str: 'covidweekly.32'7207 },7208 {7209 str: '1.1.153'7210 }7211 ]7212 }7213 }7214 ]7215 }7216 },7217 {7218 dtype: 'exp',7219 exp: {7220 name: 'isDefined',7221 data: [7222 {7223 dtype: 'exp',7224 exp: {7225 name: 'getResponseItem',7226 data: [7227 {7228 str: 'covidweekly.32'7229 },7230 {7231 str: '1.1.154'7232 }7233 ]7234 }7235 }7236 ]7237 }7238 },7239 {7240 dtype: 'exp',7241 exp: {7242 name: 'isDefined',7243 data: [7244 {7245 dtype: 'exp',7246 exp: {7247 name: 'getResponseItem',7248 data: [7249 {7250 str: 'covidweekly.32'7251 },7252 {7253 str: '1.1.155'7254 }7255 ]7256 }7257 }7258 ]7259 }7260 },7261 {7262 dtype: 'exp',7263 exp: {7264 name: 'isDefined',7265 data: [7266 {7267 dtype: 'exp',7268 exp: {7269 name: 'getResponseItem',7270 data: [7271 {7272 str: 'covidweekly.32'7273 },7274 {7275 str: '1.1.156'7276 }7277 ]7278 }7279 }7280 ]7281 }7282 },7283 {7284 dtype: 'exp',7285 exp: {7286 name: 'isDefined',7287 data: [7288 {7289 dtype: 'exp',7290 exp: {7291 name: 'getResponseItem',7292 data: [7293 {7294 str: 'covidweekly.32'7295 },7296 {7297 str: '1.1.157'7298 }7299 ]7300 }7301 }7302 ]7303 }7304 },7305 {7306 dtype: 'exp',7307 exp: {7308 name: 'isDefined',7309 data: [7310 {7311 dtype: 'exp',7312 exp: {7313 name: 'getResponseItem',7314 data: [7315 {7316 str: 'covidweekly.32'7317 },7318 {7319 str: '1.1.158'7320 }7321 ]7322 }7323 }7324 ]7325 }7326 },7327 {7328 dtype: 'exp',7329 exp: {7330 name: 'isDefined',7331 data: [7332 {7333 dtype: 'exp',7334 exp: {7335 name: 'getResponseItem',7336 data: [7337 {7338 str: 'covidweekly.32'7339 },7340 {7341 str: '1.1.159'7342 }7343 ]7344 }7345 }7346 ]7347 }7348 },7349 {7350 dtype: 'exp',7351 exp: {7352 name: 'isDefined',7353 data: [7354 {7355 dtype: 'exp',7356 exp: {7357 name: 'getResponseItem',7358 data: [7359 {7360 str: 'covidweekly.32'7361 },7362 {7363 str: '1.1.160'7364 }7365 ]7366 }7367 }7368 ]7369 }7370 },7371 ]7372 },7373 version: 1,7374 validations: [],7375 components: {7376 role: "root",7377 items: [7378 {7379 role: "title",7380 content: [7381 {7382 code: "en",7383 parts: [7384 {7385 str: "Because of your symptoms, did you call [write the number of Covid19 emergency line of your country]?"7386 }7387 ]7388 }7389 ]7390 },7391 {7392 key: "1",7393 role: "responseGroup",7394 items: [7395 {7396 key: "1",7397 role: "singleChoiceGroup",7398 items: [7399 {7400 key: "1",7401 role: "option",7402 content: [7403 {7404 code: "en",7405 parts: [7406 {7407 str: "Yes"7408 }7409 ]7410 }7411 ]7412 },7413 {7414 key: "0",7415 role: "option",7416 content: [7417 {7418 code: "en",7419 parts: [7420 {7421 str: "No"7422 }7423 ]7424 }7425 ]7426 },7427 {7428 key: "2",7429 role: "option",7430 content: [7431 {7432 code: "en",7433 parts: [7434 {7435 str: "I don't know"7436 }7437 ]7438 }7439 ]7440 },7441 ]7442 }7443 ]7444 }7445 ]7446 }7447}7448const Qcov5: SurveySingleItem = {7449 key: "covidweekly.Qcov5",7450 // if report any symptoms7451 condition: {7452 name: "or",7453 data: [7454 {7455 dtype: 'exp',7456 exp: {7457 name: 'isDefined',7458 data: [7459 {7460 dtype: 'exp',7461 exp: {7462 name: 'getResponseItem',7463 data: [7464 {7465 str: 'covidweekly.32'7466 },7467 {7468 str: '1.1.142'7469 }7470 ]7471 }7472 }7473 ]7474 }7475 },7476 {7477 dtype: 'exp',7478 exp: {7479 name: 'isDefined',7480 data: [7481 {7482 dtype: 'exp',7483 exp: {7484 name: 'getResponseItem',7485 data: [7486 {7487 str: 'covidweekly.32'7488 },7489 {7490 str: '1.1.143'7491 }7492 ]7493 }7494 }7495 ]7496 }7497 },7498 {7499 dtype: 'exp',7500 exp: {7501 name: 'isDefined',7502 data: [7503 {7504 dtype: 'exp',7505 exp: {7506 name: 'getResponseItem',7507 data: [7508 {7509 str: 'covidweekly.32'7510 },7511 {7512 str: '1.1.144'7513 }7514 ]7515 }7516 }7517 ]7518 }7519 },7520 {7521 dtype: 'exp',7522 exp: {7523 name: 'isDefined',7524 data: [7525 {7526 dtype: 'exp',7527 exp: {7528 name: 'getResponseItem',7529 data: [7530 {7531 str: 'covidweekly.32'7532 },7533 {7534 str: '1.1.145'7535 }7536 ]7537 }7538 }7539 ]7540 }7541 },7542 {7543 dtype: 'exp',7544 exp: {7545 name: 'isDefined',7546 data: [7547 {7548 dtype: 'exp',7549 exp: {7550 name: 'getResponseItem',7551 data: [7552 {7553 str: 'covidweekly.32'7554 },7555 {7556 str: '1.1.146'7557 }7558 ]7559 }7560 }7561 ]7562 }7563 },7564 {7565 dtype: 'exp',7566 exp: {7567 name: 'isDefined',7568 data: [7569 {7570 dtype: 'exp',7571 exp: {7572 name: 'getResponseItem',7573 data: [7574 {7575 str: 'covidweekly.32'7576 },7577 {7578 str: '1.1.147'7579 }7580 ]7581 }7582 }7583 ]7584 }7585 },7586 {7587 dtype: 'exp',7588 exp: {7589 name: 'isDefined',7590 data: [7591 {7592 dtype: 'exp',7593 exp: {7594 name: 'getResponseItem',7595 data: [7596 {7597 str: 'covidweekly.32'7598 },7599 {7600 str: '1.1.148'7601 }7602 ]7603 }7604 }7605 ]7606 }7607 },7608 {7609 dtype: 'exp',7610 exp: {7611 name: 'isDefined',7612 data: [7613 {7614 dtype: 'exp',7615 exp: {7616 name: 'getResponseItem',7617 data: [7618 {7619 str: 'covidweekly.32'7620 },7621 {7622 str: '1.1.149'7623 }7624 ]7625 }7626 }7627 ]7628 }7629 },7630 {7631 dtype: 'exp',7632 exp: {7633 name: 'isDefined',7634 data: [7635 {7636 dtype: 'exp',7637 exp: {7638 name: 'getResponseItem',7639 data: [7640 {7641 str: 'covidweekly.32'7642 },7643 {7644 str: '1.1.150'7645 }7646 ]7647 }7648 }7649 ]7650 }7651 },7652 {7653 dtype: 'exp',7654 exp: {7655 name: 'isDefined',7656 data: [7657 {7658 dtype: 'exp',7659 exp: {7660 name: 'getResponseItem',7661 data: [7662 {7663 str: 'covidweekly.32'7664 },7665 {7666 str: '1.1.151'7667 }7668 ]7669 }7670 }7671 ]7672 }7673 },7674 {7675 dtype: 'exp',7676 exp: {7677 name: 'isDefined',7678 data: [7679 {7680 dtype: 'exp',7681 exp: {7682 name: 'getResponseItem',7683 data: [7684 {7685 str: 'covidweekly.32'7686 },7687 {7688 str: '1.1.152'7689 }7690 ]7691 }7692 }7693 ]7694 }7695 },7696 {7697 dtype: 'exp',7698 exp: {7699 name: 'isDefined',7700 data: [7701 {7702 dtype: 'exp',7703 exp: {7704 name: 'getResponseItem',7705 data: [7706 {7707 str: 'covidweekly.32'7708 },7709 {7710 str: '1.1.153'7711 }7712 ]7713 }7714 }7715 ]7716 }7717 },7718 {7719 dtype: 'exp',7720 exp: {7721 name: 'isDefined',7722 data: [7723 {7724 dtype: 'exp',7725 exp: {7726 name: 'getResponseItem',7727 data: [7728 {7729 str: 'covidweekly.32'7730 },7731 {7732 str: '1.1.154'7733 }7734 ]7735 }7736 }7737 ]7738 }7739 },7740 {7741 dtype: 'exp',7742 exp: {7743 name: 'isDefined',7744 data: [7745 {7746 dtype: 'exp',7747 exp: {7748 name: 'getResponseItem',7749 data: [7750 {7751 str: 'covidweekly.32'7752 },7753 {7754 str: '1.1.155'7755 }7756 ]7757 }7758 }7759 ]7760 }7761 },7762 {7763 dtype: 'exp',7764 exp: {7765 name: 'isDefined',7766 data: [7767 {7768 dtype: 'exp',7769 exp: {7770 name: 'getResponseItem',7771 data: [7772 {7773 str: 'covidweekly.32'7774 },7775 {7776 str: '1.1.156'7777 }7778 ]7779 }7780 }7781 ]7782 }7783 },7784 {7785 dtype: 'exp',7786 exp: {7787 name: 'isDefined',7788 data: [7789 {7790 dtype: 'exp',7791 exp: {7792 name: 'getResponseItem',7793 data: [7794 {7795 str: 'covidweekly.32'7796 },7797 {7798 str: '1.1.157'7799 }7800 ]7801 }7802 }7803 ]7804 }7805 },7806 {7807 dtype: 'exp',7808 exp: {7809 name: 'isDefined',7810 data: [7811 {7812 dtype: 'exp',7813 exp: {7814 name: 'getResponseItem',7815 data: [7816 {7817 str: 'covidweekly.32'7818 },7819 {7820 str: '1.1.158'7821 }7822 ]7823 }7824 }7825 ]7826 }7827 },7828 {7829 dtype: 'exp',7830 exp: {7831 name: 'isDefined',7832 data: [7833 {7834 dtype: 'exp',7835 exp: {7836 name: 'getResponseItem',7837 data: [7838 {7839 str: 'covidweekly.32'7840 },7841 {7842 str: '1.1.159'7843 }7844 ]7845 }7846 }7847 ]7848 }7849 },7850 {7851 dtype: 'exp',7852 exp: {7853 name: 'isDefined',7854 data: [7855 {7856 dtype: 'exp',7857 exp: {7858 name: 'getResponseItem',7859 data: [7860 {7861 str: 'covidweekly.32'7862 },7863 {7864 str: '1.1.160'7865 }7866 ]7867 }7868 }7869 ]7870 }7871 },7872 ]7873 },7874 version: 1,7875 validations: [],7876 components: {7877 role: "root",7878 items: [7879 {7880 role: "title",7881 content: [7882 {7883 code: "en",7884 parts: [7885 {7886 str: "Because of your symptoms, did you call [write the number of emergency line of your country]?"7887 }7888 ]7889 }7890 ]7891 },7892 {7893 key: "1",7894 role: "responseGroup",7895 items: [7896 {7897 key: "1",7898 role: "singleChoiceGroup",7899 items: [7900 {7901 key: "1",7902 role: "option",7903 content: [7904 {7905 code: "en",7906 parts: [7907 {7908 str: "Yes"7909 }7910 ]7911 }7912 ]7913 },7914 {7915 key: "0",7916 role: "option",7917 content: [7918 {7919 code: "en",7920 parts: [7921 {7922 str: "No"7923 }7924 ]7925 }7926 ]7927 },7928 {7929 key: "2",7930 role: "option",7931 content: [7932 {7933 code: "en",7934 parts: [7935 {7936 str: "I don't know"7937 }7938 ]7939 }7940 ]7941 },7942 ]7943 }7944 ]7945 }7946 ]7947 }7948}7949const Q8: SurveySingleItem = {7950 key: "covidweekly.44",7951 // if report any symptoms7952 condition: {7953 name: "or",7954 data: [7955 {7956 dtype: 'exp',7957 exp: {7958 name: 'isDefined',7959 data: [7960 {7961 dtype: 'exp',7962 exp: {7963 name: 'getResponseItem',7964 data: [7965 {7966 str: 'covidweekly.32'7967 },7968 {7969 str: '1.1.142'7970 }7971 ]7972 }7973 }7974 ]7975 }7976 },7977 {7978 dtype: 'exp',7979 exp: {7980 name: 'isDefined',7981 data: [7982 {7983 dtype: 'exp',7984 exp: {7985 name: 'getResponseItem',7986 data: [7987 {7988 str: 'covidweekly.32'7989 },7990 {7991 str: '1.1.143'7992 }7993 ]7994 }7995 }7996 ]7997 }7998 },7999 {8000 dtype: 'exp',8001 exp: {8002 name: 'isDefined',8003 data: [8004 {8005 dtype: 'exp',8006 exp: {8007 name: 'getResponseItem',8008 data: [8009 {8010 str: 'covidweekly.32'8011 },8012 {8013 str: '1.1.144'8014 }8015 ]8016 }8017 }8018 ]8019 }8020 },8021 {8022 dtype: 'exp',8023 exp: {8024 name: 'isDefined',8025 data: [8026 {8027 dtype: 'exp',8028 exp: {8029 name: 'getResponseItem',8030 data: [8031 {8032 str: 'covidweekly.32'8033 },8034 {8035 str: '1.1.145'8036 }8037 ]8038 }8039 }8040 ]8041 }8042 },8043 {8044 dtype: 'exp',8045 exp: {8046 name: 'isDefined',8047 data: [8048 {8049 dtype: 'exp',8050 exp: {8051 name: 'getResponseItem',8052 data: [8053 {8054 str: 'covidweekly.32'8055 },8056 {8057 str: '1.1.146'8058 }8059 ]8060 }8061 }8062 ]8063 }8064 },8065 {8066 dtype: 'exp',8067 exp: {8068 name: 'isDefined',8069 data: [8070 {8071 dtype: 'exp',8072 exp: {8073 name: 'getResponseItem',8074 data: [8075 {8076 str: 'covidweekly.32'8077 },8078 {8079 str: '1.1.147'8080 }8081 ]8082 }8083 }8084 ]8085 }8086 },8087 {8088 dtype: 'exp',8089 exp: {8090 name: 'isDefined',8091 data: [8092 {8093 dtype: 'exp',8094 exp: {8095 name: 'getResponseItem',8096 data: [8097 {8098 str: 'covidweekly.32'8099 },8100 {8101 str: '1.1.148'8102 }8103 ]8104 }8105 }8106 ]8107 }8108 },8109 {8110 dtype: 'exp',8111 exp: {8112 name: 'isDefined',8113 data: [8114 {8115 dtype: 'exp',8116 exp: {8117 name: 'getResponseItem',8118 data: [8119 {8120 str: 'covidweekly.32'8121 },8122 {8123 str: '1.1.149'8124 }8125 ]8126 }8127 }8128 ]8129 }8130 },8131 {8132 dtype: 'exp',8133 exp: {8134 name: 'isDefined',8135 data: [8136 {8137 dtype: 'exp',8138 exp: {8139 name: 'getResponseItem',8140 data: [8141 {8142 str: 'covidweekly.32'8143 },8144 {8145 str: '1.1.150'8146 }8147 ]8148 }8149 }8150 ]8151 }8152 },8153 {8154 dtype: 'exp',8155 exp: {8156 name: 'isDefined',8157 data: [8158 {8159 dtype: 'exp',8160 exp: {8161 name: 'getResponseItem',8162 data: [8163 {8164 str: 'covidweekly.32'8165 },8166 {8167 str: '1.1.151'8168 }8169 ]8170 }8171 }8172 ]8173 }8174 },8175 {8176 dtype: 'exp',8177 exp: {8178 name: 'isDefined',8179 data: [8180 {8181 dtype: 'exp',8182 exp: {8183 name: 'getResponseItem',8184 data: [8185 {8186 str: 'covidweekly.32'8187 },8188 {8189 str: '1.1.152'8190 }8191 ]8192 }8193 }8194 ]8195 }8196 },8197 {8198 dtype: 'exp',8199 exp: {8200 name: 'isDefined',8201 data: [8202 {8203 dtype: 'exp',8204 exp: {8205 name: 'getResponseItem',8206 data: [8207 {8208 str: 'covidweekly.32'8209 },8210 {8211 str: '1.1.153'8212 }8213 ]8214 }8215 }8216 ]8217 }8218 },8219 {8220 dtype: 'exp',8221 exp: {8222 name: 'isDefined',8223 data: [8224 {8225 dtype: 'exp',8226 exp: {8227 name: 'getResponseItem',8228 data: [8229 {8230 str: 'covidweekly.32'8231 },8232 {8233 str: '1.1.154'8234 }8235 ]8236 }8237 }8238 ]8239 }8240 },8241 {8242 dtype: 'exp',8243 exp: {8244 name: 'isDefined',8245 data: [8246 {8247 dtype: 'exp',8248 exp: {8249 name: 'getResponseItem',8250 data: [8251 {8252 str: 'covidweekly.32'8253 },8254 {8255 str: '1.1.155'8256 }8257 ]8258 }8259 }8260 ]8261 }8262 },8263 {8264 dtype: 'exp',8265 exp: {8266 name: 'isDefined',8267 data: [8268 {8269 dtype: 'exp',8270 exp: {8271 name: 'getResponseItem',8272 data: [8273 {8274 str: 'covidweekly.32'8275 },8276 {8277 str: '1.1.156'8278 }8279 ]8280 }8281 }8282 ]8283 }8284 },8285 {8286 dtype: 'exp',8287 exp: {8288 name: 'isDefined',8289 data: [8290 {8291 dtype: 'exp',8292 exp: {8293 name: 'getResponseItem',8294 data: [8295 {8296 str: 'covidweekly.32'8297 },8298 {8299 str: '1.1.157'8300 }8301 ]8302 }8303 }8304 ]8305 }8306 },8307 {8308 dtype: 'exp',8309 exp: {8310 name: 'isDefined',8311 data: [8312 {8313 dtype: 'exp',8314 exp: {8315 name: 'getResponseItem',8316 data: [8317 {8318 str: 'covidweekly.32'8319 },8320 {8321 str: '1.1.158'8322 }8323 ]8324 }8325 }8326 ]8327 }8328 },8329 {8330 dtype: 'exp',8331 exp: {8332 name: 'isDefined',8333 data: [8334 {8335 dtype: 'exp',8336 exp: {8337 name: 'getResponseItem',8338 data: [8339 {8340 str: 'covidweekly.32'8341 },8342 {8343 str: '1.1.159'8344 }8345 ]8346 }8347 }8348 ]8349 }8350 },8351 {8352 dtype: 'exp',8353 exp: {8354 name: 'isDefined',8355 data: [8356 {8357 dtype: 'exp',8358 exp: {8359 name: 'getResponseItem',8360 data: [8361 {8362 str: 'covidweekly.32'8363 },8364 {8365 str: '1.1.160'8366 }8367 ]8368 }8369 }8370 ]8371 }8372 },8373 ]8374 },8375 version: 1,8376 validations: [],8377 components: {8378 role: "root",8379 items: [8380 {8381 role: "title",8382 content: [8383 {8384 code: "en",8385 parts: [8386 {8387 str: "Because of your symptoms, did you contact via TELEPHONE or INTERNET any of medical services?"8388 }8389 ]8390 }8391 ]8392 },8393 {8394 key: "1",8395 role: "responseGroup",8396 items: [8397 {8398 key: "1",8399 role: "multipleChoiceGroup",8400 items: [8401 {8402 key: "202",8403 role: "option",8404 content: [8405 {8406 code: "en",8407 parts: [8408 {8409 str: "No"8410 }8411 ]8412 }8413 ]8414 },8415 {8416 key: "203",8417 role: "option",8418 content: [8419 {8420 code: "en",8421 parts: [8422 {8423 str: "GP - spoke to receptionist only"8424 }8425 ]8426 }8427 ]8428 },8429 {8430 key: "204",8431 role: "option",8432 content: [8433 {8434 code: "en",8435 parts: [8436 {8437 str: "GP - spoke to doctor or nurse"8438 }8439 ]8440 }8441 ]8442 },8443 {8444 key: "205",8445 role: "option",8446 content: [8447 {8448 code: "en",8449 parts: [8450 {8451 str: "NHS Direct / NHS 24 / NHS Choices"8452 }8453 ]8454 }8455 ]8456 },8457 {8458 key: "206",8459 role: "option",8460 content: [8461 {8462 code: "en",8463 parts: [8464 {8465 str: "NPFS"8466 }8467 ]8468 }8469 ]8470 },8471 {8472 key: "207",8473 role: "option",8474 content: [8475 {8476 code: "en",8477 parts: [8478 {8479 str: "Other"8480 }8481 ]8482 }8483 ]8484 }8485 ]8486 }8487 ]8488 }8489 ]8490 }8491}8492const Q8b: SurveySingleItem = {8493 key: "covidweekly.65",8494 // if report any symptoms8495 condition: {8496 name: 'and',8497 data: [8498 {8499 dtype: 'exp',8500 exp: {8501 name: 'responseHasKeysAny',8502 data: [8503 { str: 'covidweekly.44' },8504 { str: '1.1' },8505 { str: '203' },8506 { str: '204' },8507 { str: '205' },8508 { str: '206' },8509 ]8510 }8511 },8512 {8513 dtype: 'exp',8514 exp: {8515 name: "or",8516 data: [8517 {8518 dtype: 'exp',8519 exp: {8520 name: 'isDefined',8521 data: [8522 {8523 dtype: 'exp',8524 exp: {8525 name: 'getResponseItem',8526 data: [8527 {8528 str: 'covidweekly.32'8529 },8530 {8531 str: '1.1.142'8532 }8533 ]8534 }8535 }8536 ]8537 }8538 },8539 {8540 dtype: 'exp',8541 exp: {8542 name: 'isDefined',8543 data: [8544 {8545 dtype: 'exp',8546 exp: {8547 name: 'getResponseItem',8548 data: [8549 {8550 str: 'covidweekly.32'8551 },8552 {8553 str: '1.1.143'8554 }8555 ]8556 }8557 }8558 ]8559 }8560 },8561 {8562 dtype: 'exp',8563 exp: {8564 name: 'isDefined',8565 data: [8566 {8567 dtype: 'exp',8568 exp: {8569 name: 'getResponseItem',8570 data: [8571 {8572 str: 'covidweekly.32'8573 },8574 {8575 str: '1.1.144'8576 }8577 ]8578 }8579 }8580 ]8581 }8582 },8583 {8584 dtype: 'exp',8585 exp: {8586 name: 'isDefined',8587 data: [8588 {8589 dtype: 'exp',8590 exp: {8591 name: 'getResponseItem',8592 data: [8593 {8594 str: 'covidweekly.32'8595 },8596 {8597 str: '1.1.145'8598 }8599 ]8600 }8601 }8602 ]8603 }8604 },8605 {8606 dtype: 'exp',8607 exp: {8608 name: 'isDefined',8609 data: [8610 {8611 dtype: 'exp',8612 exp: {8613 name: 'getResponseItem',8614 data: [8615 {8616 str: 'covidweekly.32'8617 },8618 {8619 str: '1.1.146'8620 }8621 ]8622 }8623 }8624 ]8625 }8626 },8627 {8628 dtype: 'exp',8629 exp: {8630 name: 'isDefined',8631 data: [8632 {8633 dtype: 'exp',8634 exp: {8635 name: 'getResponseItem',8636 data: [8637 {8638 str: 'covidweekly.32'8639 },8640 {8641 str: '1.1.147'8642 }8643 ]8644 }8645 }8646 ]8647 }8648 },8649 {8650 dtype: 'exp',8651 exp: {8652 name: 'isDefined',8653 data: [8654 {8655 dtype: 'exp',8656 exp: {8657 name: 'getResponseItem',8658 data: [8659 {8660 str: 'covidweekly.32'8661 },8662 {8663 str: '1.1.148'8664 }8665 ]8666 }8667 }8668 ]8669 }8670 },8671 {8672 dtype: 'exp',8673 exp: {8674 name: 'isDefined',8675 data: [8676 {8677 dtype: 'exp',8678 exp: {8679 name: 'getResponseItem',8680 data: [8681 {8682 str: 'covidweekly.32'8683 },8684 {8685 str: '1.1.149'8686 }8687 ]8688 }8689 }8690 ]8691 }8692 },8693 {8694 dtype: 'exp',8695 exp: {8696 name: 'isDefined',8697 data: [8698 {8699 dtype: 'exp',8700 exp: {8701 name: 'getResponseItem',8702 data: [8703 {8704 str: 'covidweekly.32'8705 },8706 {8707 str: '1.1.150'8708 }8709 ]8710 }8711 }8712 ]8713 }8714 },8715 {8716 dtype: 'exp',8717 exp: {8718 name: 'isDefined',8719 data: [8720 {8721 dtype: 'exp',8722 exp: {8723 name: 'getResponseItem',8724 data: [8725 {8726 str: 'covidweekly.32'8727 },8728 {8729 str: '1.1.151'8730 }8731 ]8732 }8733 }8734 ]8735 }8736 },8737 {8738 dtype: 'exp',8739 exp: {8740 name: 'isDefined',8741 data: [8742 {8743 dtype: 'exp',8744 exp: {8745 name: 'getResponseItem',8746 data: [8747 {8748 str: 'covidweekly.32'8749 },8750 {8751 str: '1.1.152'8752 }8753 ]8754 }8755 }8756 ]8757 }8758 },8759 {8760 dtype: 'exp',8761 exp: {8762 name: 'isDefined',8763 data: [8764 {8765 dtype: 'exp',8766 exp: {8767 name: 'getResponseItem',8768 data: [8769 {8770 str: 'covidweekly.32'8771 },8772 {8773 str: '1.1.153'8774 }8775 ]8776 }8777 }8778 ]8779 }8780 },8781 {8782 dtype: 'exp',8783 exp: {8784 name: 'isDefined',8785 data: [8786 {8787 dtype: 'exp',8788 exp: {8789 name: 'getResponseItem',8790 data: [8791 {8792 str: 'covidweekly.32'8793 },8794 {8795 str: '1.1.154'8796 }8797 ]8798 }8799 }8800 ]8801 }8802 },8803 {8804 dtype: 'exp',8805 exp: {8806 name: 'isDefined',8807 data: [8808 {8809 dtype: 'exp',8810 exp: {8811 name: 'getResponseItem',8812 data: [8813 {8814 str: 'covidweekly.32'8815 },8816 {8817 str: '1.1.155'8818 }8819 ]8820 }8821 }8822 ]8823 }8824 },8825 {8826 dtype: 'exp',8827 exp: {8828 name: 'isDefined',8829 data: [8830 {8831 dtype: 'exp',8832 exp: {8833 name: 'getResponseItem',8834 data: [8835 {8836 str: 'covidweekly.32'8837 },8838 {8839 str: '1.1.156'8840 }8841 ]8842 }8843 }8844 ]8845 }8846 },8847 {8848 dtype: 'exp',8849 exp: {8850 name: 'isDefined',8851 data: [8852 {8853 dtype: 'exp',8854 exp: {8855 name: 'getResponseItem',8856 data: [8857 {8858 str: 'covidweekly.32'8859 },8860 {8861 str: '1.1.157'8862 }8863 ]8864 }8865 }8866 ]8867 }8868 },8869 {8870 dtype: 'exp',8871 exp: {8872 name: 'isDefined',8873 data: [8874 {8875 dtype: 'exp',8876 exp: {8877 name: 'getResponseItem',8878 data: [8879 {8880 str: 'covidweekly.32'8881 },8882 {8883 str: '1.1.158'8884 }8885 ]8886 }8887 }8888 ]8889 }8890 },8891 {8892 dtype: 'exp',8893 exp: {8894 name: 'isDefined',8895 data: [8896 {8897 dtype: 'exp',8898 exp: {8899 name: 'getResponseItem',8900 data: [8901 {8902 str: 'covidweekly.32'8903 },8904 {8905 str: '1.1.159'8906 }8907 ]8908 }8909 }8910 ]8911 }8912 },8913 {8914 dtype: 'exp',8915 exp: {8916 name: 'isDefined',8917 data: [8918 {8919 dtype: 'exp',8920 exp: {8921 name: 'getResponseItem',8922 data: [8923 {8924 str: 'covidweekly.32'8925 },8926 {8927 str: '1.1.160'8928 }8929 ]8930 }8931 }8932 ]8933 }8934 }8935 ]8936 }8937 }8938 ]8939 },8940 follows: [8941 "covidweekly.44",8942 ],8943 version: 1,8944 validations: [],8945 components: {8946 role: "root",8947 items: [8948 {8949 role: "title",8950 content: [8951 {8952 code: "en",8953 parts: [8954 {8955 str: "How soon after your symptoms appeared did you first contact a medical service via TELEPHONE or INTERNET?"8956 }8957 ]8958 }8959 ]8960 },8961 {8962 key: "1",8963 role: "responseGroup",8964 items: [8965 {8966 key: '0', role: 'dropDownGroup', content: [{ code: 'en', parts: [{ str: 'GP - spoke to receptionist only' }] }],8967 displayCondition: {8968 name: 'isDefined',8969 data: [8970 {8971 dtype: 'exp',8972 exp: {8973 name: 'getResponseItem',8974 data: [8975 {8976 str: 'covidweekly.44'8977 },8978 {8979 str: '1.1.203'8980 }8981 ]8982 }8983 }8984 ]8985 },8986 items: [8987 { key: 'o1', role: 'option', content: [{ code: 'en', parts: [{ str: 'Same day' }] }] },8988 { key: 'o2', role: 'option', content: [{ code: 'en', parts: [{ str: '1 day' }] }] },8989 { key: 'o3', role: 'option', content: [{ code: 'en', parts: [{ str: '2 days' }] }] },8990 { key: 'o4', role: 'option', content: [{ code: 'en', parts: [{ str: '3 days' }] }] },8991 { key: 'o5', role: 'option', content: [{ code: 'en', parts: [{ str: '4 days' }] }] },8992 { key: 'o6', role: 'option', content: [{ code: 'en', parts: [{ str: '5-7 days' }] }] },8993 { key: 'o7', role: 'option', content: [{ code: 'en', parts: [{ str: 'more than 7 days' }] }] },8994 { key: 'o8', role: 'option', content: [{ code: 'en', parts: [{ str: 'I don\'t know/can\'t remember' }] }] },8995 ]8996 },8997 {8998 key: '1', role: 'dropDownGroup', content: [{ code: 'en', parts: [{ str: 'GP - spoke to doctor or nurse' }] }],8999 displayCondition: {9000 name: 'isDefined',9001 data: [9002 {9003 dtype: 'exp',9004 exp: {9005 name: 'getResponseItem',9006 data: [9007 {9008 str: 'covidweekly.44'9009 },9010 {9011 str: '1.1.204'9012 }9013 ]9014 }9015 }9016 ]9017 },9018 items: [9019 { key: 'o1', role: 'option', content: [{ code: 'en', parts: [{ str: 'Same day' }] }] },9020 { key: 'o2', role: 'option', content: [{ code: 'en', parts: [{ str: '1 day' }] }] },9021 { key: 'o3', role: 'option', content: [{ code: 'en', parts: [{ str: '2 days' }] }] },9022 { key: 'o4', role: 'option', content: [{ code: 'en', parts: [{ str: '3 days' }] }] },9023 { key: 'o5', role: 'option', content: [{ code: 'en', parts: [{ str: '4 days' }] }] },9024 { key: 'o6', role: 'option', content: [{ code: 'en', parts: [{ str: '5-7 days' }] }] },9025 { key: 'o7', role: 'option', content: [{ code: 'en', parts: [{ str: 'more than 7 days' }] }] },9026 { key: 'o8', role: 'option', content: [{ code: 'en', parts: [{ str: 'I don\'t know/can\'t remember' }] }] },9027 ]9028 },9029 {9030 key: '2', role: 'dropDownGroup', content: [{ code: 'en', parts: [{ str: 'NHS Direct / NHS 24 / NHS Choices' }] }],9031 displayCondition: {9032 name: 'isDefined',9033 data: [9034 {9035 dtype: 'exp',9036 exp: {9037 name: 'getResponseItem',9038 data: [9039 {9040 str: 'covidweekly.44'9041 },9042 {9043 str: '1.1.205'9044 }9045 ]9046 }9047 }9048 ]9049 },9050 items: [9051 { key: 'o1', role: 'option', content: [{ code: 'en', parts: [{ str: 'Same day' }] }] },9052 { key: 'o2', role: 'option', content: [{ code: 'en', parts: [{ str: '1 day' }] }] },9053 { key: 'o3', role: 'option', content: [{ code: 'en', parts: [{ str: '2 days' }] }] },9054 { key: 'o4', role: 'option', content: [{ code: 'en', parts: [{ str: '3 days' }] }] },9055 { key: 'o5', role: 'option', content: [{ code: 'en', parts: [{ str: '4 days' }] }] },9056 { key: 'o6', role: 'option', content: [{ code: 'en', parts: [{ str: '5-7 days' }] }] },9057 { key: 'o7', role: 'option', content: [{ code: 'en', parts: [{ str: 'more than 7 days' }] }] },9058 { key: 'o8', role: 'option', content: [{ code: 'en', parts: [{ str: 'I don\'t know/can\'t remember' }] }] },9059 ]9060 },9061 {9062 key: '3', role: 'dropDownGroup', content: [{ code: 'en', parts: [{ str: 'NPFS' }] }],9063 displayCondition: {9064 name: 'isDefined',9065 data: [9066 {9067 dtype: 'exp',9068 exp: {9069 name: 'getResponseItem',9070 data: [9071 {9072 str: 'covidweekly.44'9073 },9074 {9075 str: '1.1.206'9076 }9077 ]9078 }9079 }9080 ]9081 },9082 items: [9083 { key: 'o1', role: 'option', content: [{ code: 'en', parts: [{ str: 'Same day' }] }] },9084 { key: 'o2', role: 'option', content: [{ code: 'en', parts: [{ str: '1 day' }] }] },9085 { key: 'o3', role: 'option', content: [{ code: 'en', parts: [{ str: '2 days' }] }] },9086 { key: 'o4', role: 'option', content: [{ code: 'en', parts: [{ str: '3 days' }] }] },9087 { key: 'o5', role: 'option', content: [{ code: 'en', parts: [{ str: '4 days' }] }] },9088 { key: 'o6', role: 'option', content: [{ code: 'en', parts: [{ str: '5-7 days' }] }] },9089 { key: 'o7', role: 'option', content: [{ code: 'en', parts: [{ str: 'more than 7 days' }] }] },9090 { key: 'o8', role: 'option', content: [{ code: 'en', parts: [{ str: 'I don\'t know/can\'t remember' }] }] },9091 ]9092 },9093 ]9094 }9095 ]9096 }9097}9098const Q9: SurveySingleItem = {9099 key: "covidweekly.46",9100 // if report any symptoms9101 condition: {9102 name: "or",9103 data: [9104 {9105 dtype: 'exp',9106 exp: {9107 name: 'isDefined',9108 data: [9109 {9110 dtype: 'exp',9111 exp: {9112 name: 'getResponseItem',9113 data: [9114 {9115 str: 'covidweekly.32'9116 },9117 {9118 str: '1.1.142'9119 }9120 ]9121 }9122 }9123 ]9124 }9125 },9126 {9127 dtype: 'exp',9128 exp: {9129 name: 'isDefined',9130 data: [9131 {9132 dtype: 'exp',9133 exp: {9134 name: 'getResponseItem',9135 data: [9136 {9137 str: 'covidweekly.32'9138 },9139 {9140 str: '1.1.143'9141 }9142 ]9143 }9144 }9145 ]9146 }9147 },9148 {9149 dtype: 'exp',9150 exp: {9151 name: 'isDefined',9152 data: [9153 {9154 dtype: 'exp',9155 exp: {9156 name: 'getResponseItem',9157 data: [9158 {9159 str: 'covidweekly.32'9160 },9161 {9162 str: '1.1.144'9163 }9164 ]9165 }9166 }9167 ]9168 }9169 },9170 {9171 dtype: 'exp',9172 exp: {9173 name: 'isDefined',9174 data: [9175 {9176 dtype: 'exp',9177 exp: {9178 name: 'getResponseItem',9179 data: [9180 {9181 str: 'covidweekly.32'9182 },9183 {9184 str: '1.1.145'9185 }9186 ]9187 }9188 }9189 ]9190 }9191 },9192 {9193 dtype: 'exp',9194 exp: {9195 name: 'isDefined',9196 data: [9197 {9198 dtype: 'exp',9199 exp: {9200 name: 'getResponseItem',9201 data: [9202 {9203 str: 'covidweekly.32'9204 },9205 {9206 str: '1.1.146'9207 }9208 ]9209 }9210 }9211 ]9212 }9213 },9214 {9215 dtype: 'exp',9216 exp: {9217 name: 'isDefined',9218 data: [9219 {9220 dtype: 'exp',9221 exp: {9222 name: 'getResponseItem',9223 data: [9224 {9225 str: 'covidweekly.32'9226 },9227 {9228 str: '1.1.147'9229 }9230 ]9231 }9232 }9233 ]9234 }9235 },9236 {9237 dtype: 'exp',9238 exp: {9239 name: 'isDefined',9240 data: [9241 {9242 dtype: 'exp',9243 exp: {9244 name: 'getResponseItem',9245 data: [9246 {9247 str: 'covidweekly.32'9248 },9249 {9250 str: '1.1.148'9251 }9252 ]9253 }9254 }9255 ]9256 }9257 },9258 {9259 dtype: 'exp',9260 exp: {9261 name: 'isDefined',9262 data: [9263 {9264 dtype: 'exp',9265 exp: {9266 name: 'getResponseItem',9267 data: [9268 {9269 str: 'covidweekly.32'9270 },9271 {9272 str: '1.1.149'9273 }9274 ]9275 }9276 }9277 ]9278 }9279 },9280 {9281 dtype: 'exp',9282 exp: {9283 name: 'isDefined',9284 data: [9285 {9286 dtype: 'exp',9287 exp: {9288 name: 'getResponseItem',9289 data: [9290 {9291 str: 'covidweekly.32'9292 },9293 {9294 str: '1.1.150'9295 }9296 ]9297 }9298 }9299 ]9300 }9301 },9302 {9303 dtype: 'exp',9304 exp: {9305 name: 'isDefined',9306 data: [9307 {9308 dtype: 'exp',9309 exp: {9310 name: 'getResponseItem',9311 data: [9312 {9313 str: 'covidweekly.32'9314 },9315 {9316 str: '1.1.151'9317 }9318 ]9319 }9320 }9321 ]9322 }9323 },9324 {9325 dtype: 'exp',9326 exp: {9327 name: 'isDefined',9328 data: [9329 {9330 dtype: 'exp',9331 exp: {9332 name: 'getResponseItem',9333 data: [9334 {9335 str: 'covidweekly.32'9336 },9337 {9338 str: '1.1.152'9339 }9340 ]9341 }9342 }9343 ]9344 }9345 },9346 {9347 dtype: 'exp',9348 exp: {9349 name: 'isDefined',9350 data: [9351 {9352 dtype: 'exp',9353 exp: {9354 name: 'getResponseItem',9355 data: [9356 {9357 str: 'covidweekly.32'9358 },9359 {9360 str: '1.1.153'9361 }9362 ]9363 }9364 }9365 ]9366 }9367 },9368 {9369 dtype: 'exp',9370 exp: {9371 name: 'isDefined',9372 data: [9373 {9374 dtype: 'exp',9375 exp: {9376 name: 'getResponseItem',9377 data: [9378 {9379 str: 'covidweekly.32'9380 },9381 {9382 str: '1.1.154'9383 }9384 ]9385 }9386 }9387 ]9388 }9389 },9390 {9391 dtype: 'exp',9392 exp: {9393 name: 'isDefined',9394 data: [9395 {9396 dtype: 'exp',9397 exp: {9398 name: 'getResponseItem',9399 data: [9400 {9401 str: 'covidweekly.32'9402 },9403 {9404 str: '1.1.155'9405 }9406 ]9407 }9408 }9409 ]9410 }9411 },9412 {9413 dtype: 'exp',9414 exp: {9415 name: 'isDefined',9416 data: [9417 {9418 dtype: 'exp',9419 exp: {9420 name: 'getResponseItem',9421 data: [9422 {9423 str: 'covidweekly.32'9424 },9425 {9426 str: '1.1.156'9427 }9428 ]9429 }9430 }9431 ]9432 }9433 },9434 {9435 dtype: 'exp',9436 exp: {9437 name: 'isDefined',9438 data: [9439 {9440 dtype: 'exp',9441 exp: {9442 name: 'getResponseItem',9443 data: [9444 {9445 str: 'covidweekly.32'9446 },9447 {9448 str: '1.1.157'9449 }9450 ]9451 }9452 }9453 ]9454 }9455 },9456 {9457 dtype: 'exp',9458 exp: {9459 name: 'isDefined',9460 data: [9461 {9462 dtype: 'exp',9463 exp: {9464 name: 'getResponseItem',9465 data: [9466 {9467 str: 'covidweekly.32'9468 },9469 {9470 str: '1.1.158'9471 }9472 ]9473 }9474 }9475 ]9476 }9477 },9478 {9479 dtype: 'exp',9480 exp: {9481 name: 'isDefined',9482 data: [9483 {9484 dtype: 'exp',9485 exp: {9486 name: 'getResponseItem',9487 data: [9488 {9489 str: 'covidweekly.32'9490 },9491 {9492 str: '1.1.159'9493 }9494 ]9495 }9496 }9497 ]9498 }9499 },9500 {9501 dtype: 'exp',9502 exp: {9503 name: 'isDefined',9504 data: [9505 {9506 dtype: 'exp',9507 exp: {9508 name: 'getResponseItem',9509 data: [9510 {9511 str: 'covidweekly.32'9512 },9513 {9514 str: '1.1.160'9515 }9516 ]9517 }9518 }9519 ]9520 }9521 },9522 ]9523 },9524 version: 1,9525 validations: [],9526 components: {9527 role: "root",9528 items: [9529 {9530 role: "title",9531 content: [9532 {9533 code: "en",9534 parts: [9535 {9536 str: "Did you take medication for these symptoms (tick all that apply)?"9537 }9538 ]9539 }9540 ]9541 },9542 {9543 key: "1",9544 role: "responseGroup",9545 items: [9546 {9547 key: "1",9548 role: "multipleChoiceGroup",9549 items: [9550 {9551 key: "216",9552 role: "option",9553 content: [9554 {9555 code: "en",9556 parts: [9557 {9558 str: "No medication"9559 }9560 ]9561 }9562 ]9563 },9564 {9565 key: "217",9566 role: "option",9567 content: [9568 {9569 code: "en",9570 parts: [9571 {9572 str: "Pain killers (e.g. paracetamol, lemsip, ibuprofen, aspirin, calpol, etc)"9573 }9574 ]9575 }9576 ]9577 },9578 {9579 key: "218",9580 role: "option",9581 content: [9582 {9583 code: "en",9584 parts: [9585 {9586 str: "Cough medication (e.g. expectorants)"9587 }9588 ]9589 }9590 ]9591 },9592 {9593 key: "219",9594 role: "option",9595 content: [9596 {9597 code: "en",9598 parts: [9599 {9600 str: "Antivirals (Tamiflu, Relenza)"9601 }9602 ]9603 }9604 ]9605 },9606 {9607 key: "220",9608 role: "option",9609 content: [9610 {9611 code: "en",9612 parts: [9613 {9614 str: "Antibiotics"9615 }9616 ]9617 }9618 ]9619 },9620 {9621 key: "7",9622 role: "option",9623 content: [9624 {9625 code: "en",9626 parts: [9627 {9628 str: "Homeopathy"9629 }9630 ]9631 }9632 ]9633 },9634 {9635 key: "8",9636 role: "option",9637 content: [9638 {9639 code: "en",9640 parts: [9641 {9642 str: "Alternative medicine (essential oil, phytotherapy, etc.)"9643 }9644 ]9645 }9646 ]9647 },9648 {9649 key: "221",9650 role: "option",9651 content: [9652 {9653 code: "en",9654 parts: [9655 {9656 str: "Other"9657 }9658 ]9659 }9660 ]9661 },9662 {9663 key: "222",9664 role: "option",9665 content: [9666 {9667 code: "en",9668 parts: [9669 {9670 str: "I don't know/can't remember"9671 }9672 ]9673 }9674 ]9675 }9676 ]9677 }9678 ]9679 }9680 ]9681 }9682}9683const Q9b: SurveySingleItem = {9684 key: "covidweekly.47",9685 condition: {9686 name: 'isDefined',9687 data: [9688 {9689 dtype: 'exp',9690 exp: {9691 name: 'getResponseItem',9692 data: [9693 {9694 str: 'covidweekly.46'9695 },9696 {9697 str: '1.1.219'9698 }9699 ]9700 }9701 }9702 ]9703 },9704 follows: [9705 "covidweekly.46",9706 ],9707 version: 1,9708 validations: [],9709 components: {9710 role: "root",9711 items: [9712 {9713 role: "title",9714 content: [9715 {9716 code: "en",9717 parts: [9718 {9719 str: "How long after the beginning of your symptoms did you start taking antiviral medication?"9720 }9721 ]9722 }9723 ]9724 },9725 {9726 key: "1",9727 role: "responseGroup",9728 items: [9729 {9730 key: "1",9731 role: "singleChoiceGroup",9732 items: [9733 {9734 key: "223",9735 role: "option",9736 content: [9737 {9738 code: "en",9739 parts: [9740 {9741 str: "Same day (within 24 hours)"9742 }9743 ]9744 }9745 ]9746 },9747 {9748 key: "224",9749 role: "option",9750 content: [9751 {9752 code: "en",9753 parts: [9754 {9755 str: "1 day"9756 }9757 ]9758 }9759 ]9760 },9761 {9762 key: "225",9763 role: "option",9764 content: [9765 {9766 code: "en",9767 parts: [9768 {9769 str: "2 days"9770 }9771 ]9772 }9773 ]9774 },9775 {9776 key: "226",9777 role: "option",9778 content: [9779 {9780 code: "en",9781 parts: [9782 {9783 str: "3 days"9784 }9785 ]9786 }9787 ]9788 },9789 {9790 key: "227",9791 role: "option",9792 content: [9793 {9794 code: "en",9795 parts: [9796 {9797 str: "4 days"9798 }9799 ]9800 }9801 ]9802 },9803 {9804 key: "228",9805 role: "option",9806 content: [9807 {9808 code: "en",9809 parts: [9810 {9811 str: "5-7 days"9812 }9813 ]9814 }9815 ]9816 },9817 {9818 key: "229",9819 role: "option",9820 content: [9821 {9822 code: "en",9823 parts: [9824 {9825 str: "More than 7 days"9826 }9827 ]9828 }9829 ]9830 },9831 {9832 key: "230",9833 role: "option",9834 content: [9835 {9836 code: "en",9837 parts: [9838 {9839 str: "I don't know/can't remember"9840 }9841 ]9842 }9843 ]9844 }9845 ]9846 }9847 ]9848 }9849 ]9850 }9851}9852const Q14: SurveySingleItem = {9853 key: "covidweekly.Q14",9854 // if report any symptoms9855 condition: {9856 name: "or",9857 data: [9858 {9859 dtype: 'exp',9860 exp: {9861 name: 'isDefined',9862 data: [9863 {9864 dtype: 'exp',9865 exp: {9866 name: 'getResponseItem',9867 data: [9868 {9869 str: 'covidweekly.32'9870 },9871 {9872 str: '1.1.142'9873 }9874 ]9875 }9876 }9877 ]9878 }9879 },9880 {9881 dtype: 'exp',9882 exp: {9883 name: 'isDefined',9884 data: [9885 {9886 dtype: 'exp',9887 exp: {9888 name: 'getResponseItem',9889 data: [9890 {9891 str: 'covidweekly.32'9892 },9893 {9894 str: '1.1.143'9895 }9896 ]9897 }9898 }9899 ]9900 }9901 },9902 {9903 dtype: 'exp',9904 exp: {9905 name: 'isDefined',9906 data: [9907 {9908 dtype: 'exp',9909 exp: {9910 name: 'getResponseItem',9911 data: [9912 {9913 str: 'covidweekly.32'9914 },9915 {9916 str: '1.1.144'9917 }9918 ]9919 }9920 }9921 ]9922 }9923 },9924 {9925 dtype: 'exp',9926 exp: {9927 name: 'isDefined',9928 data: [9929 {9930 dtype: 'exp',9931 exp: {9932 name: 'getResponseItem',9933 data: [9934 {9935 str: 'covidweekly.32'9936 },9937 {9938 str: '1.1.145'9939 }9940 ]9941 }9942 }9943 ]9944 }9945 },9946 {9947 dtype: 'exp',9948 exp: {9949 name: 'isDefined',9950 data: [9951 {9952 dtype: 'exp',9953 exp: {9954 name: 'getResponseItem',9955 data: [9956 {9957 str: 'covidweekly.32'9958 },9959 {9960 str: '1.1.146'9961 }9962 ]9963 }9964 }9965 ]9966 }9967 },9968 {9969 dtype: 'exp',9970 exp: {9971 name: 'isDefined',9972 data: [9973 {9974 dtype: 'exp',9975 exp: {9976 name: 'getResponseItem',9977 data: [9978 {9979 str: 'covidweekly.32'9980 },9981 {9982 str: '1.1.147'9983 }9984 ]9985 }9986 }9987 ]9988 }9989 },9990 {9991 dtype: 'exp',9992 exp: {9993 name: 'isDefined',9994 data: [9995 {9996 dtype: 'exp',9997 exp: {9998 name: 'getResponseItem',9999 data: [10000 {10001 str: 'covidweekly.32'10002 },10003 {10004 str: '1.1.148'10005 }10006 ]10007 }10008 }10009 ]10010 }10011 },10012 {10013 dtype: 'exp',10014 exp: {10015 name: 'isDefined',10016 data: [10017 {10018 dtype: 'exp',10019 exp: {10020 name: 'getResponseItem',10021 data: [10022 {10023 str: 'covidweekly.32'10024 },10025 {10026 str: '1.1.149'10027 }10028 ]10029 }10030 }10031 ]10032 }10033 },10034 {10035 dtype: 'exp',10036 exp: {10037 name: 'isDefined',10038 data: [10039 {10040 dtype: 'exp',10041 exp: {10042 name: 'getResponseItem',10043 data: [10044 {10045 str: 'covidweekly.32'10046 },10047 {10048 str: '1.1.150'10049 }10050 ]10051 }10052 }10053 ]10054 }10055 },10056 {10057 dtype: 'exp',10058 exp: {10059 name: 'isDefined',10060 data: [10061 {10062 dtype: 'exp',10063 exp: {10064 name: 'getResponseItem',10065 data: [10066 {10067 str: 'covidweekly.32'10068 },10069 {10070 str: '1.1.151'10071 }10072 ]10073 }10074 }10075 ]10076 }10077 },10078 {10079 dtype: 'exp',10080 exp: {10081 name: 'isDefined',10082 data: [10083 {10084 dtype: 'exp',10085 exp: {10086 name: 'getResponseItem',10087 data: [10088 {10089 str: 'covidweekly.32'10090 },10091 {10092 str: '1.1.152'10093 }10094 ]10095 }10096 }10097 ]10098 }10099 },10100 {10101 dtype: 'exp',10102 exp: {10103 name: 'isDefined',10104 data: [10105 {10106 dtype: 'exp',10107 exp: {10108 name: 'getResponseItem',10109 data: [10110 {10111 str: 'covidweekly.32'10112 },10113 {10114 str: '1.1.153'10115 }10116 ]10117 }10118 }10119 ]10120 }10121 },10122 {10123 dtype: 'exp',10124 exp: {10125 name: 'isDefined',10126 data: [10127 {10128 dtype: 'exp',10129 exp: {10130 name: 'getResponseItem',10131 data: [10132 {10133 str: 'covidweekly.32'10134 },10135 {10136 str: '1.1.154'10137 }10138 ]10139 }10140 }10141 ]10142 }10143 },10144 {10145 dtype: 'exp',10146 exp: {10147 name: 'isDefined',10148 data: [10149 {10150 dtype: 'exp',10151 exp: {10152 name: 'getResponseItem',10153 data: [10154 {10155 str: 'covidweekly.32'10156 },10157 {10158 str: '1.1.155'10159 }10160 ]10161 }10162 }10163 ]10164 }10165 },10166 {10167 dtype: 'exp',10168 exp: {10169 name: 'isDefined',10170 data: [10171 {10172 dtype: 'exp',10173 exp: {10174 name: 'getResponseItem',10175 data: [10176 {10177 str: 'covidweekly.32'10178 },10179 {10180 str: '1.1.156'10181 }10182 ]10183 }10184 }10185 ]10186 }10187 },10188 {10189 dtype: 'exp',10190 exp: {10191 name: 'isDefined',10192 data: [10193 {10194 dtype: 'exp',10195 exp: {10196 name: 'getResponseItem',10197 data: [10198 {10199 str: 'covidweekly.32'10200 },10201 {10202 str: '1.1.157'10203 }10204 ]10205 }10206 }10207 ]10208 }10209 },10210 {10211 dtype: 'exp',10212 exp: {10213 name: 'isDefined',10214 data: [10215 {10216 dtype: 'exp',10217 exp: {10218 name: 'getResponseItem',10219 data: [10220 {10221 str: 'covidweekly.32'10222 },10223 {10224 str: '1.1.158'10225 }10226 ]10227 }10228 }10229 ]10230 }10231 },10232 {10233 dtype: 'exp',10234 exp: {10235 name: 'isDefined',10236 data: [10237 {10238 dtype: 'exp',10239 exp: {10240 name: 'getResponseItem',10241 data: [10242 {10243 str: 'covidweekly.32'10244 },10245 {10246 str: '1.1.159'10247 }10248 ]10249 }10250 }10251 ]10252 }10253 },10254 {10255 dtype: 'exp',10256 exp: {10257 name: 'isDefined',10258 data: [10259 {10260 dtype: 'exp',10261 exp: {10262 name: 'getResponseItem',10263 data: [10264 {10265 str: 'covidweekly.32'10266 },10267 {10268 str: '1.1.160'10269 }10270 ]10271 }10272 }10273 ]10274 }10275 },10276 ]10277 },10278 follows: [10279 "covidweekly.32",10280 ],10281 version: 1,10282 validations: [],10283 components: {10284 role: "root",10285 items: [10286 {10287 role: "title",10288 content: [10289 {10290 code: "en",10291 parts: [10292 {10293 str: "Because of your symptoms, were you hospitalized?"10294 }10295 ]10296 }10297 ]10298 },10299 {10300 key: "1",10301 role: "responseGroup",10302 items: [10303 {10304 key: "1",10305 role: "singleChoiceGroup",10306 items: [10307 {10308 key: "1",10309 role: "option",10310 content: [10311 {10312 code: "en",10313 parts: [10314 {10315 str: "Yes"10316 }10317 ]10318 }10319 ]10320 },10321 {10322 key: "0",10323 role: "option",10324 content: [10325 {10326 code: "en",10327 parts: [10328 {10329 str: "No"10330 }10331 ]10332 }10333 ]10334 },10335 ]10336 }10337 ]10338 }10339 ]10340 }10341}10342const Q10: SurveySingleItem = {10343 key: "covidweekly.48",10344 // if report any symptoms10345 condition: {10346 name: "or",10347 data: [10348 {10349 dtype: 'exp',10350 exp: {10351 name: 'isDefined',10352 data: [10353 {10354 dtype: 'exp',10355 exp: {10356 name: 'getResponseItem',10357 data: [10358 {10359 str: 'covidweekly.32'10360 },10361 {10362 str: '1.1.142'10363 }10364 ]10365 }10366 }10367 ]10368 }10369 },10370 {10371 dtype: 'exp',10372 exp: {10373 name: 'isDefined',10374 data: [10375 {10376 dtype: 'exp',10377 exp: {10378 name: 'getResponseItem',10379 data: [10380 {10381 str: 'covidweekly.32'10382 },10383 {10384 str: '1.1.143'10385 }10386 ]10387 }10388 }10389 ]10390 }10391 },10392 {10393 dtype: 'exp',10394 exp: {10395 name: 'isDefined',10396 data: [10397 {10398 dtype: 'exp',10399 exp: {10400 name: 'getResponseItem',10401 data: [10402 {10403 str: 'covidweekly.32'10404 },10405 {10406 str: '1.1.144'10407 }10408 ]10409 }10410 }10411 ]10412 }10413 },10414 {10415 dtype: 'exp',10416 exp: {10417 name: 'isDefined',10418 data: [10419 {10420 dtype: 'exp',10421 exp: {10422 name: 'getResponseItem',10423 data: [10424 {10425 str: 'covidweekly.32'10426 },10427 {10428 str: '1.1.145'10429 }10430 ]10431 }10432 }10433 ]10434 }10435 },10436 {10437 dtype: 'exp',10438 exp: {10439 name: 'isDefined',10440 data: [10441 {10442 dtype: 'exp',10443 exp: {10444 name: 'getResponseItem',10445 data: [10446 {10447 str: 'covidweekly.32'10448 },10449 {10450 str: '1.1.146'10451 }10452 ]10453 }10454 }10455 ]10456 }10457 },10458 {10459 dtype: 'exp',10460 exp: {10461 name: 'isDefined',10462 data: [10463 {10464 dtype: 'exp',10465 exp: {10466 name: 'getResponseItem',10467 data: [10468 {10469 str: 'covidweekly.32'10470 },10471 {10472 str: '1.1.147'10473 }10474 ]10475 }10476 }10477 ]10478 }10479 },10480 {10481 dtype: 'exp',10482 exp: {10483 name: 'isDefined',10484 data: [10485 {10486 dtype: 'exp',10487 exp: {10488 name: 'getResponseItem',10489 data: [10490 {10491 str: 'covidweekly.32'10492 },10493 {10494 str: '1.1.148'10495 }10496 ]10497 }10498 }10499 ]10500 }10501 },10502 {10503 dtype: 'exp',10504 exp: {10505 name: 'isDefined',10506 data: [10507 {10508 dtype: 'exp',10509 exp: {10510 name: 'getResponseItem',10511 data: [10512 {10513 str: 'covidweekly.32'10514 },10515 {10516 str: '1.1.149'10517 }10518 ]10519 }10520 }10521 ]10522 }10523 },10524 {10525 dtype: 'exp',10526 exp: {10527 name: 'isDefined',10528 data: [10529 {10530 dtype: 'exp',10531 exp: {10532 name: 'getResponseItem',10533 data: [10534 {10535 str: 'covidweekly.32'10536 },10537 {10538 str: '1.1.150'10539 }10540 ]10541 }10542 }10543 ]10544 }10545 },10546 {10547 dtype: 'exp',10548 exp: {10549 name: 'isDefined',10550 data: [10551 {10552 dtype: 'exp',10553 exp: {10554 name: 'getResponseItem',10555 data: [10556 {10557 str: 'covidweekly.32'10558 },10559 {10560 str: '1.1.151'10561 }10562 ]10563 }10564 }10565 ]10566 }10567 },10568 {10569 dtype: 'exp',10570 exp: {10571 name: 'isDefined',10572 data: [10573 {10574 dtype: 'exp',10575 exp: {10576 name: 'getResponseItem',10577 data: [10578 {10579 str: 'covidweekly.32'10580 },10581 {10582 str: '1.1.152'10583 }10584 ]10585 }10586 }10587 ]10588 }10589 },10590 {10591 dtype: 'exp',10592 exp: {10593 name: 'isDefined',10594 data: [10595 {10596 dtype: 'exp',10597 exp: {10598 name: 'getResponseItem',10599 data: [10600 {10601 str: 'covidweekly.32'10602 },10603 {10604 str: '1.1.153'10605 }10606 ]10607 }10608 }10609 ]10610 }10611 },10612 {10613 dtype: 'exp',10614 exp: {10615 name: 'isDefined',10616 data: [10617 {10618 dtype: 'exp',10619 exp: {10620 name: 'getResponseItem',10621 data: [10622 {10623 str: 'covidweekly.32'10624 },10625 {10626 str: '1.1.154'10627 }10628 ]10629 }10630 }10631 ]10632 }10633 },10634 {10635 dtype: 'exp',10636 exp: {10637 name: 'isDefined',10638 data: [10639 {10640 dtype: 'exp',10641 exp: {10642 name: 'getResponseItem',10643 data: [10644 {10645 str: 'covidweekly.32'10646 },10647 {10648 str: '1.1.155'10649 }10650 ]10651 }10652 }10653 ]10654 }10655 },10656 {10657 dtype: 'exp',10658 exp: {10659 name: 'isDefined',10660 data: [10661 {10662 dtype: 'exp',10663 exp: {10664 name: 'getResponseItem',10665 data: [10666 {10667 str: 'covidweekly.32'10668 },10669 {10670 str: '1.1.156'10671 }10672 ]10673 }10674 }10675 ]10676 }10677 },10678 {10679 dtype: 'exp',10680 exp: {10681 name: 'isDefined',10682 data: [10683 {10684 dtype: 'exp',10685 exp: {10686 name: 'getResponseItem',10687 data: [10688 {10689 str: 'covidweekly.32'10690 },10691 {10692 str: '1.1.157'10693 }10694 ]10695 }10696 }10697 ]10698 }10699 },10700 {10701 dtype: 'exp',10702 exp: {10703 name: 'isDefined',10704 data: [10705 {10706 dtype: 'exp',10707 exp: {10708 name: 'getResponseItem',10709 data: [10710 {10711 str: 'covidweekly.32'10712 },10713 {10714 str: '1.1.158'10715 }10716 ]10717 }10718 }10719 ]10720 }10721 },10722 {10723 dtype: 'exp',10724 exp: {10725 name: 'isDefined',10726 data: [10727 {10728 dtype: 'exp',10729 exp: {10730 name: 'getResponseItem',10731 data: [10732 {10733 str: 'covidweekly.32'10734 },10735 {10736 str: '1.1.159'10737 }10738 ]10739 }10740 }10741 ]10742 }10743 },10744 {10745 dtype: 'exp',10746 exp: {10747 name: 'isDefined',10748 data: [10749 {10750 dtype: 'exp',10751 exp: {10752 name: 'getResponseItem',10753 data: [10754 {10755 str: 'covidweekly.32'10756 },10757 {10758 str: '1.1.160'10759 }10760 ]10761 }10762 }10763 ]10764 }10765 },10766 ]10767 },10768 version: 1,10769 validations: [],10770 components: {10771 role: "root",10772 items: [10773 {10774 role: "title",10775 content: [10776 {10777 code: "en",10778 parts: [10779 {10780 str: "Did you change your daily routine because of your illness?"10781 }10782 ]10783 }10784 ]10785 },10786 {10787 key: "1",10788 role: "responseGroup",10789 items: [10790 {10791 key: "1",10792 role: "singleChoiceGroup",10793 items: [10794 {10795 key: "231",10796 role: "option",10797 content: [10798 {10799 code: "en",10800 parts: [10801 {10802 str: "No"10803 }10804 ]10805 }10806 ]10807 },10808 {10809 key: "232",10810 role: "option",10811 content: [10812 {10813 code: "en",10814 parts: [10815 {10816 str: "Yes, but I did not take time off work/school"10817 }10818 ]10819 }10820 ]10821 },10822 {10823 key: "233",10824 role: "option",10825 content: [10826 {10827 code: "en",10828 parts: [10829 {10830 str: "Yes, I took time off work/school"10831 }10832 ]10833 }10834 ]10835 }10836 ]10837 }10838 ]10839 }10840 ]10841 }10842}10843const Q10b: SurveySingleItem = {10844 key: "covidweekly.49",10845 condition: {10846 name: "and",10847 data: [10848 {10849 // if report any symptoms10850 dtype: "exp",10851 exp: {10852 name: "or",10853 data: [10854 {10855 dtype: 'exp',10856 exp: {10857 name: 'isDefined',10858 data: [10859 {10860 dtype: 'exp',10861 exp: {10862 name: 'getResponseItem',10863 data: [10864 {10865 str: 'covidweekly.32'10866 },10867 {10868 str: '1.1.142'10869 }10870 ]10871 }10872 }10873 ]10874 }10875 },10876 {10877 dtype: 'exp',10878 exp: {10879 name: 'isDefined',10880 data: [10881 {10882 dtype: 'exp',10883 exp: {10884 name: 'getResponseItem',10885 data: [10886 {10887 str: 'covidweekly.32'10888 },10889 {10890 str: '1.1.143'10891 }10892 ]10893 }10894 }10895 ]10896 }10897 },10898 {10899 dtype: 'exp',10900 exp: {10901 name: 'isDefined',10902 data: [10903 {10904 dtype: 'exp',10905 exp: {10906 name: 'getResponseItem',10907 data: [10908 {10909 str: 'covidweekly.32'10910 },10911 {10912 str: '1.1.144'10913 }10914 ]10915 }10916 }10917 ]10918 }10919 },10920 {10921 dtype: 'exp',10922 exp: {10923 name: 'isDefined',10924 data: [10925 {10926 dtype: 'exp',10927 exp: {10928 name: 'getResponseItem',10929 data: [10930 {10931 str: 'covidweekly.32'10932 },10933 {10934 str: '1.1.145'10935 }10936 ]10937 }10938 }10939 ]10940 }10941 },10942 {10943 dtype: 'exp',10944 exp: {10945 name: 'isDefined',10946 data: [10947 {10948 dtype: 'exp',10949 exp: {10950 name: 'getResponseItem',10951 data: [10952 {10953 str: 'covidweekly.32'10954 },10955 {10956 str: '1.1.146'10957 }10958 ]10959 }10960 }10961 ]10962 }10963 },10964 {10965 dtype: 'exp',10966 exp: {10967 name: 'isDefined',10968 data: [10969 {10970 dtype: 'exp',10971 exp: {10972 name: 'getResponseItem',10973 data: [10974 {10975 str: 'covidweekly.32'10976 },10977 {10978 str: '1.1.147'10979 }10980 ]10981 }10982 }10983 ]10984 }10985 },10986 {10987 dtype: 'exp',10988 exp: {10989 name: 'isDefined',10990 data: [10991 {10992 dtype: 'exp',10993 exp: {10994 name: 'getResponseItem',10995 data: [10996 {10997 str: 'covidweekly.32'10998 },10999 {11000 str: '1.1.148'11001 }11002 ]11003 }11004 }11005 ]11006 }11007 },11008 {11009 dtype: 'exp',11010 exp: {11011 name: 'isDefined',11012 data: [11013 {11014 dtype: 'exp',11015 exp: {11016 name: 'getResponseItem',11017 data: [11018 {11019 str: 'covidweekly.32'11020 },11021 {11022 str: '1.1.149'11023 }11024 ]11025 }11026 }11027 ]11028 }11029 },11030 {11031 dtype: 'exp',11032 exp: {11033 name: 'isDefined',11034 data: [11035 {11036 dtype: 'exp',11037 exp: {11038 name: 'getResponseItem',11039 data: [11040 {11041 str: 'covidweekly.32'11042 },11043 {11044 str: '1.1.150'11045 }11046 ]11047 }11048 }11049 ]11050 }11051 },11052 {11053 dtype: 'exp',11054 exp: {11055 name: 'isDefined',11056 data: [11057 {11058 dtype: 'exp',11059 exp: {11060 name: 'getResponseItem',11061 data: [11062 {11063 str: 'covidweekly.32'11064 },11065 {11066 str: '1.1.151'11067 }11068 ]11069 }11070 }11071 ]11072 }11073 },11074 {11075 dtype: 'exp',11076 exp: {11077 name: 'isDefined',11078 data: [11079 {11080 dtype: 'exp',11081 exp: {11082 name: 'getResponseItem',11083 data: [11084 {11085 str: 'covidweekly.32'11086 },11087 {11088 str: '1.1.152'11089 }11090 ]11091 }11092 }11093 ]11094 }11095 },11096 {11097 dtype: 'exp',11098 exp: {11099 name: 'isDefined',11100 data: [11101 {11102 dtype: 'exp',11103 exp: {11104 name: 'getResponseItem',11105 data: [11106 {11107 str: 'covidweekly.32'11108 },11109 {11110 str: '1.1.153'11111 }11112 ]11113 }11114 }11115 ]11116 }11117 },11118 {11119 dtype: 'exp',11120 exp: {11121 name: 'isDefined',11122 data: [11123 {11124 dtype: 'exp',11125 exp: {11126 name: 'getResponseItem',11127 data: [11128 {11129 str: 'covidweekly.32'11130 },11131 {11132 str: '1.1.154'11133 }11134 ]11135 }11136 }11137 ]11138 }11139 },11140 {11141 dtype: 'exp',11142 exp: {11143 name: 'isDefined',11144 data: [11145 {11146 dtype: 'exp',11147 exp: {11148 name: 'getResponseItem',11149 data: [11150 {11151 str: 'covidweekly.32'11152 },11153 {11154 str: '1.1.155'11155 }11156 ]11157 }11158 }11159 ]11160 }11161 },11162 {11163 dtype: 'exp',11164 exp: {11165 name: 'isDefined',11166 data: [11167 {11168 dtype: 'exp',11169 exp: {11170 name: 'getResponseItem',11171 data: [11172 {11173 str: 'covidweekly.32'11174 },11175 {11176 str: '1.1.156'11177 }11178 ]11179 }11180 }11181 ]11182 }11183 },11184 {11185 dtype: 'exp',11186 exp: {11187 name: 'isDefined',11188 data: [11189 {11190 dtype: 'exp',11191 exp: {11192 name: 'getResponseItem',11193 data: [11194 {11195 str: 'covidweekly.32'11196 },11197 {11198 str: '1.1.157'11199 }11200 ]11201 }11202 }11203 ]11204 }11205 },11206 {11207 dtype: 'exp',11208 exp: {11209 name: 'isDefined',11210 data: [11211 {11212 dtype: 'exp',11213 exp: {11214 name: 'getResponseItem',11215 data: [11216 {11217 str: 'covidweekly.32'11218 },11219 {11220 str: '1.1.158'11221 }11222 ]11223 }11224 }11225 ]11226 }11227 },11228 {11229 dtype: 'exp',11230 exp: {11231 name: 'isDefined',11232 data: [11233 {11234 dtype: 'exp',11235 exp: {11236 name: 'getResponseItem',11237 data: [11238 {11239 str: 'covidweekly.32'11240 },11241 {11242 str: '1.1.159'11243 }11244 ]11245 }11246 }11247 ]11248 }11249 },11250 {11251 dtype: 'exp',11252 exp: {11253 name: 'isDefined',11254 data: [11255 {11256 dtype: 'exp',11257 exp: {11258 name: 'getResponseItem',11259 data: [11260 {11261 str: 'covidweekly.32'11262 },11263 {11264 str: '1.1.160'11265 }11266 ]11267 }11268 }11269 ]11270 }11271 },11272 ]11273 }11274 },11275 // taken time off work/school11276 {11277 dtype: 'exp',11278 exp: {11279 name: 'isDefined',11280 data: [11281 {11282 dtype: 'exp',11283 exp: {11284 name: 'getResponseItem',11285 data: [11286 {11287 str: 'covidweekly.48'11288 },11289 {11290 str: '1.1.233'11291 }11292 ]11293 }11294 }11295 ]11296 }11297 },11298 ]11299 },11300 follows: [11301 "covidweekly.48",11302 ],11303 version: 1,11304 validations: [],11305 components: {11306 role: "root",11307 items: [11308 {11309 role: "title",11310 content: [11311 {11312 code: "en",11313 parts: [11314 {11315 str: "Are you still off work/school?"11316 }11317 ]11318 }11319 ]11320 },11321 {11322 key: "1",11323 role: "responseGroup",11324 items: [11325 {11326 key: "1",11327 role: "singleChoiceGroup",11328 items: [11329 {11330 key: "234",11331 role: "option",11332 content: [11333 {11334 code: "en",11335 parts: [11336 {11337 str: "Yes"11338 }11339 ]11340 }11341 ]11342 },11343 {11344 key: "235",11345 role: "option",11346 content: [11347 {11348 code: "en",11349 parts: [11350 {11351 str: "No"11352 }11353 ]11354 }11355 ]11356 },11357 {11358 key: "236",11359 role: "option",11360 content: [11361 {11362 code: "en",11363 parts: [11364 {11365 str: "Other (e.g. I wouldn’t usually be at work/school today anyway)"11366 }11367 ]11368 }11369 ]11370 }11371 ]11372 }11373 ]11374 }11375 ]11376 }11377}11378const Q10c: SurveySingleItem = {11379 key: "covidweekly.50",11380 condition: {11381 name: "and",11382 data: [11383 {11384 // if report any symptoms11385 dtype: "exp",11386 exp: {11387 name: "or",11388 data: [11389 {11390 dtype: 'exp',11391 exp: {11392 name: 'isDefined',11393 data: [11394 {11395 dtype: 'exp',11396 exp: {11397 name: 'getResponseItem',11398 data: [11399 {11400 str: 'covidweekly.32'11401 },11402 {11403 str: '1.1.142'11404 }11405 ]11406 }11407 }11408 ]11409 }11410 },11411 {11412 dtype: 'exp',11413 exp: {11414 name: 'isDefined',11415 data: [11416 {11417 dtype: 'exp',11418 exp: {11419 name: 'getResponseItem',11420 data: [11421 {11422 str: 'covidweekly.32'11423 },11424 {11425 str: '1.1.143'11426 }11427 ]11428 }11429 }11430 ]11431 }11432 },11433 {11434 dtype: 'exp',11435 exp: {11436 name: 'isDefined',11437 data: [11438 {11439 dtype: 'exp',11440 exp: {11441 name: 'getResponseItem',11442 data: [11443 {11444 str: 'covidweekly.32'11445 },11446 {11447 str: '1.1.144'11448 }11449 ]11450 }11451 }11452 ]11453 }11454 },11455 {11456 dtype: 'exp',11457 exp: {11458 name: 'isDefined',11459 data: [11460 {11461 dtype: 'exp',11462 exp: {11463 name: 'getResponseItem',11464 data: [11465 {11466 str: 'covidweekly.32'11467 },11468 {11469 str: '1.1.145'11470 }11471 ]11472 }11473 }11474 ]11475 }11476 },11477 {11478 dtype: 'exp',11479 exp: {11480 name: 'isDefined',11481 data: [11482 {11483 dtype: 'exp',11484 exp: {11485 name: 'getResponseItem',11486 data: [11487 {11488 str: 'covidweekly.32'11489 },11490 {11491 str: '1.1.146'11492 }11493 ]11494 }11495 }11496 ]11497 }11498 },11499 {11500 dtype: 'exp',11501 exp: {11502 name: 'isDefined',11503 data: [11504 {11505 dtype: 'exp',11506 exp: {11507 name: 'getResponseItem',11508 data: [11509 {11510 str: 'covidweekly.32'11511 },11512 {11513 str: '1.1.147'11514 }11515 ]11516 }11517 }11518 ]11519 }11520 },11521 {11522 dtype: 'exp',11523 exp: {11524 name: 'isDefined',11525 data: [11526 {11527 dtype: 'exp',11528 exp: {11529 name: 'getResponseItem',11530 data: [11531 {11532 str: 'covidweekly.32'11533 },11534 {11535 str: '1.1.148'11536 }11537 ]11538 }11539 }11540 ]11541 }11542 },11543 {11544 dtype: 'exp',11545 exp: {11546 name: 'isDefined',11547 data: [11548 {11549 dtype: 'exp',11550 exp: {11551 name: 'getResponseItem',11552 data: [11553 {11554 str: 'covidweekly.32'11555 },11556 {11557 str: '1.1.149'11558 }11559 ]11560 }11561 }11562 ]11563 }11564 },11565 {11566 dtype: 'exp',11567 exp: {11568 name: 'isDefined',11569 data: [11570 {11571 dtype: 'exp',11572 exp: {11573 name: 'getResponseItem',11574 data: [11575 {11576 str: 'covidweekly.32'11577 },11578 {11579 str: '1.1.150'11580 }11581 ]11582 }11583 }11584 ]11585 }11586 },11587 {11588 dtype: 'exp',11589 exp: {11590 name: 'isDefined',11591 data: [11592 {11593 dtype: 'exp',11594 exp: {11595 name: 'getResponseItem',11596 data: [11597 {11598 str: 'covidweekly.32'11599 },11600 {11601 str: '1.1.151'11602 }11603 ]11604 }11605 }11606 ]11607 }11608 },11609 {11610 dtype: 'exp',11611 exp: {11612 name: 'isDefined',11613 data: [11614 {11615 dtype: 'exp',11616 exp: {11617 name: 'getResponseItem',11618 data: [11619 {11620 str: 'covidweekly.32'11621 },11622 {11623 str: '1.1.152'11624 }11625 ]11626 }11627 }11628 ]11629 }11630 },11631 {11632 dtype: 'exp',11633 exp: {11634 name: 'isDefined',11635 data: [11636 {11637 dtype: 'exp',11638 exp: {11639 name: 'getResponseItem',11640 data: [11641 {11642 str: 'covidweekly.32'11643 },11644 {11645 str: '1.1.153'11646 }11647 ]11648 }11649 }11650 ]11651 }11652 },11653 {11654 dtype: 'exp',11655 exp: {11656 name: 'isDefined',11657 data: [11658 {11659 dtype: 'exp',11660 exp: {11661 name: 'getResponseItem',11662 data: [11663 {11664 str: 'covidweekly.32'11665 },11666 {11667 str: '1.1.154'11668 }11669 ]11670 }11671 }11672 ]11673 }11674 },11675 {11676 dtype: 'exp',11677 exp: {11678 name: 'isDefined',11679 data: [11680 {11681 dtype: 'exp',11682 exp: {11683 name: 'getResponseItem',11684 data: [11685 {11686 str: 'covidweekly.32'11687 },11688 {11689 str: '1.1.155'11690 }11691 ]11692 }11693 }11694 ]11695 }11696 },11697 {11698 dtype: 'exp',11699 exp: {11700 name: 'isDefined',11701 data: [11702 {11703 dtype: 'exp',11704 exp: {11705 name: 'getResponseItem',11706 data: [11707 {11708 str: 'covidweekly.32'11709 },11710 {11711 str: '1.1.156'11712 }11713 ]11714 }11715 }11716 ]11717 }11718 },11719 {11720 dtype: 'exp',11721 exp: {11722 name: 'isDefined',11723 data: [11724 {11725 dtype: 'exp',11726 exp: {11727 name: 'getResponseItem',11728 data: [11729 {11730 str: 'covidweekly.32'11731 },11732 {11733 str: '1.1.157'11734 }11735 ]11736 }11737 }11738 ]11739 }11740 },11741 {11742 dtype: 'exp',11743 exp: {11744 name: 'isDefined',11745 data: [11746 {11747 dtype: 'exp',11748 exp: {11749 name: 'getResponseItem',11750 data: [11751 {11752 str: 'covidweekly.32'11753 },11754 {11755 str: '1.1.158'11756 }11757 ]11758 }11759 }11760 ]11761 }11762 },11763 {11764 dtype: 'exp',11765 exp: {11766 name: 'isDefined',11767 data: [11768 {11769 dtype: 'exp',11770 exp: {11771 name: 'getResponseItem',11772 data: [11773 {11774 str: 'covidweekly.32'11775 },11776 {11777 str: '1.1.159'11778 }11779 ]11780 }11781 }11782 ]11783 }11784 },11785 {11786 dtype: 'exp',11787 exp: {11788 name: 'isDefined',11789 data: [11790 {11791 dtype: 'exp',11792 exp: {11793 name: 'getResponseItem',11794 data: [11795 {11796 str: 'covidweekly.32'11797 },11798 {11799 str: '1.1.160'11800 }11801 ]11802 }11803 }11804 ]11805 }11806 },11807 ]11808 }11809 },11810 // taken time off work/school11811 {11812 dtype: 'exp',11813 exp: {11814 name: 'isDefined',11815 data: [11816 {11817 dtype: 'exp',11818 exp: {11819 name: 'getResponseItem',11820 data: [11821 {11822 str: 'covidweekly.48'11823 },11824 {11825 str: '1.1.233'11826 }11827 ]11828 }11829 }11830 ]11831 }11832 },11833 ]11834 },11835 follows: [11836 "covidweekly.48",11837 ],11838 version: 1,11839 validations: [],11840 components: {11841 role: "root",11842 items: [11843 {11844 role: "title",11845 content: [11846 {11847 code: "en",11848 parts: [11849 {11850 str: "How long have you been off work/school?"11851 }11852 ]11853 }11854 ]11855 },11856 {11857 key: "1",11858 role: "responseGroup",11859 items: [11860 {11861 key: "1",11862 role: "singleChoiceGroup",11863 items: [11864 {11865 key: "237",11866 role: "option",11867 content: [11868 {11869 code: "en",11870 parts: [11871 {11872 str: "1 day"11873 }11874 ]11875 }11876 ]11877 },11878 {11879 key: "238",11880 role: "option",11881 content: [11882 {11883 code: "en",11884 parts: [11885 {11886 str: "2 days"11887 }11888 ]11889 }11890 ]11891 },11892 {11893 key: "239",11894 role: "option",11895 content: [11896 {11897 code: "en",11898 parts: [11899 {11900 str: "3 days"11901 }11902 ]11903 }11904 ]11905 },11906 {11907 key: "240",11908 role: "option",11909 content: [11910 {11911 code: "en",11912 parts: [11913 {11914 str: "4 days"11915 }11916 ]11917 }11918 ]11919 },11920 {11921 key: "241",11922 role: "option",11923 content: [11924 {11925 code: "en",11926 parts: [11927 {11928 str: "5 days"11929 }11930 ]11931 }11932 ]11933 },11934 {11935 key: "242",11936 role: "option",11937 content: [11938 {11939 code: "en",11940 parts: [11941 {11942 str: "6 to 10 days"11943 }11944 ]11945 }11946 ]11947 },11948 {11949 key: "243",11950 role: "option",11951 content: [11952 {11953 code: "en",11954 parts: [11955 {11956 str: "11 to 15 days"11957 }11958 ]11959 }11960 ]11961 },11962 {11963 key: "244",11964 role: "option",11965 content: [11966 {11967 code: "en",11968 parts: [11969 {11970 str: "More than 15 days"11971 }11972 ]11973 }11974 ]11975 }11976 ]11977 }11978 ]11979 }11980 ]11981 }11982}11983const Qcov6: SurveySingleItem = {11984 key: "covidweekly.Qcov6",11985 // if report any symptoms11986 condition: {11987 name: "or",11988 data: [11989 {11990 dtype: 'exp',11991 exp: {11992 name: 'isDefined',11993 data: [11994 {11995 dtype: 'exp',11996 exp: {11997 name: 'getResponseItem',11998 data: [11999 {12000 str: 'covidweekly.32'12001 },12002 {12003 str: '1.1.142'12004 }12005 ]12006 }12007 }12008 ]12009 }12010 },12011 {12012 dtype: 'exp',12013 exp: {12014 name: 'isDefined',12015 data: [12016 {12017 dtype: 'exp',12018 exp: {12019 name: 'getResponseItem',12020 data: [12021 {12022 str: 'covidweekly.32'12023 },12024 {12025 str: '1.1.143'12026 }12027 ]12028 }12029 }12030 ]12031 }12032 },12033 {12034 dtype: 'exp',12035 exp: {12036 name: 'isDefined',12037 data: [12038 {12039 dtype: 'exp',12040 exp: {12041 name: 'getResponseItem',12042 data: [12043 {12044 str: 'covidweekly.32'12045 },12046 {12047 str: '1.1.144'12048 }12049 ]12050 }12051 }12052 ]12053 }12054 },12055 {12056 dtype: 'exp',12057 exp: {12058 name: 'isDefined',12059 data: [12060 {12061 dtype: 'exp',12062 exp: {12063 name: 'getResponseItem',12064 data: [12065 {12066 str: 'covidweekly.32'12067 },12068 {12069 str: '1.1.145'12070 }12071 ]12072 }12073 }12074 ]12075 }12076 },12077 {12078 dtype: 'exp',12079 exp: {12080 name: 'isDefined',12081 data: [12082 {12083 dtype: 'exp',12084 exp: {12085 name: 'getResponseItem',12086 data: [12087 {12088 str: 'covidweekly.32'12089 },12090 {12091 str: '1.1.146'12092 }12093 ]12094 }12095 }12096 ]12097 }12098 },12099 {12100 dtype: 'exp',12101 exp: {12102 name: 'isDefined',12103 data: [12104 {12105 dtype: 'exp',12106 exp: {12107 name: 'getResponseItem',12108 data: [12109 {12110 str: 'covidweekly.32'12111 },12112 {12113 str: '1.1.147'12114 }12115 ]12116 }12117 }12118 ]12119 }12120 },12121 {12122 dtype: 'exp',12123 exp: {12124 name: 'isDefined',12125 data: [12126 {12127 dtype: 'exp',12128 exp: {12129 name: 'getResponseItem',12130 data: [12131 {12132 str: 'covidweekly.32'12133 },12134 {12135 str: '1.1.148'12136 }12137 ]12138 }12139 }12140 ]12141 }12142 },12143 {12144 dtype: 'exp',12145 exp: {12146 name: 'isDefined',12147 data: [12148 {12149 dtype: 'exp',12150 exp: {12151 name: 'getResponseItem',12152 data: [12153 {12154 str: 'covidweekly.32'12155 },12156 {12157 str: '1.1.149'12158 }12159 ]12160 }12161 }12162 ]12163 }12164 },12165 {12166 dtype: 'exp',12167 exp: {12168 name: 'isDefined',12169 data: [12170 {12171 dtype: 'exp',12172 exp: {12173 name: 'getResponseItem',12174 data: [12175 {12176 str: 'covidweekly.32'12177 },12178 {12179 str: '1.1.150'12180 }12181 ]12182 }12183 }12184 ]12185 }12186 },12187 {12188 dtype: 'exp',12189 exp: {12190 name: 'isDefined',12191 data: [12192 {12193 dtype: 'exp',12194 exp: {12195 name: 'getResponseItem',12196 data: [12197 {12198 str: 'covidweekly.32'12199 },12200 {12201 str: '1.1.151'12202 }12203 ]12204 }12205 }12206 ]12207 }12208 },12209 {12210 dtype: 'exp',12211 exp: {12212 name: 'isDefined',12213 data: [12214 {12215 dtype: 'exp',12216 exp: {12217 name: 'getResponseItem',12218 data: [12219 {12220 str: 'covidweekly.32'12221 },12222 {12223 str: '1.1.152'12224 }12225 ]12226 }12227 }12228 ]12229 }12230 },12231 {12232 dtype: 'exp',12233 exp: {12234 name: 'isDefined',12235 data: [12236 {12237 dtype: 'exp',12238 exp: {12239 name: 'getResponseItem',12240 data: [12241 {12242 str: 'covidweekly.32'12243 },12244 {12245 str: '1.1.153'12246 }12247 ]12248 }12249 }12250 ]12251 }12252 },12253 {12254 dtype: 'exp',12255 exp: {12256 name: 'isDefined',12257 data: [12258 {12259 dtype: 'exp',12260 exp: {12261 name: 'getResponseItem',12262 data: [12263 {12264 str: 'covidweekly.32'12265 },12266 {12267 str: '1.1.154'12268 }12269 ]12270 }12271 }12272 ]12273 }12274 },12275 {12276 dtype: 'exp',12277 exp: {12278 name: 'isDefined',12279 data: [12280 {12281 dtype: 'exp',12282 exp: {12283 name: 'getResponseItem',12284 data: [12285 {12286 str: 'covidweekly.32'12287 },12288 {12289 str: '1.1.155'12290 }12291 ]12292 }12293 }12294 ]12295 }12296 },12297 {12298 dtype: 'exp',12299 exp: {12300 name: 'isDefined',12301 data: [12302 {12303 dtype: 'exp',12304 exp: {12305 name: 'getResponseItem',12306 data: [12307 {12308 str: 'covidweekly.32'12309 },12310 {12311 str: '1.1.156'12312 }12313 ]12314 }12315 }12316 ]12317 }12318 },12319 {12320 dtype: 'exp',12321 exp: {12322 name: 'isDefined',12323 data: [12324 {12325 dtype: 'exp',12326 exp: {12327 name: 'getResponseItem',12328 data: [12329 {12330 str: 'covidweekly.32'12331 },12332 {12333 str: '1.1.157'12334 }12335 ]12336 }12337 }12338 ]12339 }12340 },12341 {12342 dtype: 'exp',12343 exp: {12344 name: 'isDefined',12345 data: [12346 {12347 dtype: 'exp',12348 exp: {12349 name: 'getResponseItem',12350 data: [12351 {12352 str: 'covidweekly.32'12353 },12354 {12355 str: '1.1.158'12356 }12357 ]12358 }12359 }12360 ]12361 }12362 },12363 {12364 dtype: 'exp',12365 exp: {12366 name: 'isDefined',12367 data: [12368 {12369 dtype: 'exp',12370 exp: {12371 name: 'getResponseItem',12372 data: [12373 {12374 str: 'covidweekly.32'12375 },12376 {12377 str: '1.1.159'12378 }12379 ]12380 }12381 }12382 ]12383 }12384 },12385 {12386 dtype: 'exp',12387 exp: {12388 name: 'isDefined',12389 data: [12390 {12391 dtype: 'exp',12392 exp: {12393 name: 'getResponseItem',12394 data: [12395 {12396 str: 'covidweekly.32'12397 },12398 {12399 str: '1.1.160'12400 }12401 ]12402 }12403 }12404 ]12405 }12406 },12407 ]12408 },12409 version: 1,12410 validations: [],12411 components: {12412 role: "root",12413 items: [12414 {12415 role: "title",12416 content: [12417 {12418 code: "en",12419 parts: [12420 {12421 str: "Because of your symptoms, did you wear a mask (surgical mask sold in pharmacies, or mask FFP1, FFP2, FFP3)?"12422 }12423 ]12424 }12425 ]12426 },12427 {12428 key: "1",12429 role: "responseGroup",12430 items: [12431 {12432 key: "1",12433 role: "singleChoiceGroup",12434 items: [12435 {12436 key: "1",12437 role: "option",12438 content: [12439 {12440 code: "en",12441 parts: [12442 {12443 str: "Yes"12444 }12445 ]12446 }12447 ]12448 },12449 {12450 key: "2",12451 role: "option",12452 content: [12453 {12454 code: "en",12455 parts: [12456 {12457 str: "No, I would have liked but could not find any"12458 }12459 ]12460 }12461 ]12462 },12463 {12464 key: "3",12465 role: "option",12466 content: [12467 {12468 code: "en",12469 parts: [12470 {12471 str: "No"12472 }12473 ]12474 }12475 ]12476 },12477 ]12478 }12479 ]12480 }12481 ]12482 }12483}12484const Qcov7: SurveySingleItem = {12485 key: "covidweekly.Qcov7",12486 // if report any symptoms12487 condition: {12488 name: "or",12489 data: [12490 {12491 dtype: 'exp',12492 exp: {12493 name: 'isDefined',12494 data: [12495 {12496 dtype: 'exp',12497 exp: {12498 name: 'getResponseItem',12499 data: [12500 {12501 str: 'covidweekly.32'12502 },12503 {12504 str: '1.1.142'12505 }12506 ]12507 }12508 }12509 ]12510 }12511 },12512 {12513 dtype: 'exp',12514 exp: {12515 name: 'isDefined',12516 data: [12517 {12518 dtype: 'exp',12519 exp: {12520 name: 'getResponseItem',12521 data: [12522 {12523 str: 'covidweekly.32'12524 },12525 {12526 str: '1.1.143'12527 }12528 ]12529 }12530 }12531 ]12532 }12533 },12534 {12535 dtype: 'exp',12536 exp: {12537 name: 'isDefined',12538 data: [12539 {12540 dtype: 'exp',12541 exp: {12542 name: 'getResponseItem',12543 data: [12544 {12545 str: 'covidweekly.32'12546 },12547 {12548 str: '1.1.144'12549 }12550 ]12551 }12552 }12553 ]12554 }12555 },12556 {12557 dtype: 'exp',12558 exp: {12559 name: 'isDefined',12560 data: [12561 {12562 dtype: 'exp',12563 exp: {12564 name: 'getResponseItem',12565 data: [12566 {12567 str: 'covidweekly.32'12568 },12569 {12570 str: '1.1.145'12571 }12572 ]12573 }12574 }12575 ]12576 }12577 },12578 {12579 dtype: 'exp',12580 exp: {12581 name: 'isDefined',12582 data: [12583 {12584 dtype: 'exp',12585 exp: {12586 name: 'getResponseItem',12587 data: [12588 {12589 str: 'covidweekly.32'12590 },12591 {12592 str: '1.1.146'12593 }12594 ]12595 }12596 }12597 ]12598 }12599 },12600 {12601 dtype: 'exp',12602 exp: {12603 name: 'isDefined',12604 data: [12605 {12606 dtype: 'exp',12607 exp: {12608 name: 'getResponseItem',12609 data: [12610 {12611 str: 'covidweekly.32'12612 },12613 {12614 str: '1.1.147'12615 }12616 ]12617 }12618 }12619 ]12620 }12621 },12622 {12623 dtype: 'exp',12624 exp: {12625 name: 'isDefined',12626 data: [12627 {12628 dtype: 'exp',12629 exp: {12630 name: 'getResponseItem',12631 data: [12632 {12633 str: 'covidweekly.32'12634 },12635 {12636 str: '1.1.148'12637 }12638 ]12639 }12640 }12641 ]12642 }12643 },12644 {12645 dtype: 'exp',12646 exp: {12647 name: 'isDefined',12648 data: [12649 {12650 dtype: 'exp',12651 exp: {12652 name: 'getResponseItem',12653 data: [12654 {12655 str: 'covidweekly.32'12656 },12657 {12658 str: '1.1.149'12659 }12660 ]12661 }12662 }12663 ]12664 }12665 },12666 {12667 dtype: 'exp',12668 exp: {12669 name: 'isDefined',12670 data: [12671 {12672 dtype: 'exp',12673 exp: {12674 name: 'getResponseItem',12675 data: [12676 {12677 str: 'covidweekly.32'12678 },12679 {12680 str: '1.1.150'12681 }12682 ]12683 }12684 }12685 ]12686 }12687 },12688 {12689 dtype: 'exp',12690 exp: {12691 name: 'isDefined',12692 data: [12693 {12694 dtype: 'exp',12695 exp: {12696 name: 'getResponseItem',12697 data: [12698 {12699 str: 'covidweekly.32'12700 },12701 {12702 str: '1.1.151'12703 }12704 ]12705 }12706 }12707 ]12708 }12709 },12710 {12711 dtype: 'exp',12712 exp: {12713 name: 'isDefined',12714 data: [12715 {12716 dtype: 'exp',12717 exp: {12718 name: 'getResponseItem',12719 data: [12720 {12721 str: 'covidweekly.32'12722 },12723 {12724 str: '1.1.152'12725 }12726 ]12727 }12728 }12729 ]12730 }12731 },12732 {12733 dtype: 'exp',12734 exp: {12735 name: 'isDefined',12736 data: [12737 {12738 dtype: 'exp',12739 exp: {12740 name: 'getResponseItem',12741 data: [12742 {12743 str: 'covidweekly.32'12744 },12745 {12746 str: '1.1.153'12747 }12748 ]12749 }12750 }12751 ]12752 }12753 },12754 {12755 dtype: 'exp',12756 exp: {12757 name: 'isDefined',12758 data: [12759 {12760 dtype: 'exp',12761 exp: {12762 name: 'getResponseItem',12763 data: [12764 {12765 str: 'covidweekly.32'12766 },12767 {12768 str: '1.1.154'12769 }12770 ]12771 }12772 }12773 ]12774 }12775 },12776 {12777 dtype: 'exp',12778 exp: {12779 name: 'isDefined',12780 data: [12781 {12782 dtype: 'exp',12783 exp: {12784 name: 'getResponseItem',12785 data: [12786 {12787 str: 'covidweekly.32'12788 },12789 {12790 str: '1.1.155'12791 }12792 ]12793 }12794 }12795 ]12796 }12797 },12798 {12799 dtype: 'exp',12800 exp: {12801 name: 'isDefined',12802 data: [12803 {12804 dtype: 'exp',12805 exp: {12806 name: 'getResponseItem',12807 data: [12808 {12809 str: 'covidweekly.32'12810 },12811 {12812 str: '1.1.156'12813 }12814 ]12815 }12816 }12817 ]12818 }12819 },12820 {12821 dtype: 'exp',12822 exp: {12823 name: 'isDefined',12824 data: [12825 {12826 dtype: 'exp',12827 exp: {12828 name: 'getResponseItem',12829 data: [12830 {12831 str: 'covidweekly.32'12832 },12833 {12834 str: '1.1.157'12835 }12836 ]12837 }12838 }12839 ]12840 }12841 },12842 {12843 dtype: 'exp',12844 exp: {12845 name: 'isDefined',12846 data: [12847 {12848 dtype: 'exp',12849 exp: {12850 name: 'getResponseItem',12851 data: [12852 {12853 str: 'covidweekly.32'12854 },12855 {12856 str: '1.1.158'12857 }12858 ]12859 }12860 }12861 ]12862 }12863 },12864 {12865 dtype: 'exp',12866 exp: {12867 name: 'isDefined',12868 data: [12869 {12870 dtype: 'exp',12871 exp: {12872 name: 'getResponseItem',12873 data: [12874 {12875 str: 'covidweekly.32'12876 },12877 {12878 str: '1.1.159'12879 }12880 ]12881 }12882 }12883 ]12884 }12885 },12886 {12887 dtype: 'exp',12888 exp: {12889 name: 'isDefined',12890 data: [12891 {12892 dtype: 'exp',12893 exp: {12894 name: 'getResponseItem',12895 data: [12896 {12897 str: 'covidweekly.32'12898 },12899 {12900 str: '1.1.160'12901 }12902 ]12903 }12904 }12905 ]12906 }12907 },12908 ]12909 },12910 version: 1,12911 validations: [],12912 components: {12913 role: "root",12914 items: [12915 {12916 role: "title",12917 content: [12918 {12919 code: "en",12920 parts: [12921 {12922 str: "Because of your symptoms, have you taken or strengthened one or more of the following measures? (Select all the relevant answers)"12923 }12924 ]12925 }12926 ]12927 },12928 {12929 key: "1",12930 role: "responseGroup",12931 items: [12932 {12933 key: "1",12934 role: "multipleChoiceGroup",12935 items: [12936 {12937 key: "1",12938 role: "option",12939 content: [12940 {12941 code: "en",12942 parts: [12943 {12944 str: "Regularly wash or disinfect hands"12945 }12946 ]12947 }12948 ],12949 disabled: {12950 name: 'isDefined',12951 data: [12952 {12953 dtype: 'exp',12954 exp: {12955 name: 'getResponseItem',12956 data: [12957 {12958 str: 'covidweekly.Qcov7'12959 },12960 {12961 str: '1.1.12'12962 }12963 ]12964 }12965 }12966 ]12967 },12968 },12969 {12970 key: "2",12971 role: "option",12972 content: [12973 {12974 code: "en",12975 parts: [12976 {12977 str: "Cough or sneeze into your elbow"12978 }12979 ]12980 }12981 ],12982 disabled: {12983 name: 'isDefined',12984 data: [12985 {12986 dtype: 'exp',12987 exp: {12988 name: 'getResponseItem',12989 data: [12990 {12991 str: 'covidweekly.Qcov7'12992 },12993 {12994 str: '1.1.12'12995 }12996 ]12997 }12998 }12999 ]13000 },13001 },13002 {13003 key: "3",13004 role: "option",13005 content: [13006 {13007 code: "en",13008 parts: [13009 {13010 str: "Use a disposable tissue"13011 }13012 ]13013 }13014 ]13015 },13016 {13017 key: "4",13018 role: "option",13019 content: [13020 {13021 code: "en",13022 parts: [13023 {13024 str: "Wear a disposable mask"13025 }13026 ]13027 }13028 ]13029 },13030 {13031 key: "5",13032 role: "option",13033 content: [13034 {13035 code: "en",13036 parts: [13037 {13038 str: "Avoid shaking hands"13039 }13040 ]13041 }13042 ],13043 disabled: {13044 name: 'isDefined',13045 data: [13046 {13047 dtype: 'exp',13048 exp: {13049 name: 'getResponseItem',13050 data: [13051 {13052 str: 'covidweekly.Qcov7'13053 },13054 {13055 str: '1.1.12'13056 }13057 ]13058 }13059 }13060 ]13061 },13062 },13063 {13064 key: "11",13065 role: "option",13066 content: [13067 {13068 code: "en",13069 parts: [13070 {13071 str: "Stop greeting by hugging and/or kissing on both cheeks"13072 }13073 ]13074 }13075 ],13076 disabled: {13077 name: 'isDefined',13078 data: [13079 {13080 dtype: 'exp',13081 exp: {13082 name: 'getResponseItem',13083 data: [13084 {13085 str: 'covidweekly.Qcov7'13086 },13087 {13088 str: '1.1.12'13089 }13090 ]13091 }13092 }13093 ]13094 },13095 },13096 {13097 key: "6",13098 role: "option",13099 content: [13100 {13101 code: "en",13102 parts: [13103 {13104 str: "Limit your use of public transport"13105 }13106 ]13107 }13108 ],13109 disabled: {13110 name: 'isDefined',13111 data: [13112 {13113 dtype: 'exp',13114 exp: {13115 name: 'getResponseItem',13116 data: [13117 {13118 str: 'covidweekly.Qcov7'13119 },13120 {13121 str: '1.1.12'13122 }13123 ]13124 }13125 }13126 ]13127 },13128 },13129 {13130 key: "7",13131 role: "option",13132 content: [13133 {13134 code: "en",13135 parts: [13136 {13137 str: "Avoid gatherings (going to the theater, cinema, stadium, supermarket, etc.)"13138 }13139 ]13140 }13141 ],13142 disabled: {13143 name: 'isDefined',13144 data: [13145 {13146 dtype: 'exp',13147 exp: {13148 name: 'getResponseItem',13149 data: [13150 {13151 str: 'covidweekly.Qcov7'13152 },13153 {13154 str: '1.1.12'13155 }13156 ]13157 }13158 }13159 ]13160 },13161 },13162 {13163 key: "8",13164 role: "option",13165 content: [13166 {13167 code: "en",13168 parts: [13169 {13170 str: "Stay at home"13171 }13172 ]13173 }13174 ],13175 disabled: {13176 name: 'isDefined',13177 data: [13178 {13179 dtype: 'exp',13180 exp: {13181 name: 'getResponseItem',13182 data: [13183 {13184 str: 'covidweekly.Qcov7'13185 },13186 {13187 str: '1.1.12'13188 }13189 ]13190 }13191 }13192 ]13193 },13194 },13195 {13196 key: "9",13197 role: "option",13198 content: [13199 {13200 code: "en",13201 parts: [13202 {13203 str: "Telework or increase your number of telework days (if your employer allows it)"13204 }13205 ]13206 }13207 ],13208 disabled: {13209 name: 'isDefined',13210 data: [13211 {13212 dtype: 'exp',13213 exp: {13214 name: 'getResponseItem',13215 data: [13216 {13217 str: 'covidweekly.Qcov7'13218 },13219 {13220 str: '1.1.12'13221 }13222 ]13223 }13224 }13225 ]13226 },13227 },13228 {13229 key: "10",13230 role: "option",13231 content: [13232 {13233 code: "en",13234 parts: [13235 {13236 str: "Avoid travel outside your own country / region?"13237 }13238 ]13239 }13240 ],13241 disabled: {13242 name: 'isDefined',13243 data: [13244 {13245 dtype: 'exp',13246 exp: {13247 name: 'getResponseItem',13248 data: [13249 {13250 str: 'covidweekly.Qcov7'13251 },13252 {13253 str: '1.1.12'13254 }13255 ]13256 }13257 }13258 ]13259 },13260 },13261 {13262 key: "13",13263 role: "option",13264 content: [13265 {13266 code: "en",13267 parts: [13268 {13269 str: "Have your food-shopping delivered by a store or a friend/family member "13270 }13271 ]13272 }13273 ],13274 disabled: {13275 name: 'isDefined',13276 data: [13277 {13278 dtype: 'exp',13279 exp: {13280 name: 'getResponseItem',13281 data: [13282 {13283 str: 'covidweekly.Qcov7'13284 },13285 {13286 str: '1.1.12'13287 }13288 ]13289 }13290 }13291 ]13292 },13293 },13294 {13295 key: "14",13296 role: "option",13297 content: [13298 {13299 code: "en",13300 parts: [13301 {13302 str: "Avoid seeing friends and family"13303 }13304 ]13305 }13306 ],13307 disabled: {13308 name: 'isDefined',13309 data: [13310 {13311 dtype: 'exp',13312 exp: {13313 name: 'getResponseItem',13314 data: [13315 {13316 str: 'covidweekly.Qcov7'13317 },13318 {13319 str: '1.1.12'13320 }13321 ]13322 }13323 }13324 ]13325 },13326 },13327 {13328 key: "15",13329 role: "option",13330 content: [13331 {13332 code: "en",13333 parts: [13334 {13335 str: "Avoid being in contact with people over 65 years or with a chronic disease "13336 }13337 ]13338 }13339 ],13340 disabled: {13341 name: 'isDefined',13342 data: [13343 {13344 dtype: 'exp',13345 exp: {13346 name: 'getResponseItem',13347 data: [13348 {13349 str: 'covidweekly.Qcov7'13350 },13351 {13352 str: '1.1.12'13353 }13354 ]13355 }13356 }13357 ]13358 },13359 },13360 {13361 key: "16",13362 role: "option",13363 content: [13364 {13365 code: "en",13366 parts: [13367 {13368 str: "Avoid being in contact with children"13369 }13370 ]13371 }13372 ],13373 disabled: {13374 name: 'isDefined',13375 data: [13376 {13377 dtype: 'exp',13378 exp: {13379 name: 'getResponseItem',13380 data: [13381 {13382 str: 'covidweekly.Qcov7'13383 },13384 {13385 str: '1.1.12'13386 }13387 ]13388 }13389 }13390 ]13391 },13392 },13393 {13394 key: "12",13395 role: "option",13396 content: [13397 {13398 code: "en",13399 parts: [13400 {13401 str: "None of these measures (exclusive, if this answer is selected, no other answer can be selected)"13402 }13403 ]13404 }13405 ],13406 }13407 ]13408 }13409 ]13410 }13411 ]13412 }13413}13414const Q11: SurveySingleItem = {13415 key: "covidweekly.52",13416 // if report any symptoms13417 condition: {13418 name: "or",13419 data: [13420 {13421 dtype: 'exp',13422 exp: {13423 name: 'isDefined',13424 data: [13425 {13426 dtype: 'exp',13427 exp: {13428 name: 'getResponseItem',13429 data: [13430 {13431 str: 'covidweekly.32'13432 },13433 {13434 str: '1.1.142'13435 }13436 ]13437 }13438 }13439 ]13440 }13441 },13442 {13443 dtype: 'exp',13444 exp: {13445 name: 'isDefined',13446 data: [13447 {13448 dtype: 'exp',13449 exp: {13450 name: 'getResponseItem',13451 data: [13452 {13453 str: 'covidweekly.32'13454 },13455 {13456 str: '1.1.143'13457 }13458 ]13459 }13460 }13461 ]13462 }13463 },13464 {13465 dtype: 'exp',13466 exp: {13467 name: 'isDefined',13468 data: [13469 {13470 dtype: 'exp',13471 exp: {13472 name: 'getResponseItem',13473 data: [13474 {13475 str: 'covidweekly.32'13476 },13477 {13478 str: '1.1.144'13479 }13480 ]13481 }13482 }13483 ]13484 }13485 },13486 {13487 dtype: 'exp',13488 exp: {13489 name: 'isDefined',13490 data: [13491 {13492 dtype: 'exp',13493 exp: {13494 name: 'getResponseItem',13495 data: [13496 {13497 str: 'covidweekly.32'13498 },13499 {13500 str: '1.1.145'13501 }13502 ]13503 }13504 }13505 ]13506 }13507 },13508 {13509 dtype: 'exp',13510 exp: {13511 name: 'isDefined',13512 data: [13513 {13514 dtype: 'exp',13515 exp: {13516 name: 'getResponseItem',13517 data: [13518 {13519 str: 'covidweekly.32'13520 },13521 {13522 str: '1.1.146'13523 }13524 ]13525 }13526 }13527 ]13528 }13529 },13530 {13531 dtype: 'exp',13532 exp: {13533 name: 'isDefined',13534 data: [13535 {13536 dtype: 'exp',13537 exp: {13538 name: 'getResponseItem',13539 data: [13540 {13541 str: 'covidweekly.32'13542 },13543 {13544 str: '1.1.147'13545 }13546 ]13547 }13548 }13549 ]13550 }13551 },13552 {13553 dtype: 'exp',13554 exp: {13555 name: 'isDefined',13556 data: [13557 {13558 dtype: 'exp',13559 exp: {13560 name: 'getResponseItem',13561 data: [13562 {13563 str: 'covidweekly.32'13564 },13565 {13566 str: '1.1.148'13567 }13568 ]13569 }13570 }13571 ]13572 }13573 },13574 {13575 dtype: 'exp',13576 exp: {13577 name: 'isDefined',13578 data: [13579 {13580 dtype: 'exp',13581 exp: {13582 name: 'getResponseItem',13583 data: [13584 {13585 str: 'covidweekly.32'13586 },13587 {13588 str: '1.1.149'13589 }13590 ]13591 }13592 }13593 ]13594 }13595 },13596 {13597 dtype: 'exp',13598 exp: {13599 name: 'isDefined',13600 data: [13601 {13602 dtype: 'exp',13603 exp: {13604 name: 'getResponseItem',13605 data: [13606 {13607 str: 'covidweekly.32'13608 },13609 {13610 str: '1.1.150'13611 }13612 ]13613 }13614 }13615 ]13616 }13617 },13618 {13619 dtype: 'exp',13620 exp: {13621 name: 'isDefined',13622 data: [13623 {13624 dtype: 'exp',13625 exp: {13626 name: 'getResponseItem',13627 data: [13628 {13629 str: 'covidweekly.32'13630 },13631 {13632 str: '1.1.151'13633 }13634 ]13635 }13636 }13637 ]13638 }13639 },13640 {13641 dtype: 'exp',13642 exp: {13643 name: 'isDefined',13644 data: [13645 {13646 dtype: 'exp',13647 exp: {13648 name: 'getResponseItem',13649 data: [13650 {13651 str: 'covidweekly.32'13652 },13653 {13654 str: '1.1.152'13655 }13656 ]13657 }13658 }13659 ]13660 }13661 },13662 {13663 dtype: 'exp',13664 exp: {13665 name: 'isDefined',13666 data: [13667 {13668 dtype: 'exp',13669 exp: {13670 name: 'getResponseItem',13671 data: [13672 {13673 str: 'covidweekly.32'13674 },13675 {13676 str: '1.1.153'13677 }13678 ]13679 }13680 }13681 ]13682 }13683 },13684 {13685 dtype: 'exp',13686 exp: {13687 name: 'isDefined',13688 data: [13689 {13690 dtype: 'exp',13691 exp: {13692 name: 'getResponseItem',13693 data: [13694 {13695 str: 'covidweekly.32'13696 },13697 {13698 str: '1.1.154'13699 }13700 ]13701 }13702 }13703 ]13704 }13705 },13706 {13707 dtype: 'exp',13708 exp: {13709 name: 'isDefined',13710 data: [13711 {13712 dtype: 'exp',13713 exp: {13714 name: 'getResponseItem',13715 data: [13716 {13717 str: 'covidweekly.32'13718 },13719 {13720 str: '1.1.155'13721 }13722 ]13723 }13724 }13725 ]13726 }13727 },13728 {13729 dtype: 'exp',13730 exp: {13731 name: 'isDefined',13732 data: [13733 {13734 dtype: 'exp',13735 exp: {13736 name: 'getResponseItem',13737 data: [13738 {13739 str: 'covidweekly.32'13740 },13741 {13742 str: '1.1.156'13743 }13744 ]13745 }13746 }13747 ]13748 }13749 },13750 {13751 dtype: 'exp',13752 exp: {13753 name: 'isDefined',13754 data: [13755 {13756 dtype: 'exp',13757 exp: {13758 name: 'getResponseItem',13759 data: [13760 {13761 str: 'covidweekly.32'13762 },13763 {13764 str: '1.1.157'13765 }13766 ]13767 }13768 }13769 ]13770 }13771 },13772 {13773 dtype: 'exp',13774 exp: {13775 name: 'isDefined',13776 data: [13777 {13778 dtype: 'exp',13779 exp: {13780 name: 'getResponseItem',13781 data: [13782 {13783 str: 'covidweekly.32'13784 },13785 {13786 str: '1.1.158'13787 }13788 ]13789 }13790 }13791 ]13792 }13793 },13794 {13795 dtype: 'exp',13796 exp: {13797 name: 'isDefined',13798 data: [13799 {13800 dtype: 'exp',13801 exp: {13802 name: 'getResponseItem',13803 data: [13804 {13805 str: 'covidweekly.32'13806 },13807 {13808 str: '1.1.159'13809 }13810 ]13811 }13812 }13813 ]13814 }13815 },13816 {13817 dtype: 'exp',13818 exp: {13819 name: 'isDefined',13820 data: [13821 {13822 dtype: 'exp',13823 exp: {13824 name: 'getResponseItem',13825 data: [13826 {13827 str: 'covidweekly.32'13828 },13829 {13830 str: '1.1.160'13831 }13832 ]13833 }13834 }13835 ]13836 }13837 },13838 ]13839 },13840 version: 1,13841 validations: [],13842 components: {13843 role: "root",13844 items: [13845 {13846 role: "title",13847 content: [13848 {13849 code: "en",13850 parts: [13851 {13852 str: "What do you think is causing your symptoms?"13853 }13854 ]13855 }13856 ]13857 },13858 {13859 key: "1",13860 role: "responseGroup",13861 items: [13862 {13863 key: "1",13864 role: "singleChoiceGroup",13865 items: [13866 {13867 key: "249",13868 role: "option",13869 content: [13870 {13871 code: "en",13872 parts: [13873 {13874 str: "Flu or flu-like illness"13875 }13876 ]13877 }13878 ]13879 },13880 {13881 key: "250",13882 role: "option",13883 content: [13884 {13885 code: "en",13886 parts: [13887 {13888 str: "Common cold"13889 }13890 ]13891 }13892 ]13893 },13894 {13895 key: "251",13896 role: "option",13897 content: [13898 {13899 code: "en",13900 parts: [13901 {13902 str: "Allergy/hay fever"13903 }13904 ]13905 }13906 ]13907 },13908 {13909 key: "353",13910 role: "option",13911 content: [13912 {13913 code: "en",13914 parts: [13915 {13916 str: "Ashtma"13917 }13918 ]13919 }13920 ]13921 },13922 {13923 key: "252",13924 role: "option",13925 content: [13926 {13927 code: "en",13928 parts: [13929 {13930 str: "Gastroenteritis/gastric flu"13931 }13932 ]13933 }13934 ]13935 },13936 {13937 key: "9",13938 role: "option",13939 content: [13940 {13941 code: "en",13942 parts: [13943 {13944 str: "New coronavirus (Covid-19)"13945 }13946 ]13947 }13948 ]13949 },13950 {13951 key: "253",13952 role: "option",13953 content: [13954 {13955 code: "en",13956 parts: [13957 {13958 str: "Other"13959 }13960 ]13961 }13962 ]13963 },13964 {13965 key: "254",13966 role: "option",13967 content: [13968 {13969 code: "en",13970 parts: [13971 {13972 str: "I don't know"13973 }13974 ]13975 }13976 ]13977 }13978 ]13979 }13980 ]13981 }13982 ]13983 }13984}13985const Qcov9: SurveySingleItem = {13986 key: "covidweekly.Qcov9",13987 condition: {13988 name: 'isDefined',13989 data: [13990 {13991 dtype: 'exp',13992 exp: {13993 name: 'getResponseItem',13994 data: [13995 {13996 str: 'covidweekly.52'13997 },13998 {13999 str: '1.1.9'14000 }14001 ]14002 }14003 }14004 ]14005 },14006 follows: [14007 "covidweekly.52",14008 ],14009 version: 1,14010 validations: [],14011 components: {14012 role: "root",14013 items: [14014 {14015 role: "title",14016 content: [14017 {14018 code: "en",14019 parts: [14020 {14021 str: "For which reason(s) do you think you have this disease? (Select all the relevant answers)"14022 }14023 ]14024 }14025 ]14026 },14027 {14028 key: "1",14029 role: "responseGroup",14030 items: [14031 {14032 key: "1",14033 role: "multipleChoiceGroup",14034 items: [14035 {14036 key: "1",14037 role: "option",14038 content: [14039 {14040 code: "en",14041 parts: [14042 {14043 str: "My doctor told me I have this disease"14044 }14045 ]14046 }14047 ]14048 },14049 {14050 key: "2",14051 role: "option",14052 content: [14053 {14054 code: "en",14055 parts: [14056 {14057 str: "I had a laboratory confirmation that I have this disease"14058 }14059 ]14060 }14061 ]14062 },14063 {14064 key: "3",14065 role: "option",14066 content: [14067 {14068 code: "en",14069 parts: [14070 {14071 str: "I had direct contact with a laboratory confirmed case"14072 }14073 ]14074 }14075 ]14076 },14077 {14078 key: "4",14079 role: "option",14080 content: [14081 {14082 code: "en",14083 parts: [14084 {14085 str: "I had close contact with someone for whom a doctor diagnosed this disease "14086 }14087 ]14088 }14089 ]14090 },14091 {14092 key: "5",14093 role: "option",14094 content: [14095 {14096 code: "en",14097 parts: [14098 {14099 str: "I was in close contact with someone presenting symptoms of this disease"14100 }14101 ]14102 }14103 ]14104 },14105 {14106 key: "6",14107 role: "option",14108 content: [14109 {14110 code: "en",14111 parts: [14112 {14113 str: "I was at an event/location with a confirmed case"14114 }14115 ]14116 }14117 ]14118 },14119 {14120 key: "7",14121 role: "option",14122 content: [14123 {14124 code: "en",14125 parts: [14126 {14127 str: "I think I have this disease"14128 }14129 ]14130 }14131 ]14132 },14133 ]14134 }14135 ]14136 }14137 ]14138 }14139}14140const Qcov9b: SurveySingleItem = {14141 key: "covidweekly.Qcov9b",14142 condition: {14143 name: 'isDefined',14144 data: [14145 {14146 dtype: 'exp',14147 exp: {14148 name: 'getResponseItem',14149 data: [14150 {14151 str: 'covidweekly.52'14152 },14153 {14154 str: '1.1.9'14155 }14156 ]14157 }14158 }14159 ]14160 },14161 follows: [14162 "covidweekly.52",14163 ],14164 version: 1,14165 validations: [],14166 components: {14167 role: "root",14168 items: [14169 {14170 role: "title",14171 content: [14172 {14173 code: "en",14174 parts: [14175 {14176 str: "Have you informed people who have been in close contact with you about your suspicion of COVID-19 infection?"14177 }14178 ]14179 }14180 ]14181 },14182 {14183 key: "1",14184 role: "responseGroup",14185 items: [14186 {14187 key: "1",14188 role: "singleChoiceGroup",14189 items: [14190 {14191 key: "1",14192 role: "option",14193 content: [14194 {14195 code: "en",14196 parts: [14197 {14198 str: "Yes"14199 }14200 ]14201 }14202 ]14203 },14204 {14205 key: "2",14206 role: "option",14207 content: [14208 {14209 code: "en",14210 parts: [14211 {14212 str: "Some of them"14213 }14214 ]14215 }14216 ]14217 },14218 {14219 key: "0",14220 role: "option",14221 content: [14222 {14223 code: "en",14224 parts: [14225 {14226 str: "No"14227 }14228 ]14229 }14230 ]14231 }14232 ]14233 }14234 ]14235 }14236 ]14237 }14238}14239const Qcov10: SurveySingleItem = {14240 key: "covidweekly.Qcov10",14241 version: 1,14242 validations: [],14243 components: {14244 role: "root",14245 items: [14246 {14247 role: "title",14248 content: [14249 {14250 code: "en",14251 parts: [14252 {14253 str: "Since the beginning of COVID-19 lockdown measures, do you carry out a professional activity? (Select all the relevant answers)"14254 }14255 ]14256 }14257 ]14258 },14259 {14260 key: "1",14261 role: "responseGroup",14262 items: [14263 {14264 key: "1",14265 role: "multipleChoiceGroup",14266 items: [14267 {14268 key: "1",14269 role: "option",14270 content: [14271 {14272 code: "en",14273 parts: [14274 {14275 str: "Yes, I work from home"14276 }14277 ]14278 }14279 ],14280 disabled: {14281 name: 'isDefined',14282 data: [14283 {14284 dtype: 'exp',14285 exp: {14286 name: 'getResponseItem',14287 data: [14288 {14289 str: 'covidweekly.Qcov10'14290 },14291 {14292 str: '1.1.4'14293 }14294 ]14295 }14296 }14297 ]14298 },14299 },14300 {14301 key: "2",14302 role: "option",14303 content: [14304 {14305 code: "en",14306 parts: [14307 {14308 str: "Yes, I work outside from home"14309 }14310 ]14311 }14312 ],14313 disabled: {14314 name: 'isDefined',14315 data: [14316 {14317 dtype: 'exp',14318 exp: {14319 name: 'getResponseItem',14320 data: [14321 {14322 str: 'covidweekly.Qcov10'14323 },14324 {14325 str: '1.1.4'14326 }14327 ]14328 }14329 }14330 ]14331 },14332 },14333 {14334 key: "3",14335 role: "option",14336 content: [14337 {14338 code: "en",14339 parts: [14340 {14341 str: "No, I have a leave of absence to take care of my kid(s)"14342 }14343 ]14344 }14345 ],14346 disabled: {14347 name: 'isDefined',14348 data: [14349 {14350 dtype: 'exp',14351 exp: {14352 name: 'getResponseItem',14353 data: [14354 {14355 str: 'covidweekly.Qcov10'14356 },14357 {14358 str: '1.1.4'14359 }14360 ]14361 }14362 }14363 ]14364 },14365 },14366 {14367 key: "4",14368 role: "option",14369 content: [14370 {14371 code: "en",14372 parts: [14373 {14374 str: "No, I have a sick leave (because of Covid-19)"14375 }14376 ]14377 }14378 ]14379 },14380 {14381 key: "5",14382 role: "option",14383 content: [14384 {14385 code: "en",14386 parts: [14387 {14388 str: "No, I have another situation (retired, job-seeker, student, house-wife/husband, other sick-leave…)"14389 }14390 ]14391 }14392 ],14393 disabled: {14394 name: 'isDefined',14395 data: [14396 {14397 dtype: 'exp',14398 exp: {14399 name: 'getResponseItem',14400 data: [14401 {14402 str: 'covidweekly.Qcov10'14403 },14404 {14405 str: '1.1.4'14406 }14407 ]14408 }14409 }14410 ]14411 },14412 },14413 ]14414 }14415 ]14416 }14417 ]14418 }14419}14420const Qcov10b: SurveySingleItem = {14421 key: "covidweekly.Qcov10b",14422 condition: {14423 name: 'isDefined',14424 data: [14425 {14426 dtype: 'exp',14427 exp: {14428 name: 'getResponseItem',14429 data: [14430 {14431 str: 'covidweekly.Qcov10'14432 },14433 {14434 str: '1.1.2'14435 }14436 ]14437 }14438 }14439 ]14440 },14441 follows: [14442 "covidweekly.Qcov10",14443 ],14444 version: 1,14445 validations: [],14446 components: {14447 role: "root",14448 items: [14449 {14450 role: "title",14451 content: [14452 {14453 code: "en",14454 parts: [14455 {14456 str: "How many days a week do you work outside from home?"14457 }14458 ]14459 }14460 ]14461 },14462 {14463 key: "1",14464 role: "responseGroup",14465 items: [14466 {14467 key: '1.1',14468 role: 'numberInput',14469 properties: {14470 max: { dtype: 'num', num: 7 },14471 min: { dtype: 'num', num: 1 },14472 stepSize: { dtype: 'num', num: 1 },14473 },14474 content: [14475 {14476 code: 'en',14477 parts: [14478 {14479 str: 'Days'14480 },14481 ]14482 },14483 ],14484 }14485 ]14486 }14487 ]14488 }14489}14490const Qcov11: SurveySingleItem = {14491 key: "covidweekly.Qcov11",14492 version: 1,14493 validations: [],14494 components: {14495 role: "root",14496 items: [14497 {14498 role: "title",14499 content: [14500 {14501 code: "en",14502 parts: [14503 {14504 str: "Over recent days, at which frequency did you go out of home to buy products, on average?"14505 }14506 ]14507 }14508 ]14509 },14510 {14511 key: "1",14512 role: "responseGroup",14513 items: [14514 {14515 key: "1",14516 role: "singleChoiceGroup",14517 items: [14518 {14519 key: "1",14520 role: "option",14521 content: [14522 {14523 code: "en",14524 parts: [14525 {14526 str: "I do not go out of home anymore"14527 }14528 ]14529 }14530 ]14531 },14532 {14533 key: "2",14534 role: "option",14535 content: [14536 {14537 code: "en",14538 parts: [14539 {14540 str: "Less than once a week"14541 }14542 ]14543 }14544 ]14545 },14546 {14547 key: "3",14548 role: "option",14549 content: [14550 {14551 code: "en",14552 parts: [14553 {14554 str: "Once a week"14555 }14556 ]14557 }14558 ]14559 },14560 {14561 key: "4",14562 role: "option",14563 content: [14564 {14565 code: "en",14566 parts: [14567 {14568 str: "2 to 6 times a week"14569 }14570 ]14571 }14572 ]14573 },14574 {14575 key: "5",14576 role: "option",14577 content: [14578 {14579 code: "en",14580 parts: [14581 {14582 str: "Once a day"14583 }14584 ]14585 }14586 ]14587 },14588 {14589 key: "6",14590 role: "option",14591 content: [14592 {14593 code: "en",14594 parts: [14595 {14596 str: "Several times per day"14597 }14598 ]14599 }14600 ]14601 },14602 ]14603 }14604 ]14605 }14606 ]14607 }14608}14609const Qcov12: SurveySingleItem = {14610 key: "covidweekly.Qcov12",14611 version: 1,14612 validations: [],14613 components: {14614 role: "root",14615 items: [14616 {14617 role: "title",14618 content: [14619 {14620 code: "en",14621 parts: [14622 {14623 str: "Over recent days, at which frequency did you go out of home to get fresh air or exercise, on average?"14624 }14625 ]14626 }14627 ]14628 },14629 {14630 key: "1",14631 role: "responseGroup",14632 items: [14633 {14634 key: "1",14635 role: "singleChoiceGroup",14636 items: [14637 {14638 key: "1",14639 role: "option",14640 content: [14641 {14642 code: "en",14643 parts: [14644 {14645 str: "I do not go out of home anymore"14646 }14647 ]14648 }14649 ]14650 },14651 {14652 key: "2",14653 role: "option",14654 content: [14655 {14656 code: "en",14657 parts: [14658 {14659 str: "Less than once a week"14660 }14661 ]14662 }14663 ]14664 },14665 {14666 key: "3",14667 role: "option",14668 content: [14669 {14670 code: "en",14671 parts: [14672 {14673 str: "Once a week"14674 }14675 ]14676 }14677 ]14678 },14679 {14680 key: "4",14681 role: "option",14682 content: [14683 {14684 code: "en",14685 parts: [14686 {14687 str: "2 to 6 times a week"14688 }14689 ]14690 }14691 ]14692 },14693 {14694 key: "5",14695 role: "option",14696 content: [14697 {14698 code: "en",14699 parts: [14700 {14701 str: "Once a day"14702 }14703 ]14704 }14705 ]14706 },14707 {14708 key: "6",14709 role: "option",14710 content: [14711 {14712 code: "en",14713 parts: [14714 {14715 str: "Several times per day"14716 }14717 ]14718 }14719 ]14720 },14721 ]14722 }14723 ]14724 }14725 ]14726 }14727}14728const Qcov13: SurveySingleItem = {14729 key: "covidweekly.Qcov13",14730 version: 1,14731 validations: [],14732 components: {14733 role: "root",14734 items: [14735 {14736 role: "title",14737 content: [14738 {14739 code: "en",14740 parts: [14741 {14742 str: "Over the course of yesterday, how many people (outside your household) did you approach at a distance lower than 1 meter?"14743 }14744 ]14745 }14746 ]14747 },14748 {14749 key: "1",14750 role: "responseGroup",14751 items: [14752 {14753 key: "1",14754 role: "singleChoiceGroup",14755 items: [14756 {14757 key: "0",14758 role: "option",14759 content: [14760 {14761 code: "en",14762 parts: [14763 {14764 str: "0"14765 }14766 ]14767 }14768 ]14769 },14770 {14771 key: "1",14772 role: "option",14773 content: [14774 {14775 code: "en",14776 parts: [14777 {14778 str: "1"14779 }14780 ]14781 }14782 ]14783 },14784 {14785 key: "2",14786 role: "option",14787 content: [14788 {14789 code: "en",14790 parts: [14791 {14792 str: "from 2 to 5"14793 }14794 ]14795 }14796 ]14797 },14798 {14799 key: "3",14800 role: "option",14801 content: [14802 {14803 code: "en",14804 parts: [14805 {14806 str: "from 6 to 10"14807 }14808 ]14809 }14810 ]14811 },14812 {14813 key: "4",14814 role: "option",14815 content: [14816 {14817 code: "en",14818 parts: [14819 {14820 str: "more then 10"14821 }14822 ]14823 }14824 ]14825 },14826 ]14827 }14828 ]14829 }14830 ]14831 }14832}14833const Qcov14: SurveySingleItem = {14834 key: "covidweekly.Qcov14",14835 version: 1,14836 validations: [],14837 components: {14838 role: "root",14839 items: [14840 {14841 role: "title",14842 content: [14843 {14844 code: "en",14845 parts: [14846 {14847 str: "If lockdown measures were lifted up, but collective childcare/schools/university were closed, would you carry out a professional activity? (Select all the relevant answers)"14848 }14849 ]14850 }14851 ]14852 },14853 {14854 key: "1",14855 role: "responseGroup",14856 items: [14857 {14858 key: "1",14859 role: "multipleChoiceGroup",14860 items: [14861 {14862 key: "1",14863 role: "option",14864 content: [14865 {14866 code: "en",14867 parts: [14868 {14869 str: "Yes, I would work from home"14870 }14871 ]14872 }14873 ],14874 disabled: {14875 name: 'or',14876 data: [14877 {14878 dtype: 'exp',14879 exp: {14880 name: 'isDefined',14881 data: [14882 {14883 dtype: 'exp',14884 exp: {14885 name: 'getResponseItem',14886 data: [14887 {14888 str: 'covidweekly.Qcov14'14889 },14890 {14891 str: '1.1.4'14892 }14893 ]14894 }14895 }14896 ]14897 }14898 },14899 {14900 dtype: 'exp',14901 exp: {14902 name: 'isDefined',14903 data: [14904 {14905 dtype: 'exp',14906 exp: {14907 name: 'getResponseItem',14908 data: [14909 {14910 str: 'covidweekly.Qcov14'14911 },14912 {14913 str: '1.1.6'14914 }14915 ]14916 }14917 }14918 ]14919 }14920 },14921 ]14922 },14923 },14924 {14925 key: "2",14926 role: "option",14927 content: [14928 {14929 code: "en",14930 parts: [14931 {14932 str: "Yes, I would work outside from home"14933 }14934 ]14935 }14936 ],14937 disabled: {14938 name: 'or',14939 data: [14940 {14941 dtype: 'exp',14942 exp: {14943 name: 'isDefined',14944 data: [14945 {14946 dtype: 'exp',14947 exp: {14948 name: 'getResponseItem',14949 data: [14950 {14951 str: 'covidweekly.Qcov14'14952 },14953 {14954 str: '1.1.4'14955 }14956 ]14957 }14958 }14959 ]14960 }14961 },14962 {14963 dtype: 'exp',14964 exp: {14965 name: 'isDefined',14966 data: [14967 {14968 dtype: 'exp',14969 exp: {14970 name: 'getResponseItem',14971 data: [14972 {14973 str: 'covidweekly.Qcov14'14974 },14975 {14976 str: '1.1.6'14977 }14978 ]14979 }14980 }14981 ]14982 }14983 },14984 ]14985 },14986 },14987 {14988 key: "3",14989 role: "option",14990 content: [14991 {14992 code: "en",14993 parts: [14994 {14995 str: "No, I would have a leave of absence to take care of my kid(s)"14996 }14997 ]14998 }14999 ],15000 disabled: {15001 name: 'or',15002 data: [15003 {15004 dtype: 'exp',15005 exp: {15006 name: 'isDefined',15007 data: [15008 {15009 dtype: 'exp',15010 exp: {15011 name: 'getResponseItem',15012 data: [15013 {15014 str: 'covidweekly.Qcov14'15015 },15016 {15017 str: '1.1.4'15018 }15019 ]15020 }15021 }15022 ]15023 }15024 },15025 {15026 dtype: 'exp',15027 exp: {15028 name: 'isDefined',15029 data: [15030 {15031 dtype: 'exp',15032 exp: {15033 name: 'getResponseItem',15034 data: [15035 {15036 str: 'covidweekly.Qcov14'15037 },15038 {15039 str: '1.1.6'15040 }15041 ]15042 }15043 }15044 ]15045 }15046 },15047 ]15048 },15049 },15050 {15051 key: "4",15052 role: "option",15053 content: [15054 {15055 code: "en",15056 parts: [15057 {15058 str: "No, I would have a sick leave (because of Covid-19) (exclusive item)"15059 }15060 ]15061 }15062 ],15063 disabled: {15064 name: 'isDefined',15065 data: [15066 {15067 dtype: 'exp',15068 exp: {15069 name: 'getResponseItem',15070 data: [15071 {15072 str: 'covidweekly.Qcov14'15073 },15074 {15075 str: '1.1.6'15076 }15077 ]15078 }15079 }15080 ]15081 },15082 },15083 {15084 key: "5",15085 role: "option",15086 content: [15087 {15088 code: "en",15089 parts: [15090 {15091 str: "No, I would have another situation (retired, job-seeker, student, house-wife/husband, other sick-leave…)"15092 }15093 ]15094 }15095 ],15096 disabled: {15097 name: 'or',15098 data: [15099 {15100 dtype: 'exp',15101 exp: {15102 name: 'isDefined',15103 data: [15104 {15105 dtype: 'exp',15106 exp: {15107 name: 'getResponseItem',15108 data: [15109 {15110 str: 'covidweekly.Qcov14'15111 },15112 {15113 str: '1.1.4'15114 }15115 ]15116 }15117 }15118 ]15119 }15120 },15121 {15122 dtype: 'exp',15123 exp: {15124 name: 'isDefined',15125 data: [15126 {15127 dtype: 'exp',15128 exp: {15129 name: 'getResponseItem',15130 data: [15131 {15132 str: 'covidweekly.Qcov14'15133 },15134 {15135 str: '1.1.6'15136 }15137 ]15138 }15139 }15140 ]15141 }15142 },15143 ]15144 },15145 },15146 {15147 key: "6",15148 role: "option",15149 content: [15150 {15151 code: "en",15152 parts: [15153 {15154 str: "I don’t know (exclusive item)"15155 }15156 ]15157 }15158 ],15159 disabled: {15160 name: 'isDefined',15161 data: [15162 {15163 dtype: 'exp',15164 exp: {15165 name: 'getResponseItem',15166 data: [15167 {15168 str: 'covidweekly.Qcov14'15169 },15170 {15171 str: '1.1.4'15172 }15173 ]15174 }15175 }15176 ]15177 },15178 },15179 ]15180 }15181 ]15182 }15183 ]15184 }15185}15186const Qcov14b: SurveySingleItem = {15187 key: "covidweekly.Qcov14b",15188 condition: {15189 name: 'isDefined',15190 data: [15191 {15192 dtype: 'exp',15193 exp: {15194 name: 'getResponseItem',15195 data: [15196 {15197 str: 'covidweekly.Qcov14'15198 },15199 {15200 str: '1.1.2'15201 }15202 ]15203 }15204 }15205 ]15206 },15207 follows: [15208 "covidweekly.Qcov14",15209 ],15210 version: 1,15211 validations: [],15212 components: {15213 role: "root",15214 items: [15215 {15216 role: "title",15217 content: [15218 {15219 code: "en",15220 parts: [15221 {15222 str: "How many days a week do you work outside from home?"15223 }15224 ]15225 }15226 ]15227 },15228 {15229 key: "1",15230 role: "responseGroup",15231 items: [15232 {15233 key: '1.1',15234 role: 'numberInput',15235 properties: {15236 max: { dtype: 'num', num: 7 },15237 min: { dtype: 'num', num: 1 },15238 stepSize: { dtype: 'num', num: 1 },15239 },15240 content: [15241 {15242 code: 'en',15243 parts: [15244 {15245 str: 'Days'15246 },15247 ]15248 },15249 ],15250 }15251 ]15252 }15253 ]15254 }15255}15256const Qcov15: SurveySingleItem = {15257 key: "covidweekly.Qcov15",15258 version: 1,15259 validations: [],15260 components: {15261 role: "root",15262 items: [15263 {15264 role: "title",15265 content: [15266 {15267 code: "en",15268 parts: [15269 {15270 str: "If lockdown measures were extended (that is to say, continued beyond the date announced by the government), do you think you would follow the recommendations with as much rigour as you do now?"15271 }15272 ]15273 }15274 ]15275 },15276 {15277 key: "1",15278 role: "responseGroup",15279 items: [15280 {15281 key: "1",15282 role: "singleChoiceGroup",15283 items: [15284 {15285 key: "4",15286 role: "option",15287 content: [15288 {15289 code: "en",15290 parts: [15291 {15292 str: "Yes, absolutely"15293 }15294 ]15295 }15296 ]15297 },15298 {15299 key: "3",15300 role: "option",15301 content: [15302 {15303 code: "en",15304 parts: [15305 {15306 str: "Yes, moderately"15307 }15308 ]15309 }15310 ]15311 },15312 {15313 key: "2",15314 role: "option",15315 content: [15316 {15317 code: "en",15318 parts: [15319 {15320 str: "No, not really"15321 }15322 ]15323 }15324 ]15325 },15326 {15327 key: "1",15328 role: "option",15329 content: [15330 {15331 code: "en",15332 parts: [15333 {15334 str: "No, not at all"15335 }15336 ]15337 }15338 ]15339 },15340 {15341 key: "99",15342 role: "option",15343 content: [15344 {15345 code: "en",15346 parts: [15347 {15348 str: "I don't know"15349 }15350 ]15351 }15352 ]15353 },15354 ]15355 }15356 ]15357 }15358 ]15359 }15360}15361const surveyDef: SurveyGroupItem = {15362 key: 'covidweekly',15363 version: 1,15364 selectionMethod: {15365 name: 'sequential',15366 },15367 items: [15368 Q1,15369 Q2,15370 Qcov1,15371 // Qcov1b,15372 // Qcov2,15373 // Qcov2b,15374 Qcov3,15375 Qcov3b,15376 Qcov8,15377 Qcov8b,15378 Q3,15379 Q4,15380 Q5,15381 Q6,15382 Q6b,15383 Q6c,15384 Q6d,15385 // { key: 'covidweekly', version: 1, type: 'pageBreak' },15386 Q7,15387 Q7b,15388 Qcov4,15389 Qcov5,15390 Q8,15391 Q8b,15392 Q9,15393 Q9b,15394 Q14,15395 Q10,15396 Q10b,15397 Q10c,15398 Qcov6,15399 Qcov7,15400 Q11,15401 Qcov9,15402 Qcov9b,15403 Qcov10,15404 Qcov10b,15405 Qcov11,15406 Qcov12,15407 Qcov13,15408 Qcov14,15409 Qcov14b,15410 Qcov1515411 ]15412}15413export const survey: Survey = {15414 name: [15415 { code: 'en', parts: [{ 'str': 'COVID-19' }] },15416 { code: 'de', parts: [{ 'str': 'COVID-19' }] }15417 ],15418 current: {15419 surveyDefinition: surveyDef15420 }...

Full Screen

Full Screen

dynamic-forms.js

Source:dynamic-forms.js Github

copy

Full Screen

...66 collapseItem = null;67 masterTable = null;68 tableElement = null;69 // Check that the required attributes are in place70 if (angular.isDefined(attrs.ngModel) && (angular.isDefined(attrs.template) || angular.isDefined(attrs.templateUrl)) && !element.hasClass('dynamic-form')) {71 model = $parse(attrs.ngModel)($scope);72 // Grab the template. either from the template attribute, or from the URL in templateUrl73 (attrs.template ? $q.when($parse(attrs.template)($scope)) :74 $http.get(attrs.templateUrl, {cache: $templateCache}).then(function (result) {75 return result.data;76 })77 ).then(function (template) {78 var setProperty = function (obj, props, value, lastProp, buildParent) {79 props = props.split('.');80 lastProp = lastProp || props.pop();81 for (var i = 0; i < props.length; i++) {82 obj = obj[props[i]] = obj[props[i]] || {};83 }84 if (!buildParent) {85 obj[lastProp] = value;86 }87 },88 bracket = function (model, base) {89 props = model.split('.');90 return (base || props.shift()) + (props.length ? "['" + props.join("']['") + "']" : '');91 },92 buildFields = function (field, id) {93 if (String(id).charAt(0) == '$') {94 // Don't process keys added by Angular... See GitHub Issue #2995 return;96 }97 else if (!angular.isDefined(supported[field.type]) || supported[field.type] === false) {98 // Unsupported. Create SPAN with field.label as contents99 newElement = angular.element('<span></span>');100 if (angular.isDefined(field.label)) {angular.element(newElement).html(field.label);}101 angular.forEach(field, function (val, attr) {102 if (["label", "type"].indexOf(attr) > -1) {return;}103 newElement.attr(attr, val);104 });105 this.append(newElement);106 newElement = null;107 }108 else {109 // Supported. Create element (or container) according to type110 if (!angular.isDefined(field.model)) {111 field.model = id;112 }113 // newElement =angular.element($document[0].createElement('div')).attr('class','expandcollapse-item');114 newElement = angular.element($document[0].createElement(supported[field.type].element));115 // newElement.append(newChild);116 // newChild = angular.element($document[0].createElement(supported[field.type].element));117 // newElement.append(newChild);118 if (angular.isDefined(supported[field.type].type)) {119 newElement.attr('type', supported[field.type].type);120 }121 // Editable fields (those that can feed models)122 if (angular.isDefined(supported[field.type].editable) && supported[field.type].editable) {123 newElement.attr('name', field.name ? field.name : bracket(field.model));124 newElement.attr('id', field.id? field.id : field.name);125 newElement.attr('ng-model', bracket(field.model, attrs.ngModel));126 newElement.attr('type', field.type? field.type : '');127 newElement.attr('ng-if', field.conditionExpression? field.conditionExpression : true);128 if(field.type == 'text'){129 newElement.attr('ng-value', field.defaultValue?field.defaultValue:'');130 }131 // Build parent in case of a nested model132 setProperty(model, field.model, {}, null, true);133 if (angular.isDefined(field.readonly)) {newElement.attr('ng-readonly', field.readonly);}134 if (angular.isDefined(field.required)) {newElement.attr('ng-required', field.required);}135 if (angular.isDefined(field.val)) {136 setProperty(model, field.model, angular.copy(field.val));137 newElement.attr('value', field.val);138 }139 }140 // Fields based on input type=text141 if (angular.isDefined(supported[field.type].textBased) && supported[field.type].textBased) {142 if (angular.isDefined(field.minLength)) {newElement.attr('ng-minlength', field.minLength);}143 if (angular.isDefined(field.maxLength)) {newElement.attr('ng-maxlength', field.maxLength);}144 if (angular.isDefined(field.validate)) {newElement.attr('ng-pattern', field.validate);}145 if (angular.isDefined(field.placeholder)) {newElement.attr('placeholder', field.placeholder);}146 }147 // Special cases148 if (field.type === 'number' || field.type === 'range') {149 if (angular.isDefined(field.minValue)) {newElement.attr('min', field.minValue);}150 if (angular.isDefined(field.maxValue)) {newElement.attr('max', field.maxValue);}151 if (angular.isDefined(field.step)) {newElement.attr('step', field.step);}152 }153 else if (['text', 'textarea'].indexOf(field.type) > -1) {154 if (angular.isDefined(field.splitBy)) {newElement.attr('ng-list', field.splitBy);}155 }156 else if (field.type === 'checkbox') {157 if (angular.isDefined(field.isOn)) {newElement.attr('ng-true-value', field.isOn);}158 if (angular.isDefined(field.isOff)) {newElement.attr('ng-false-value', field.isOff);}159 if (angular.isDefined(field.slaveTo)) {newElement.attr('ng-checked', field.slaveTo);}160 }161 else if (field.type === 'checklist') {162 if (angular.isDefined(field.val)) {163 setProperty(model, field.model, angular.copy(field.val));164 }165 if (angular.isDefined(field.options)) {166 if (! (angular.isDefined(model[field.model]) && angular.isObject(model[field.model]))) {167 setProperty(model, field.model, {});168 }169 angular.forEach(field.options, function (option, childId) {170 newChild = angular.element('<input type="checkbox" />');171 newChild.attr('name', bracket(field.model + '.' + childId));172 newChild.attr('ng-model', bracket(field.model + "." + childId, attrs.ngModel));173 if (angular.isDefined(option['class'])) {newChild.attr('ng-class', option['class']);}174 if (angular.isDefined(field.disabled)) {newChild.attr('ng-disabled', field.disabled);}175 if (angular.isDefined(field.readonly)) {newChild.attr('ng-readonly', field.readonly);}176 if (angular.isDefined(field.required)) {newChild.attr('ng-required', field.required);}177 if (angular.isDefined(field.callback)) {newChild.attr('ng-change', field.callback);}178 if (angular.isDefined(option.isOn)) {newChild.attr('ng-true-value', option.isOn);}179 if (angular.isDefined(option.isOff)) {newChild.attr('ng-false-value', option.isOff);}180 if (angular.isDefined(option.slaveTo)) {newChild.attr('ng-checked', option.slaveTo);}181 if (angular.isDefined(option.val)) {182 setProperty(model, field.model, angular.copy(option.val), childId);183 newChild.attr('value', option.val);184 }185 if (angular.isDefined(option.label)) {186 newChild = newChild.wrap('<label></label>').parent();187 newChild.append(document.createTextNode(' ' + option.label));188 }189 newElement.append(newChild);190 });191 }192 }193 else if (field.type === 'radio') {194 if (angular.isDefined(field.val)) {195 setProperty(model, field.model, angular.copy(field.val));196 }197 if (angular.isDefined(field.values)) {198 angular.forEach(field.values, function (label, val) {199 newChild = angular.element('<input type="radio" />');200 newChild.attr('name', bracket(field.model));201 newChild.attr('ng-model', bracket(field.model, attrs.ngModel));202 if (angular.isDefined(field['class'])) {newChild.attr('ng-class', field['class']);}203 if (angular.isDefined(field.disabled)) {newChild.attr('ng-disabled', field.disabled);}204 if (angular.isDefined(field.callback)) {newChild.attr('ng-change', field.callback);}205 if (angular.isDefined(field.readonly)) {newChild.attr('ng-readonly', field.readonly);}206 if (angular.isDefined(field.required)) {newChild.attr('ng-required', field.required);}207 newChild.attr('value', val);208 if (angular.isDefined(field.val) && field.val === val) {newChild.attr('checked', 'checked');}209 if (label) {210 newChild = newChild.wrap('<label></label>').parent();211 newChild.append(document.createTextNode(' ' + label));212 }213 newElement.append(newChild);214 });215 }216 }217 else if (field.type === 'select') {218 count = 0;219 if (angular.isDefined(field.multiple) && field.multiple !== false) {newElement.attr('multiple', 'multiple');}220 // if (angular.isDefined(field.empty) && field.empty !== false) {newElement.append(angular.element($document[0].createElement('option')).attr('value', '').html(field.empty));}221 if (angular.isDefined(field.autoOptions)) {222 newElement.attr('ng-options', field.autoOptions);223 }224 else if (angular.isDefined(field.options)) {225 //ng-init="somethingHere = somethingHere || options[0].value"226 angular.forEach(field.options, function (option, childId) {227 newChild = angular.element($document[0].createElement('option'));228 if(count == 0){229 newChild.attr('ng-selected', 'true');230 }231 newChild.attr('value', childId);232 // newChild.attr('value', childId);233 if (angular.isDefined(option.disabled)) {newChild.attr('ng-disabled', option.disabled);}234 if (angular.isDefined(option.slaveTo)) {newChild.attr('ng-selected', option.slaveTo);}235 if (angular.isDefined(option.label)) {236 newChild.html(option.label);237 }238 if (angular.isDefined(option.group)) {239 if (!angular.isDefined(optGroups[option.group])) {240 optGroups[option.group] = angular.element($document[0].createElement('optgroup'));241 optGroups[option.group].attr('label', option.group);242 }243 optGroups[option.group].append(newChild);244 }245 else {246 newElement.append(newChild);247 }248 count++;249 });250 if (!angular.equals(optGroups, {})) {251 angular.forEach(optGroups, function (optGroup) {252 newElement.append(optGroup);253 });254 optGroups = {};255 }256 }257 }258 else if (field.type === 'image') {259 if (angular.isDefined(field.label)) {newElement.attr('alt', field.label);}260 if (angular.isDefined(field.source)) {newElement.attr('src', field.source);}261 }262 else if (field.type === 'hidden') {263 newElement.attr('name', bracket(field.model));264 newElement.attr('ng-model', bracket(field.model, attrs.ngModel));265 if (angular.isDefined(field.val)) {266 setProperty(model, field.model, angular.copy(field.val));267 newElement.attr('value', field.val);268 }269 }270 else if (field.type === 'file') {271 if (angular.isDefined(field.multiple)) {272 newElement.attr('multiple', field.multiple);273 }274 }275 else if (field.type === 'fieldset') {276 if (angular.isDefined(field.fields)) {277 var workingElement = newElement;278 angular.forEach(field.fields, buildFields, newElement);279 newElement = workingElement;280 }281 }282 // Common attributes; radio already applied these...283 if (field.type !== "radio") {284 if (angular.isDefined(field['class'])) {newElement.attr('ng-class', field['class']);}285 // ...and checklist has already applied these.286 if (field.type !== "checklist") {287 if (angular.isDefined(field.disabled)) {newElement.attr('ng-disabled', field.disabled);}288 if (angular.isDefined(field.callback)) {289 // Some input types need listeners on click...290 if (["button", "fieldset", "image", "legend", "reset", "submit"].indexOf(field.type) > -1) {291 cbAtt = 'ng-click';292 }293 // ...the rest on change.294 else {295 cbAtt = 'ng-change';296 }297 newElement.attr(cbAtt, field.callback);298 }299 }300 }301 // If there's a label, add it.302 if (angular.isDefined(field.label)) {303 // Some elements have already applied their labels.304 if (["image", "hidden"].indexOf(field.type) > -1) {305 angular.noop();306 }307 // Fieldset elements put their labels in legend child elements.308 else if (["fieldset"].indexOf(field.type) > -1) {309 newElement.prepend(angular.element($document[0].createElement('legend')).html(field.label));310 }311 // Button elements get their labels from their contents.312 else if (["button", "legend", "reset", "submit"].indexOf(field.type) > -1) {313 newElement.html(field.label);314 }315 // Everything else should be wrapped in a label tag.316 else {317 newElement.attr('ng-if', field.conditionExpression? field.conditionExpression : true);318 var trElement = angular.element("<tr></tr>");319 trElement.attr('ng-if', field.conditionExpression? field.conditionExpression : true);320 var tdElementLabel = angular.element("<td></td>");321 tdElementLabel.append(field.label);322 var tdElementField = angular.element("<td></td>");323 tdElementField.append(newElement);324 trElement.append(tdElementLabel);325 trElement.append(tdElementField);326 tableElement.append(trElement);327 console.log(tableElement);328 // newElement.parent().append(tableElement);329 //newElement = newElement.wrap("<label></label>").parent();330 console.log(newElement);331 // newElement.prepend(document.createTextNode(field.label + ' '));332// //newElement = newElement.wrap("<tr></tr>").parent();333// console.log("tr=>"+newElement);334// // newElement = newElement.wrap("<td></td>").parent();335// console.log("td=>"+newElement);336 masterTable = tableElement;337 }338 }339 // Arbitrary attributes340 if (angular.isDefined(field.attributes)) {341 angular.forEach(field.attributes, function (val, attr) {342 newElement.attr(attr, val);343 });344 }345 if(field.type == 'accordion'){346 var conditionExpression = ''+ "" + field.conditionExpression?field.conditionExpression:true + "" +'';347 var clickCbString = 'setActiveIndex('+ "" + id + "" +')';348 collapseItem = angular.element('<div class="expandcollapse-item" ng-if = "'+conditionExpression+'">'+349 '<div ng-click='+ clickCbString +' ng-class="{\'expandcollapse-heading-collapsed\': '+id+', \'expandcollapse-heading-expanded\': !'+id+'}">'350 +'<p class="marcom-accordion">'+field.name+'</p></div>'351 +'<div class="slideDown ng-hide" ng-hide="activeIndex != '+id+'">'352 +'<div class="expand-collapse-content"></div></div></div>');353 this.append(collapseItem);354 angular.forEach(template[id].components, buildFields, element);...

Full Screen

Full Screen

index_test.js

Source:index_test.js Github

copy

Full Screen

2const config = require('../../../app/config')3const assert = chai.assert4describe('Config', () => {5 it('should be defined', () => {6 assert.isDefined(config)7 })8 describe('config options exist', () => {9 it('should be defined', () => {10 assert.isDefined(config.get('debug'))11 assert.isDefined(config.get('debugKey'))12 assert.isDefined(config.get('env'))13 assert.isDefined(config.get('port'))14 assert.isDefined(config.get('version'))15 assert.isDefined(config.get('sessionKey'))16 assert.isDefined(config.get('inviteOnly'))17 assert.isDefined(config.get('inviteCap'))18 assert.isDefined(config.get('bugsnag'))19 assert.isDefined(config.get('hashID.secret'))20 assert.isDefined(config.get('hashID.length'))21 assert.isDefined(config.get('hashID.alphabet'))22 assert.isDefined(config.get('database.api.host'))23 assert.isDefined(config.get('database.api.database'))24 assert.isDefined(config.get('database.api.username'))25 assert.isDefined(config.get('database.api.password'))26 assert.isDefined(config.get('secret'))27 assert.isDefined(config.get('router.caseSensitive'))28 assert.isDefined(config.get('router.mergeParams'))29 assert.isDefined(config.get('elasticsearch.host'))30 assert.isDefined(config.get('elasticsearch.indexName'))31 assert.isDefined(config.get('elasticsearch.apiVersion'))32 assert.isDefined(config.get('elasticsearch.requestTimeout'))33 assert.isDefined(config.get('elasticsearch.log'))34 assert.isDefined(config.get('mandrill.key'))35 assert.isDefined(config.get('logzio.token'))36 assert.isDefined(config.get('logzio.type'))37 assert.isDefined(config.get('logzio.debug'))38 })39 })...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1console.log(isDefined('test'));2console.log(isDefined(1));3console.log(isDefined({}));4console.log(isDefined([]));5console.log(isDefined(function(){}));6console.log(isDefined(null));7console.log(isDefined(undefined));8console.log(isDefined());9isUndefined() method10isUndefined(value)11console.log(isUndefined('test'));12console.log(isUndefined(1));13console.log(isUndefined({}));14console.log(isUndefined([]));15console.log(isUndefined(function(){}));16console.log(isUndefined(null));17console.log(isUndefined(undefined));18console.log(isUndefined());19isBoolean() method20isBoolean(value)21console.log(isBoolean('test'));22console.log(isBoolean(1));23console.log(isBoolean({}));24console.log(isBoolean([]));25console.log(isBoolean(function(){}));26console.log(isBoolean(null));27console.log(isBoolean(undefined));28console.log(isBoolean(true));29console.log(isBoolean(false));30console.log(isBoolean());31isBoolean() is a method of root object. This method can be used to check if a value is boolean

Full Screen

Using AI Code Generation

copy

Full Screen

1var root = this;2root.isDefined = function (obj) {3 return typeof obj !== 'undefined';4};5var root = this;6root.isDefined = function (obj) {7 return typeof obj !== 'undefined';8};9var root = this;10root.isDefined = function (obj) {11 return typeof obj !== 'undefined';12};13var root = this;14root.isDefined = function (obj) {15 return typeof obj !== 'undefined';16};17var root = this;18root.isDefined = function (obj) {19 return typeof obj !== 'undefined';20};21var root = this;22root.isDefined = function (obj) {23 return typeof obj !== 'undefined';24};25var root = this;26root.isDefined = function (obj) {27 return typeof obj !== 'undefined';28};29var root = this;30root.isDefined = function (obj) {31 return typeof obj !== 'undefined';32};33var root = this;34root.isDefined = function (obj) {35 return typeof obj !== 'undefined';36};37var root = this;38root.isDefined = function (obj) {39 return typeof obj !== 'undefined';40};41var root = this;42root.isDefined = function (obj) {43 return typeof obj !== 'undefined';44};45var root = this;46root.isDefined = function (obj) {47 return typeof obj !== 'undefined';48};49var root = this;50root.isDefined = function (obj) {51 return typeof obj !== 'undefined';52};

Full Screen

Using AI Code Generation

copy

Full Screen

1var isDefined = require('is-defined');2var isDefined = require('is-defined');3var isDefined = require('is-defined');4var isDefined = require('is-defined');5var isDefined = require('is-defined');6var isDefined = require('is-defined');7var isDefined = require('is-defined');

Full Screen

Using AI Code Generation

copy

Full Screen

1var isDefined = require('is-defined');2if(isDefined(foo)) {3}4var isDefined = require('is-defined').isDefined;5if(isDefined(foo)) {6}7var isDefined = require('is-defined');8var isDefined = isDefined.isDefined;9if(isDefined(foo)) {10}11var isDefined = require('is-defined').isDefined;12var isDefined = isDefined;13if(isDefined(foo)) {14}15var isDefined = require('is-defined').isDefined;16var isDefined = isDefined;17if(isDefined(foo)) {18}19var isDefined = require('is-defined').isDefined;20var isDefined = isDefined;21if(isDefined(foo)) {22}23var isDefined = require('is-defined').isDefined;24var isDefined = isDefined;25if(isDefined(foo)) {26}27var isDefined = require('is-defined').isDefined;28var isDefined = isDefined;29if(isDefined(foo)) {30}31var isDefined = require('is-defined').isDefined;32var isDefined = isDefined;33if(isDefined(foo)) {34}35var isDefined = require('is-defined').isDefined;36var isDefined = isDefined;37if(isDefined(foo)) {38}39var isDefined = require('is-defined').isDefined;40var isDefined = isDefined;41if(isDefined(foo)) {42}

Full Screen

Using AI Code Generation

copy

Full Screen

1if (isDefined(variable)) {2}3if (isDefined(variable)) {4}5if (isDefined(variable)) {6}7if (isDefined(variable)) {8}9if (isDefined(variable)) {10}11if (isDefined(variable)) {12}13if (isDefined(variable)) {14}

Full Screen

Using AI Code Generation

copy

Full Screen

1var isDefined = require('is-defined');2var a = 1;3var b = null;4var isDefined = require('is-defined');5var a = 1;6var b = null;7var isDefined = require('is-defined');8var a = 1;9var b = null;10var isDefined = require('is-defined');11var a = 1;12var b = null;13var isDefined = require('is-defined');14var a = 1;15var b = null;16var isDefined = require('is-defined');17var a = 1;18var b = null;19var isDefined = require('is-defined');20var a = 1;21var b = null;22var isDefined = require('is-defined');23var a = 1;24var b = null;25var isDefined = require('is-defined');26var a = 1;27var b = null;28var isDefined = require('is-defined');29var a = 1;30var b = null;

Full Screen

Using AI Code Generation

copy

Full Screen

1if(isDefined("myVar"))2{3 alert("myVar is defined");4}5{6 alert("myVar is not defined");7}8if(isUndefined("myVar"))9{10 alert("myVar is undefined");11}12{13 alert("myVar is not undefined");14}15if(isNull("myVar"))16{17 alert("myVar is null");18}19{20 alert("myVar is not null");21}22if(isNotNull("myVar"))23{24 alert("myVar is not null");25}26{27 alert("myVar is null");28}29if(isObject("myVar"))30{31 alert("myVar is an object");32}33{34 alert("myVar is not an object");35}36if(isNotObject("myVar"))37{38 alert("myVar is not an object");39}40{41 alert("myVar is an object");42}43if(isFunction("myVar"))44{45 alert("myVar is a function");46}47{48 alert("myVar is not a function");49}50if(isNotFunction("myVar"))51{52 alert("myVar is not a function");53}54{55 alert("myVar is a function");56}57if(isString("myVar"))58{59 alert("myVar is a string");60}61{62 alert("myVar is not a string");63}

Full Screen

Using AI Code Generation

copy

Full Screen

1var root = this;2root.isDefined = function(obj) {3 return (typeof obj !== "undefined");4};5console.log(root.isDefined(root));6console.log(root.isDefined(null));7console.log(root.isDefined(undefined));8var global = this;9global.isDefined = function(obj) {10 return (typeof obj !== "undefined");11};12console.log(global.isDefined(global));13console.log(global.isDefined(null));14console.log(global.isDefined(undefined));15var window = this;16window.isDefined = function(obj) {17 return (typeof obj !== "undefined");18};19console.log(window.isDefined(window));20console.log(window.isDefined(null));21console.log(window.isDefined(undefined));22var global = this;23global.isDefined = function(obj) {24 return (typeof obj !== "undefined");25};26console.log(global.isDefined(global));27console.log(global.isDefined(null));28console.log(global.isDefined(undefined));29var root = this;30root.isDefined = function(obj) {31 return (typeof obj !== "undefined");32};33console.log(root.isDefined(root));34console.log(root.isDefined(null));35console.log(root.isDefined(undefined));36var global = this;37global.isDefined = function(obj) {38 return (typeof obj !== "undefined");39};40console.log(global.isDefined(global));41console.log(global.isDefined(null));42console.log(global.isDefined(undefined));43var window = this;44window.isDefined = function(obj) {45 return (typeof obj !== "undefined");46};47console.log(window.isDefined(window));48console.log(window.isDefined(null));49console.log(window.isDefined(undefined));50var global = this;51global.isDefined = function(obj) {52 return (typeof obj !== "undefined");53};54console.log(global.isDefined(global));55console.log(global.isDefined(null));56console.log(global.isDefined(undefined));57var root = this;58root.isDefined = function(obj) {59 return (typeof obj !== "undefined");60};61console.log(root.isDefined(root));62console.log(root.isDefined(null));63console.log(root.isDefined(undefined));64var global = this;65global.isDefined = function(obj) {66 return (typeof obj !== "undefined");67};68console.log(global.isDefined

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful