Template:Start back: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
Line 53: | Line 53: | ||
$(element).closest("table").find("input[type=checkbox]").filter(":checked").each(function(){ | $(element).closest("table").find("input[type=checkbox]").filter(":checked").each(function(){ | ||
score += parseInt($(this).attr("value").replace(",", ".")); | score += parseInt($(this).attr("value").replace(",", ".")); | ||
console.log("score: " + score) | |||
}); | }); | ||
Line 60: | Line 61: | ||
console.log("subscore:" + subscore); | console.log("subscore:" + subscore); | ||
}); | }); | ||
score /= 10; // parseFloat is not defined in chrome !!!!!???? | score /= 10; // parseFloat is not defined in chrome !!!!!???? | ||
Line 67: | Line 68: | ||
if(score < 4){ $(element).css("color", "green").html("Low Risk"); } | if(score < 4){ $(element).css("color", "green").html("Low Risk"); } | ||
else if(score >3){ | else if(score >3){ | ||
if(subscore <4){ | |||
$(element).css("color", "yellow").html("Medium"); | |||
} else if(subscore>3){ | |||
$(element).css("color", "red").html("High Risk"); | |||
} | |||
} | } | ||
else { $(element).css("color", "red").html("Error"); } | else { $(element).css("color", "red").html("Error"); } |
Revision as of 18:09, 5 April 2022
Criteria | Agree | ||
---|---|---|---|
1 | My back pain has spread down my leg(s) at some time in the last 2 weeks | ||
2 | I have had pain in the shoulder or neck at some time in the last 2 weeks | ||
3 | I have only walked short distances because of my back pain | ||
4 | In the last 2 weeks, I have dressed more slowly than usual because of back pain | ||
5 | It’s not really safe for a person with a condition like mine to be physically active | ||
6 | Worrying thoughts have been going through my mind a lot of the time | ||
7 | I feel that my back pain is terrible and it’s never going to get any better | ||
8 | In general I have not enjoyed all the things I used to enjoy | ||
9 | Overall, how bothersome has your back pain been in the last 2 weeks? | ||
Probability | Low risk |