Skip to content

Commit

Permalink
Separate height && weight for BMI and Z-score calculations (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
makombe authored Oct 24, 2023
1 parent bebd1ef commit e2920d3
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions configuration/ampathforms/Triage.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,26 @@
"rendering": "number",
"max": "250",
"min": "0"
},
"hide": {
"hideWhenExpression": "!(age >= 0 && age <=5)"
}
},
{
"label": "Weight(kg):",
"type": "obs",
"id": "weightForBMI",
"required": "true",
"questionOptions": {
"concept": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "number",
"max": "250",
"min": "0"
},
"hide": {
"hideWhenExpression": "age <= 5"
}
},
{
"label": "Height(cm):",
"type": "obs",
Expand All @@ -165,7 +183,26 @@
"max": "272",
"min": "10"
},
"historicalExpression": "HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')"
"historicalExpression": "HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"hide": {
"hideWhenExpression": "!(age >= 0 && age <=5)"
}
},
{
"label": "Height(cm):",
"type": "obs",
"required": "true",
"id": "heightForBMI",
"questionOptions": {
"concept": "5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "number",
"max": "272",
"min": "10"
},
"historicalExpression": "HD.getObject('prevEnc').getValue('5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')",
"hide": {
"hideWhenExpression": "age <= 5"
}
},
{
"label": "BMI (Kg/m2)",
Expand All @@ -177,7 +214,7 @@
"max": "100",
"min": "0",
"calculate": {
"calculateExpression": "calcBMI(height,weight)"
"calculateExpression": "calcBMI(heightForBMI,weightForBMI)"
}
},
"hide": {
Expand Down

0 comments on commit e2920d3

Please sign in to comment.