Skip to content

Commit

Permalink
Add customized height and weight elements items back
Browse files Browse the repository at this point in the history
  • Loading branch information
ibevers committed Jan 15, 2025
1 parent fea378f commit ff3d17a
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 8 deletions.
21 changes: 21 additions & 0 deletions generic/q_generic_confounders/custom_items/height_cm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "height_cm",
"category": "reproschema:Item",
"description": {
"en": "inches or centimeters"
},

"prefLabel": {
"en": "height centimeters"
},
"question": {
"en": "Height (centimeters)"
},
"responseOptions": {
"valueType": "xsd:decimal"
},
"ui": {
"inputType": "float"
},
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema"
}
23 changes: 23 additions & 0 deletions generic/q_generic_confounders/custom_items/height_in
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "height_in",
"category": "reproschema:Item",
"description": {
"en": "inches or centimeters"
},
"preamble": {
"en": "Height and Weight"
},
"prefLabel": {
"en": "height inches"
},
"question": {
"en": "Height (inches)"
},
"responseOptions": {
"valueType": "xsd:decimal"
},
"ui": {
"inputType": "float"
},
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema"
}
20 changes: 20 additions & 0 deletions generic/q_generic_confounders/custom_items/weight_kg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "weight_kg",
"category": "reproschema:Item",
"description": {
"en": "lbs or kg"
},
"prefLabel": {
"en": "weight kilograms"
},
"question": {
"en": "Weight (kilograms)"
},
"responseOptions": {
"valueType": "xsd:decimal"
},
"ui": {
"inputType": "float"
},
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema"
}
20 changes: 20 additions & 0 deletions generic/q_generic_confounders/custom_items/weight_lbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "weight_lbs",
"category": "reproschema:Item",
"description": {
"en": "lbs or kg"
},
"prefLabel": {
"en": "weight pounds"
},
"question": {
"en": "Weight (pounds)"
},
"responseOptions": {
"valueType": "xsd:decimal"
},
"ui": {
"inputType": "float"
},
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema"
}
16 changes: 8 additions & 8 deletions generic/q_generic_confounders/q_generic_confounders_schema
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"b2ai_redcap2rs_activities:q_generic_confounders/items/seasonal_allergies_options",
"b2ai_redcap2rs_activities:q_generic_confounders/items/tired_measure",
"b2ai_redcap2rs_activities:q_generic_confounders/items/unit",
"b2ai_redcap2rs_activities:q_generic_confounders/items/height_cm",
"b2ai_redcap2rs_activities:q_generic_confounders/items/weight_kg",
"b2ai_redcap2rs_activities:q_generic_confounders/items/height_in",
"b2ai_redcap2rs_activities:q_generic_confounders/items/weight_lbs",
"custom_items/height_cm",
"custom_items/weight_kg",
"custom_items/height_in",
"custom_items/weight_lbs",
"b2ai_redcap2rs_activities:q_generic_confounders/items/symptoms",
"custom_items/ent_introduction",
"b2ai_redcap2rs_activities:q_generic_confounders/items/ear_med_history",
Expand Down Expand Up @@ -303,22 +303,22 @@
"variableName": "unit"
},
{
"isAbout": "b2ai_redcap2rs_activities:q_generic_confounders/items/height_cm",
"isAbout": "custom_items/height_cm",
"isVis": "unit == 1",
"variableName": "height_cm"
},
{
"isAbout": "b2ai_redcap2rs_activities:q_generic_confounders/items/weight_kg",
"isAbout": "custom_items/weight_kg",
"isVis": "unit == 1",
"variableName": "weight_kg"
},
{
"isAbout": "b2ai_redcap2rs_activities:q_generic_confounders/items/height_in",
"isAbout": "custom_items/height_in",
"isVis": "unit == 2",
"variableName": "height_in"
},
{
"isAbout": "b2ai_redcap2rs_activities:q_generic_confounders/items/weight_lbs",
"isAbout": "custom_items/weight_lbs",
"isVis": "unit == 2",
"variableName": "weight_lbs"
},
Expand Down

0 comments on commit ff3d17a

Please sign in to comment.