Notifications
Clear all
Topic starter
I have been working on rebuilding a Diabetic form. Our providers do not like the one GE provided, BUT they do like the part where it tells them if they have met the goal or not. I unfortunately have tried and have not been successful in figuring out how to accomplish that.
I am not that experienced with MEL so the only thing I have tried is the following.
{IF OBSANY("LDL") ="" THEN "DUE" ELSE IF OBSANY("LDL") <"100" THEN "YES" ELSE IF OBSANY("LDL") > "100" THEN "NO" ENDIF ENDIF ENDIF}
Any help with this would be appreciated. This is really the only thing holding my form up. 
Thanks in advance.
Posted : December 4, 2013 3:02 am
Here is what your code should look like:
{IF OBSANY("LDL") ="" THEN
OBSNOW("LDL","DUE")
ELSE
IF OBSANY("LDL") <"100" THEN
OBSNOW("LDL","YES")
ELSE
IF OBSANY("LDL") > "100" THEN
OBSNOW("LDL","NO")
ELSE
ENDIF
ENDIF
ENDIF}
You can also do this with a Condition statement. Less code and it stops executing when one of the CASE statements is true. Less overhead.
{COND
CASE OBSANY("LDL") =""
OBSNOW("LDL","DUE")
CASE OBSANY("LDL") <"100"
OBSNOW("LDL","YES")
CASE OBSANY("LDL") > "100"
OBSNOW("LDL","NO")
ENDCOND}
You also need to adjust your logic. If LDL is 100 you don't account for it. You either need a <= 100 or a >= 100 depending on whether 100 triggers a Yes or No.
Good luck!
Posted : December 4, 2013 5:03 am
