Skip to content

Commit 8fc061b

Browse files
authored
Merge pull request #5 from codaco/feature/update-additional-attributes-format
Feature/update additional attributes format
2 parents b5b8cc6 + 4ee04e4 commit 8fc061b

File tree

1 file changed

+49
-22
lines changed

1 file changed

+49
-22
lines changed

protocol.json

Lines changed: 49 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@
680680
"source": "previousInterview.csv",
681681
"name": "Previous Interview in CSV format.",
682682
"type": "network"
683-
},
683+
},
684684
"HIVServices": {
685685
"source": "HIVServices.json",
686686
"name": "HIVServices",
@@ -833,17 +833,26 @@
833833
{
834834
"id": "6cl",
835835
"text": "Who would _you_ consider to be a **close friend**?",
836-
"additionalAttributes": {
837-
"b6f2c4b9-e42f-459b-8f59-a11a685f460d": 46,
838-
"ae44b6ba-ad49-4ecf-bf38-b65decfce000": true
839-
}
836+
"additionalAttributes": [
837+
{
838+
"variable": "b6f2c4b9-e42f-459b-8f59-a11a685f460d",
839+
"value": 2
840+
},
841+
{
842+
"variable": "ae44b6ba-ad49-4ecf-bf38-b65decfce000",
843+
"value": true
844+
}
845+
]
840846
},
841847
{
842848
"id": "6su",
843849
"text": "This is a particularly long prompt, which will be discuraged in the Architect interface but might still be desired by a researcher. What does this look like rendered?",
844-
"additionalAttributes": {
845-
"94e2dee9-1c25-4b64-b8bb-4946465c3c07": true
846-
}
850+
"additionalAttributes": [
851+
{
852+
"variable": "94e2dee9-1c25-4b64-b8bb-4946465c3c07",
853+
"value": true
854+
}
855+
]
847856
},
848857
{
849858
"id": "2we",
@@ -920,9 +929,12 @@
920929
{
921930
"id": "6cl",
922931
"text": "This name generator creates venue nodes using the quick add form",
923-
"additionalAttributes": {
924-
"55f1fbbe-2fe5-42a7-88fb-9a8e5e659d2f": true
925-
}
932+
"additionalAttributes": [
933+
{
934+
"variable": "55f1fbbe-2fe5-42a7-88fb-9a8e5e659d2f",
935+
"value": true
936+
}
937+
]
926938
},
927939
{
928940
"id": "6su",
@@ -1018,10 +1030,16 @@
10181030
{
10191031
"id": "7cl",
10201032
"text": "previous interview JSON",
1021-
"additionalAttributes": {
1022-
"b6f2c4b9-e42f-459b-8f59-a11a685f460d": 56,
1023-
"ae44b6ba-ad49-4ecf-bf38-b65decfce000": true
1024-
},
1033+
"additionalAttributes": [
1034+
{
1035+
"variable": "b6f2c4b9-e42f-459b-8f59-a11a685f460d",
1036+
"value": 1
1037+
},
1038+
{
1039+
"variable": "ae44b6ba-ad49-4ecf-bf38-b65decfce000",
1040+
"value": true
1041+
}
1042+
],
10251043
"dataSource": "previousInterview-json",
10261044
"cardOptions": {
10271045
"displayLabel": "name",
@@ -1247,10 +1265,16 @@
12471265
{
12481266
"id": "7cl1",
12491267
"text": "Which classmates would you also think of as friends?",
1250-
"additionalAttributes": {
1251-
"b6f2c4b9-e42f-459b-8f59-a11a685f460d": 46,
1252-
"ae44b6ba-ad49-4ecf-bf38-b65decfce000": true
1253-
},
1268+
"additionalAttributes": [
1269+
{
1270+
"variable": "b6f2c4b9-e42f-459b-8f59-a11a685f460d",
1271+
"value": 3
1272+
},
1273+
{
1274+
"variable": "ae44b6ba-ad49-4ecf-bf38-b65decfce000",
1275+
"value": true
1276+
}
1277+
],
12541278
"dataSource": "previousInterview-json",
12551279
"cardOptions": {
12561280
"displayLabel": "name",
@@ -1284,9 +1308,12 @@
12841308
{
12851309
"id": "7su",
12861310
"text": "Which of these venues have you visited in the previous 6 months?",
1287-
"additionalAttributes": {
1288-
"55f1fbbe-2fe5-42a7-88fb-9a8e5e659d2f": true
1289-
},
1311+
"additionalAttributes": [
1312+
{
1313+
"variable": "55f1fbbe-2fe5-42a7-88fb-9a8e5e659d2f",
1314+
"value": true
1315+
}
1316+
],
12901317
"dataSource": "HIVServices",
12911318
"cardOptions": {
12921319
"displayLabel": "1e9ce62c-44c5-484d-9c26-0d20cc7d7238",

0 commit comments

Comments
 (0)