Skip to content

Commit

Permalink
Add second respiration and cough
Browse files Browse the repository at this point in the history
  • Loading branch information
ibevers committed Nov 5, 2024
1 parent 10c18f6 commit 44d8ed8
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 39 deletions.
19 changes: 19 additions & 0 deletions generic/respiration_and_cough/items/respiration_and_cough_1_second
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "respiration_and_cough_1_second",
"prefLabel": "Respiration and cough Task 1",
"description": "First, let's hear you breathe comfortably for 30 seconds.",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "First, let's hear you breathe comfortably for 30 seconds.",
"ui": {
"inputType": "audioCheck"
},
"responseOptions": {
"valueType": "schema:AudioObject",
"minValue": 0,
"maxValue": 30000
}
}

18 changes: 18 additions & 0 deletions generic/respiration_and_cough/items/respiration_and_cough_2_second
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "respiration_and_cough_2_second",
"prefLabel": "Respiration and cough Task 2",
"description": "After pressing on record, take 5 big breaths in and out through your nose with your mouth closed.",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "After pressing on record, take 5 big breaths in and out through your nose with your mouth closed.",
"ui": {
"inputType": "audioCheck"
},
"responseOptions": {
"valueType": "schema:AudioObject",
"minValue": 0,
"maxValue": 120000
}
}
18 changes: 18 additions & 0 deletions generic/respiration_and_cough/items/respiration_and_cough_3_second
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "respiration_and_cough_3_second",
"prefLabel": "Respiration and cough Task 3",
"description": "After pressing on record, take 5 big breaths in and out through your mouth.",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "After pressing on record, take 5 big breaths in and out through your mouth.",
"ui": {
"inputType": "audioCheck"
},
"responseOptions": {
"valueType": "schema:AudioObject",
"minValue": 0,
"maxValue": 120000
}
}
18 changes: 18 additions & 0 deletions generic/respiration_and_cough/items/respiration_and_cough_4_second
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "respiration_and_cough_4_second",
"prefLabel": "Respiration and cough Task 4",
"description": "After pressing on record, exhale, then inhale quickly through your mouth, as if you are trying to catch your breath. Record 3 of these breaths in a single recording.",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "After pressing on record, exhale, then inhale quickly through your mouth, as if you are trying to catch your breath. Record 3 of these breaths in a single recording.",
"ui": {
"inputType": "audioCheck"
},
"responseOptions": {
"valueType": "schema:AudioObject",
"minValue": 0,
"maxValue": 120000
}
}
18 changes: 18 additions & 0 deletions generic/respiration_and_cough/items/respiration_and_cough_5_second
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "respiration_and_cough_5_second",
"prefLabel": "Respiration and cough Task 5",
"description": "After pressing record, cough 5 times.",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "After pressing record, cough 5 times.",
"ui": {
"inputType": "audioCheck"
},
"responseOptions": {
"valueType": "schema:AudioObject",
"minValue": 0,
"maxValue": 120000
}
}
108 changes: 69 additions & 39 deletions generic/respiration_and_cough/respiration_and_cough_schema
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,77 @@
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Activity",
"@id": "respiration_and_cough_schema",
"prefLabel": {"en": "Respiration and cough"},
"prefLabel": { "en": "Respiration and cough" },
"description": "Record breathing sounds and coughs.",
"preamble": {"en": "Breathing sounds can also provide information on your health, let's record them."},
"preamble": { "en": "Breathing sounds can also provide information on your health, let's record them." },
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"order": [
"items/respiration_and_cough_1",
"items/respiration_and_cough_2",
"items/respiration_and_cough_3",
"items/respiration_and_cough_4",
"items/respiration_and_cough_5"
],
"addProperties": [
{
"isAbout": "items/respiration_and_cough_1",
"variableName": "respiration_and_cough_1",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_2",
"variableName": "respiration_and_cough_2",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_3",
"variableName": "respiration_and_cough_3",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_4",
"variableName": "respiration_and_cough_4",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_5",
"variableName": "respiration_and_cough_5",
"isVis": true
}
],
"shuffle": false,
"allow": ["reproschema:AutoAdvance", "reproschema:AllowExport"]
"order": [
"items/respiration_and_cough_1",
"items/respiration_and_cough_1_second",
"items/respiration_and_cough_2",
"items/respiration_and_cough_2_second",
"items/respiration_and_cough_3",
"items/respiration_and_cough_3_second",
"items/respiration_and_cough_4",
"items/respiration_and_cough_4_second",
"items/respiration_and_cough_5",
"items/respiration_and_cough_5_second"
],
"addProperties": [
{
"isAbout": "items/respiration_and_cough_1",
"variableName": "respiration_and_cough_1",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_1_second",
"variableName": "respiration_and_cough_1_second",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_2",
"variableName": "respiration_and_cough_2",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_2_second",
"variableName": "respiration_and_cough_2_second",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_3",
"variableName": "respiration_and_cough_3",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_3_second",
"variableName": "respiration_and_cough_3_second",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_4",
"variableName": "respiration_and_cough_4",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_4_second",
"variableName": "respiration_and_cough_4_second",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_5",
"variableName": "respiration_and_cough_5",
"isVis": true
},
{
"isAbout": "items/respiration_and_cough_5_second",
"variableName": "respiration_and_cough_5_second",
"isVis": true
}
],
"shuffle": false,
"allow": ["reproschema:AutoAdvance", "reproschema:AllowExport"]
}
}
}

0 comments on commit 44d8ed8

Please sign in to comment.