Notifications
Clear all
Topic starter
I'm trying to write a form to score the HOOS/KOOS (Hip/Knee Osteoarthritis Outcome Score) surveys. Does anyone have a function to find the total score or can anyone help me figure out how to write a MEL code that will calculate the score. The equation is 100 - ((Mean Score * 100)/4)
I already have the mean score calculating properly on its own to a document variable (DOCUMENT.SMean) and I want the whole thing to write to an obs term. Any help would be appreciated. Thanks!!
Posted : April 4, 2016 5:07 am
local valTmp=0
valTmp=100-((val(document.SMean)*100)/4)
obsnow("VariableName",str(valTmp))
Just remember, all calculations are done with numeric variables. All obs terms are stored as strings.
Posted : April 4, 2016 5:55 am
Topic starter
That did it! Thank you!!
Posted : April 4, 2016 6:05 am