Open ibevers opened 2 months ago
@satra simpler case: Note: I get errors when I have a protocol with only one activity: https://github.com/ReproNim/reproschema-ui/issues/337
{
"@context": [
"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema"
],
"@type": "reproschema:Protocol",
"@id": "test_protocol_schema",
"prefLabel": "Test protocol",
"description": "A test protocol",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
{
"isAbout": "generic/activities/q_generic_demographics/activities/completed_by/completed_by_schema",
"variableName": "completed_by_schema",
"prefLabel": {
"en": "completed_by"
}
},
{
"isAbout": "generic/activities/audio_check/activities/breathing/breathing_schema",
"variableName": "breathing_schema",
"prefLabel": {
"en": "breathing"
}
}
],
"order": [
"generic/activities/q_generic_demographics/activities/completed_by/completed_by_schema",
"generic/activities/audio_check/activities/breathing/breathing_schema"
],
"shuffle": false,
"allow": [
"reproschema:AllowExport",
"reproschema:AutoAdvance"
]
}
}
{
"@context": [
"https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
{
"reproschema_library_activities": "https://raw.githubusercontent.com/ReproNim/reproschema-library/enh/rc4/a23a13875c7262c0bd0d77bd90c1ec296c6d1116/activities/",
"b2ai_redcap2rs_activities": "https://raw.githubusercontent.com/sensein/b2ai-redcap2rs/main/activities/q_generic_demographics/items/"
}
],
"@type": "reproschema:Activity",
"@id": "completed_by_schema",
"preamble": {"en":"Who is completing this survey"},
"prefLabel": {
"en": "Bridge2AI completed by activity"
},
"description": {
"en": "Identifies who is completing the study."
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
{
"isAbout": "items/demographics_completed_by",
"variableName": "demographics_completed_by",
"prefLabel": {
"en": "Demographics"
},
"isVis": true,
"valueRequired": true
}
],
"order": [
"items/demographics_completed_by"
],
"shuffle": false,
"allow": [
"reproschema:AllowExport"
]
}
}
{
"id": "demographics_completed_by",
"category": "reproschema:Item",
"prefLabel": {
"en": "demographics_completed_by"
},
"question": {
"en": "Check all that apply"
},
"responseOptions": {
"choices": [
{
"name": {
"en": "Self "
},
"value": 1
},
{
"name": {
"en": "Assistant "
},
"value": 2
},
{
"name": {
"en": "Parent/Caregiver"
},
"value": 3
}
],
"multipleChoice": true,
"valueType": [
"xsd:integer"
]
},
"ui": {
"inputType": "radio"
},
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema"
}
@satra example with
allowSkip
not used:test protocol:
generic/activities/q_generic_demographics/q_generic_demographics_schema
activities/completed_by/completed_by_schema
items/demographics_completed_by
Initial UI state
UI state after hitting Submit