Template:Start back: Difference between revisions

From WikiMSK

No edit summary
No edit summary
Line 8: Line 8:
|1
|1
|My back pain has spread down my leg(s) at some time in the last 2 weeks
|My back pain has spread down my leg(s) at some time in the last 2 weeks
|<html><input class="wells-item" type="checkbox" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="start-item" name="one" type="radio" id="q1-n" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="wells-item" type="checkbox" value="10" onclick="window.startScore(this);" /></html>
|<html><input class="start-item" id="q1-y" name="one" type="radio" value="10" onclick="window.startScore(this);" /></html>
|-
|-
|2
|2
|I have had pain in the shoulder or neck at some time in the last 2 weeks
|I have had pain in the shoulder or neck at some time in the last 2 weeks
|<html><input class="wells-item" type="checkbox" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="start-item" name="two" type="radio" id="q2-n" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="wells-item" type="checkbox" value="10" onclick="window.startScore(this);" /></html>
|<html><input class="start-item" id="q2-y" name="two" type="radio" value="10" onclick="window.startScore(this);" /></html>
|-
|-
|3
|3
|I have only walked short distances because of my back pain
|I have only walked short distances because of my back pain
|<html><input class="wells-item" type="checkbox" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="start-item" name="three" type="radio" id="q3-n" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="wells-item" type="checkbox" value="10" onclick="window.startScore(this);" /></html>
|<html><input class="start-item" id="q3-y" name="three" type="radio" value="10" onclick="window.startScore(this);" /></html>
|-
|-
|4
|4
|In the last 2 weeks, I have dressed more slowly than usual because of back pain
|In the last 2 weeks, I have dressed more slowly than usual because of back pain
|<html><input class="wells-item" type="checkbox" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="start-item" name="four" type="radio" id="q4-n" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="wells-item" type="checkbox" value="10" onclick="window.startScore(this);" /></html>
|<html><input class="start-item" id="q4-y" name="four" type="radio" value="10" onclick="window.startScore(this);" /></html>
|-
|-
|5
|5
|Itโ€™s not really safe for a person with a condition like mine to be physically active
|Itโ€™s not really safe for a person with a condition like mine to be physically active
|<html><input class="wells-item" type="checkbox" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="start-item subscore" name="five" type="radio" id="q5-n" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="wells-item" type="checkbox" value="10" onclick="window.startScore(this);" /></html>
|<html><input class="start-item subscore" id="q5-y" name="five" type="radio" value="10" onclick="window.startScore(this);" /></html>
|-
|-
|6
|6
|Worrying thoughts have been going through my mind a lot of the time
|Worrying thoughts have been going through my mind a lot of the time
|<html><input class="wells-item" type="checkbox" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="start-item subscore" name="six" type="radio" id="q6-n" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="wells-item subscore" type="checkbox" value="10" onclick="window.startScore(this);" /></html>
|<html><input class="start-item subscore" id="q6-y" name="six" type="radio" value="10" onclick="window.startScore(this);" /></html>
|-
|-
|7
|7
|I feel that my back pain is terrible and itโ€™s never going to get any better
|I feel that my back pain is terrible and itโ€™s never going to get any better
|<html><input class="wells-item" type="checkbox" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="start-item subscore" name="seven" type="radio" id="q7-n" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="wells-item subscore" type="checkbox" value="10" onclick="window.startScore(this);" /></html>
|<html><input class="start-item subscore" id="q7-y" name="seven" type="radio" value="10" onclick="window.startScore(this);" /></html>
|-
|-
|8
|8
|In general I have not enjoyed all the things I used to enjoy
|In general I have not enjoyed all the things I used to enjoy
|<html><input class="wells-item" type="checkbox" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="start-item subscore" name="eight" type="radio" id="q8-n" value="0" onclick="window.startScore(this);" /></html>
|<html><input class="wells-item subscore" type="checkbox" value="10" onclick="window.startScore(this);" /></html>
|<html><input class="start-item subscore" id="q8-y" name="eight" type="radio" value="10" onclick="window.startScore(this);" /></html>
|-
|-
|9
|9
|colspan="3"|Overall, how bothersome has your back pain been in the last 2 weeks?
|colspan="3"|Overall, how bothersome has your back pain been in the last 2 weeks?
|-
|-
|colspan="4"|<html><div class="test" style="display:flex; flex-direction:row; justify-content:space-around;"><div><label>Not at all (0) <input class="wells-item subscore" type="checkbox" value="10" onclick="window.startScore(this);" /></div><div><label>slightly (0) <input class="wells-item subscore" type="checkbox" value="10" onclick="window.startScore(this);" /></div><div><label>moderately (0) <input class="wells-item subscore" type="checkbox" value="10" onclick="window.startScore(this);" /></div><div><label>very much (1) <input class="wells-item subscore" type="checkbox" value="10" onclick="window.startScore(this);" /></div><div><label>extremely (1) <input class="wells-item subscore" type="checkbox" value="10" onclick="window.startScore(this);" /></label></div></div>
|colspan="4"|<html><div class="test" style="display:flex; flex-direction:row; justify-content:space-around;"><div><label>Not at all (0) <input class="start-item subscore" name="nine" type="radio" id="q9-n1" value="0" onclick="window.startScore(this);" /></div><div><label>slightly (0) <input class="start-item subscore" name="nine" type="radio" id="q9-n2" value="0" onclick="window.startScore(this);" /></div><div><label>moderately (0) <input class="start-item subscore" name="nine" type="radio" id="q9-n3" value="0" onclick="window.startScore(this);" /></div><div><label>very much (1) <input class="start-item subscore" name="nine" type="radio" id="q9-y4" value="10" onclick="window.startScore(this);" /></div><div><label>extremely (1) <input class="start-item subscore" name="nine" type="radio" id="q9-y5" value="10" onclick="window.startScore(this);" /></label></div></div>
</html>
</html>
|-
|-
!Probability
!Probability
! colspan="3" |<span class="wells-score-result" style="color: green;">Low Risk</span>
! colspan="3" |<span class="score-result" style="color: green;">Low Risk</span>
|}
|}


Line 62: Line 62:
ย  {
ย  {
ย ย  var score = 0;
ย ย  var score = 0;
ย ย  $(element).closest("table").find("input[type=checkbox]").filter(":checked").each(function(){
ย ย  $(element).closest("table").find("input[type=radio]").filter(":checked").each(function(){
ย ย  score += parseInt($(this).attr("value").replace(",", "."));
ย ย  score += parseInt($(this).attr("value").replace(",", "."));
ย ย  });
ย ย  });
Line 71: Line 71:
ย ย  });
ย ย  });
ย ย  ย 
ย ย  ย 
ย ย  score /= 10; // parseFloat is not defined in chrome !!!!!????
ย ย  score /= 10;
ย  subscore /= 10;
console.log("score:" + score)
console.log("subscore:" + subscore)


ย ย  // Original version
ย ย  // Original version
ย ย  var element = $(element).closest("table").find(".wells-score-result");
ย ย  var element = $(element).closest("table").find(".score-result");
ย ย  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){ ย 

Revision as of 18:49, 5 April 2022

STarT Back 9 Item
Item Question Disagree 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