BMI Status

Currently, in Version 5 of OpenEMR, the BMI status is in an input field. If the BMI status can be generated once the BMI has been generated it would be better like we all know that the standard BMI Status is as follows:
Adult BMI Calculator – Results
BMI Weight Status
Below 18.5 Underweight
18.5—24.9 Normal
25.0—29.9 Overweight
30.0 and Above Obese

If this is done it would reduce the thinking time that a nurse would use to think which status to fill in and at most times the nurse woould not fill.

good catch and this could be considered a bug however bmi and bmi status will auto generate if you enter height weight and don’t supply values to the bmi fields

Okay then how can i enter it as a bug? or will you do so for me?

If you understand how to code, you can make use of this codes and modify them.

var myDiv = document.createElement(‘div’);
function calculateBmi() {
var weight = document.bmiForm.weight.value
var height = document.bmiForm.height.value
if(weight > 0 && height > 0){
var finalBmi = weight/(height/100*height/100)
document.bmiForm.bmi.value = finalBmi
if(finalBmi < 18.5){
document.bmiForm.meaning.value = “That you are too thin.”
}
if(finalBmi > 18.5 && finalBmi < 25){
document.bmiForm.meaning.value = “That you are healthy.”
}
if(finalBmi > 25){
document.bmiForm.meaning.value = “That you have overweight.”
}
}
else{
alert(“Please Fill in everything correctly”)
}
}

Thanks

I am trying to modify BMI to BSA(Body Surface Area) sqrt function is not working

BSA= sqrt((height*weight)/3600))

where as when use with out sqrt() show value in form
BSA = ((height*weight)/3600)

have also tried with no result
BSA=((height*weight)/3600)^(1/2) and other combinations(0.5)

Hi @feysal,

We assume the above code runs on Javascript, so please try Math.sqrt() instead of using sqrt() as shown below:
BSA= Math.sqrt((height*weight)/3600));
Hope this helps.
Please share your feedback or issues if you still face any.

Thanks,
ViSolve

2 Likes

Hi,

If you want to learn about coding javascript and php, you can learn on video tutoral for free. Please follow this link http://www.developphp.com/

It is a very good tutorial and Adam Khoury make the tutorial as simple as possible and easy to understand.

Good luck

Hi ViSolve

Great it is working

Thanks

Hi @feysal,

Glad it worked for you.
Please mark our reply as “Solution” which will help others in the community.

Thanks,
ViSolve

Hi ViSolve

you want me to bookmark?. cannot see any selection for “Solution”

Hi @feysal,

Oh yes ! Looks like you will not have this option, only the person who created the thread has this privilege.

Thanks,
ViSolve