Skip to content

Commit 127eef0

Browse files
authored
Merge pull request #26 from ReproNim/tst/static
add a static item and update contexts to 1.0.0
2 parents 1761fe7 + a0da9d5 commit 127eef0

33 files changed

+87
-71
lines changed

DemoProtocol/DemoProtocol_schema

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Protocol",
44
"@id": "DemoProtocol_schema",
55
"prefLabel": {
66
"en": "Protocol1",
77
"es": "Protocol1_es"
88
},
99
"description": "example Protocol",
10-
"schemaVersion": "1.0.0-rc2",
10+
"schemaVersion": "1.0.0",
1111
"version": "0.0.1",
1212
"landingPage": [{
1313
"@id": "README.md",

activities/Activity1/activity1_schema

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": [ "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
2+
"@context": [ "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
{
44
"rl": "https://raw.githubusercontent.com/ReproNim/reproschema-library/master/activities/"
55
}
@@ -8,10 +8,14 @@
88
"@id": "activity1_schema",
99
"prefLabel": "Screening",
1010
"description": "example of an activity",
11-
"schemaVersion": "1.0.0-rc2",
11+
"schemaVersion": "1.0.0",
1212
"version": "0.0.1",
1313
"ui": {
1414
"addProperties": [
15+
{"isAbout": "items/static_item",
16+
"variableName": "static_item",
17+
"isVis": true
18+
},
1519
{"isAbout": "items/document_upload_item",
1620
"variableName": "document_upload_item",
1721
"isVis": true,
@@ -21,11 +25,11 @@
2125
}
2226
],
2327
"order": [
28+
"items/static_item",
2429
"items/document_upload_item"
2530
],
2631
"shuffle": false,
2732
"allow": [
28-
"reproschema:AutoAdvance",
2933
"reproschema:AllowExport"
3034
]
3135
}

activities/Activity1/items/document_upload_item

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Field",
44
"@id": "document_upload_item",
55
"prefLabel": "document upload item",
66
"description": "This is a document upload item.",
7-
"schemaVersion": "1.0.0-rc2",
7+
"schemaVersion": "1.0.0",
88
"version": "0.0.1",
99
"question": "This is an item where the user can upload a document.",
1010
"ui": {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
3+
"@type": "reproschema:Field",
4+
"@id": "static_item",
5+
"prefLabel": "Static text",
6+
"description": "Display a static text",
7+
"schemaVersion": "1.0.0",
8+
"version": "0.0.1",
9+
"question": {
10+
"en": "You are starting today's activity"
11+
},
12+
"ui": {
13+
"inputType": "static",
14+
"readonlyValue": true
15+
}
16+
}

activities/Activity2/Activity2_schema

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Activity",
44
"@id": "Activity2_schema",
55
"prefLabel": "demo of all input types and widgets",
66
"description": "dummy activity to show all inputs types and widgets",
77
"preamble": "This activity will show you all the different input type and widgets currently available.",
8-
"schemaVersion": "1.0.0-rc1",
8+
"schemaVersion": "1.0.0",
99
"version": "0.0.1",
1010
"ui": {
1111
"addProperties": [
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Field",
44
"@id": "country_item",
55
"prefLabel": "country item",
66
"description": "This is a country item.",
7-
"schemaVersion": "1.0.0-rc2",
7+
"schemaVersion": "1.0.0",
88
"version": "0.0.1",
99
"question": "This is an item where the user can select a country.",
1010
"ui": {
1111
"inputType": "selectCountry"
1212
},
1313
"responseOptions": {
1414
"valueType": "xsd:string",
15-
"maxLength": 50,
1615
"choices": "https://raw.githubusercontent.com/samayo/country-json/master/src/country-by-name.json"
1716
}
1817
}

activities/Activity2/items/date_item

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Field",
44
"@id": "date_item",
55
"prefLabel": "date item",
66
"description": "This is a date item.",
7-
"schemaVersion": "1.0.0-rc2",
7+
"schemaVersion": "1.0.0",
88
"version": "0.0.1",
99
"question": "This is an item where the user can input a date.",
1010
"ui": {

activities/Activity2/items/language_item

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Field",
44
"@id": "language_item",
55
"prefLabel": "language item",
66
"description": "This is a language item.",
7-
"schemaVersion": "1.0.0-rc2",
7+
"schemaVersion": "1.0.0",
88
"version": "0.0.1",
99
"question": "This is an item where the user can select several language.",
1010
"ui": {

activities/Activity2/items/state_item

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Field",
44
"@id": "state_item",
55
"prefLabel": "state item",
66
"description": "This is a state item.",
7-
"schemaVersion": "1.0.0-rc2",
7+
"schemaVersion": "1.0.0",
88
"version": "0.0.1",
99
"question": "This is an item where the user can select a USA state.",
1010
"ui": {

activities/Activity2/items/time_range_item

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Field",
44
"@id": "time_range_item",
55
"prefLabel": "time range item",
66
"description": "This is a time range item.",
7-
"schemaVersion": "1.0.0-rc2",
7+
"schemaVersion": "1.0.0",
88
"version": "0.0.1",
99
"question": "This is an item where the user can input a time range.",
1010
"ui": {

0 commit comments

Comments
 (0)