You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Incorrect calculation due to conversion issue in WeightAssessmentandCounselingforNutritionandPhysicalActivityforChildrenandAdolescentsFHIR
Observations are picked incorrectly.
It considers all the measurements in measurement period and does not exclude the unexpected observations. For example, BMI percentile/ratio does not fall in measurement period, but it takes height and weight in the calculations which fall in the measurement period which are then included in BMI ratio calculations. The same happens for height and weight.
We believe the issue comes into play in line 282, where the Observations are filtered for BMI observations.
This line refers to the isObservationBMI check, which does not seem to filter correctly:
To Reproduce
Steps to reproduce the behavior:
Go to WeightAssessmentandCounselingforNutritionandPhysicalActivityforChildrenandAdolescentsFHIR
Click on 055edb62-3f1f-4b4e-8671-9ab319df0e94
Run the test
Numerator in first group is calculated as 1 when it is expected to be 0
Describe the bug
Incorrect calculation due to conversion issue in WeightAssessmentandCounselingforNutritionandPhysicalActivityforChildrenandAdolescentsFHIR
Observations are picked incorrectly.
It considers all the measurements in measurement period and does not exclude the unexpected observations. For example, BMI percentile/ratio does not fall in measurement period, but it takes height and weight in the calculations which fall in the measurement period which are then included in BMI ratio calculations. The same happens for height and weight.
We believe the issue comes into play in line 282, where the Observations are filtered for BMI observations.
This line refers to the isObservationBMI check, which does not seem to filter correctly:
To Reproduce
Steps to reproduce the behavior:
Version used:
Version: develop-2.0
46d3248
The text was updated successfully, but these errors were encountered: