Hi I have a vital sign form which is displaying MEL Vomit if the user enters an incorrect value on weight or height. These fields are currently set to Positive Real (3.5, 6.23) #s
Has anyone developed MEL code to check to see if value entered is a valid value since there are other Functions calculating BMI, BSA and BIM% and let the user know the value entered is incorrect by using the USEROK function?
Sincerely
Theresa Savage
What are the users entering that is throwing an error? The only thing I can think off is "0" and its causing a divide by zero error, make sure the BMI and BSA functions account for that possibilty, otherwise setting the edit field mask to positive real should take care of everything else.
I think I got it to work. I already had Postive Real but if I entered a # of 6666 for height accidently it would produce the MEL vomit, so I limit the # of characters and I used a function to check to see if standard weight or height were > 999 then USEROK("value is incorrect"). I also did this for metric using 450 kg and 2540 cm and so far it seems to have gotten rid of the MEL Vomit. I still need to do some an additional testing to make sure.