File tree Expand file tree Collapse file tree 8 files changed +345
-110
lines changed Expand file tree Collapse file tree 8 files changed +345
-110
lines changed Original file line number Diff line number Diff line change 91
91
"@id": "schema:unitCode",
92
92
"@container": "@set"
93
93
},
94
+ "unitOptions": {
95
+ "@id": "reproschema:unitOptions",
96
+ "@container": "@set"
97
+ },
94
98
"ui" : "@nest",
95
99
"order": {
96
100
"@id": "reproschema:order",
104
108
"@container": "@set",
105
109
"@nest": "ui"
106
110
},
111
+ "overrideProperties": {
112
+ "@id": "reproschema:overrideProperties",
113
+ "@type": "reproschema:OverrideProperty",
114
+ "@container": "@set",
115
+ "@nest": "ui"
116
+ },
117
+ "message": {
118
+ "@id": "reproschema:message",
119
+ "@container": "@language"
120
+ },
107
121
"shuffle": {
108
122
"@id": "reproschema:shuffle",
109
123
"@type": "schema:Boolean",
127
141
"@id": "reproschema:compute",
128
142
"@container": "@index"
129
143
},
144
+ "messages": {
145
+ "@id": "reproschema:messages",
146
+ "@container": "@index"
147
+ },
130
148
"jsExpression": {
131
149
"@id": "reproschema:jsExpression"
132
150
},
Original file line number Diff line number Diff line change 4
4
"@id" : "activity1.jsonld" ,
5
5
"prefLabel" : "Example 1" ,
6
6
"description" : "Activity example 1" ,
7
- "schemaVersion" : "1.0.0-rc1.post " ,
7
+ "schemaVersion" : "1.0.0-rc2 " ,
8
8
"version" : "0.0.1" ,
9
9
"citation" : "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/" ,
10
10
"preamble" : {
11
11
"en" : "Over the last 2 weeks, how often have you been bothered by any of the following problems?" ,
12
12
"es" : "Durante las últimas 2 semanas, ¿con qué frecuencia le han molestado los siguintes problemas?"
13
13
} ,
14
+ "messages" : [
15
+ {
16
+ "message" : "Test message: Triggered when item1 value is greater than 1" ,
17
+ "jsExpression" : "item1 > 1"
18
+ }
19
+ ] ,
14
20
"compute" : [
15
21
{
16
- "variableName" : "phq9_total_score " ,
17
- "jsExpression" : "phq9_1 + phq9_2 + phq9_3 + phq9_4 + phq9_5 + phq9_6 + phq9_7 + phq9_8 + phq9_9 "
22
+ "variableName" : "activity1_total_score " ,
23
+ "jsExpression" : "item1 + item2 "
18
24
}
19
25
] ,
20
26
"ui" : {
26
32
"randomMaxDelay" : "PT2H" ,
27
33
"limit" : "P2D" ,
28
34
"schedule" : "R/2020-08-01T08:00:00Z/P1D"
35
+ } ,
36
+ { "isAbout" : "items/item2.jsonld" ,
37
+ "variableName" : "item2" ,
38
+ "requiredValue" : true ,
39
+ "isVis" : true
29
40
}
30
41
] ,
31
42
"order" : [
32
- "items/item1.jsonld"
43
+ "items/item1.jsonld" ,
44
+ "items/item2.jsonld"
33
45
] ,
34
46
"shuffle" : false
35
47
}
36
- }
48
+ }
Original file line number Diff line number Diff line change 4
4
"@id" : "activity1.jsonld" ,
5
5
"prefLabel" : "Example 1" ,
6
6
"description" : "Activity example 1" ,
7
- "schemaVersion" : "1.0.0-rc1.post " ,
7
+ "schemaVersion" : "1.0.0-rc2 " ,
8
8
"version" : "0.0.1" ,
9
9
"citation" : "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/" ,
10
10
"preamble" : {
24
24
"@id" : "items/item1.jsonld" ,
25
25
"prefLabel" : "item1" ,
26
26
"description" : "Q1 of example 1" ,
27
- "schemaVersion" : "1.0.0-rc1.post " ,
27
+ "schemaVersion" : "1.0.0-rc2 " ,
28
28
"version" : "0.0.1" ,
29
29
"question" : {
30
30
"en" : "Little interest or pleasure in doing things" ,
Original file line number Diff line number Diff line change 4
4
"@id" : "item1.jsonld" ,
5
5
"prefLabel" : "item1" ,
6
6
"description" : "Q1 of example 1" ,
7
- "schemaVersion" : "1.0.0-rc1.post " ,
7
+ "schemaVersion" : "1.0.0-rc2 " ,
8
8
"version" : "0.0.1" ,
9
9
"question" : {
10
10
"en" : "Little interest or pleasure in doing things" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "@context" : "../../../contexts/generic" ,
3
+ "@type" : "reproschema:Field" ,
4
+ "@id" : "item2.jsonld" ,
5
+ "prefLabel" : "item2" ,
6
+ "description" : "Q2 of example 1" ,
7
+ "schemaVersion" : "1.0.0-rc2" ,
8
+ "version" : "0.0.1" ,
9
+ "question" : {
10
+ "en" : "Current temperature." ,
11
+ "es" : "Fiebre actual."
12
+ } ,
13
+ "ui" : {
14
+ "inputType" : "float"
15
+ } ,
16
+ "responseOptions" : {
17
+ "valueType" : "xsd:float" ,
18
+ "unitOptions" : [
19
+ {
20
+ "prefLabel" : {
21
+ "en" : "Fahrenheit" ,
22
+ "es" : "Fahrenheit"
23
+ } ,
24
+ "value" : "°F"
25
+ } ,
26
+ {
27
+ "prefLabel" : {
28
+ "en" : "Celsius" ,
29
+ "es" : "Celsius"
30
+ } ,
31
+ "value" : "°C"
32
+ }
33
+ ]
34
+ }
35
+ }
36
+
37
+
38
+
Original file line number Diff line number Diff line change 7
7
"es" : "Protocol1_es"
8
8
} ,
9
9
"description" : "example Protocol" ,
10
- "schemaVersion" : "1.0.0-rc1.post " ,
10
+ "schemaVersion" : "1.0.0-rc2 " ,
11
11
"version" : "0.0.1" ,
12
+ "messages" : [
13
+ {
14
+ "message" : "Test message: Triggered when item1 value is greater than 0" ,
15
+ "jsExpression" : "item1 > 0"
16
+ }
17
+ ] ,
12
18
"ui" : {
13
19
"addProperties" : [
14
20
{
Original file line number Diff line number Diff line change 7
7
"es" : "Protocol1_es"
8
8
} ,
9
9
"description" : "example Protocol" ,
10
- "schemaVersion" : "1.0.0-rc1.post " ,
10
+ "schemaVersion" : "1.0.0-rc2 " ,
11
11
"version" : "0.0.1" ,
12
12
"ui" : {
13
13
"addProperties" : [
27
27
"@id" : "../activities/activity1.jsonld" ,
28
28
"prefLabel" : "Example 1" ,
29
29
"description" : "Activity example 1" ,
30
- "schemaVersion" : "1.0.0-rc1.post " ,
30
+ "schemaVersion" : "1.0.0-rc2 " ,
31
31
"version" : "0.0.1" ,
32
32
"citation" : "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/" ,
33
33
"preamble" : {
49
49
"@id" : "../activities/items/item1.jsonld" ,
50
50
"prefLabel" : "item1" ,
51
51
"description" : "Q1 of example 1" ,
52
- "schemaVersion" : "0 .0.1 " ,
52
+ "schemaVersion" : "1 .0.0-rc2 " ,
53
53
"version" : "0.0.1" ,
54
54
"question" : {
55
55
"en" : "Little interest or pleasure in doing things" ,
You can’t perform that action at this time.
0 commit comments