Template:SPADI: Difference between revisions

From WikiMSK

No edit summary
No edit summary
Line 1: Line 1:
'''Shoulder Pain and Disability Index (SPADI)'''
''How severe is your pain? Circle the number that best describes your pain where: 0 = no pain and 10 = the worst pain imaginable.''
{| class="wikitable pain-table spadi-table"
{| class="wikitable pain-table spadi-table"
|-
|-
Line 98: Line 94:


let uncheckedPainCount = totalPainRadioButtons - checkedPainCount - 50;
let uncheckedPainCount = totalPainRadioButtons - checkedPainCount - 50;
console.log("Unchecked radio buttons count:", uncheckedPainCount);
console.log("Checked radio buttons count:", checkedPainCount);


let totalDisabilityRadioButtons = $(".disability-table").find("input[type=radio]").length;
let checkedDisabilityCount = 0;
$(".disability-table").find("input[type=radio]").filter(":checked").each(function(){
  checkedDisabilityCount ++;
});
uncheckedPainCount = totalPainRadioButtons - checkedPainCount - 50;
let uncheckedDisabilityCount = totalDisabilityRadioButtons - checkedDisabilityCount - 80;
let uncheckedTotalCount = uncheckedDisabilityCount + uncheckedPainCount;
console.log(uncheckedTotalCount);
let checkedTotalCount = 13 - uncheckedTotalCount;


   $('.pain-score').html('Score: ' + ((painScore/(checkedPainCount *10)) * 100).toFixed(0) + '%' );
   $('.pain-score').html('Score: ' + ((painScore/(checkedPainCount *10)) * 100).toFixed(0) + '%' )
   $('.disability-score').html('Score: ' + ((disabilityScore/(checkedDisabilityCount *10)) * 100).toFixed(0) + '%' );
   $('.disability-score').html('Score: ' + ((disabilityScore/80) * 100) + '%' )
   $('.total-score').html('Score: ' + ((totalScore/(checkedTotalCount * 10)) * 100).toFixed(0) + '%' );
   $('.total-score').html('Score: ' + ((totalScore/130).toFixed(2) * 100) + '%' )
  }
  }
}
}
</script><style>.wikitable tr td{border:solid 1px black!important; padding: 0 12px;}</style></html></div>
</script><style>.wikitable tr td{border:solid 1px black!important; padding: 0 12px;}</html></div>
<noinclude>[[Category:Calculators]]</noinclude>
<noinclude>[[Category:Calculators]]</noinclude>

Revision as of 20:39, 23 March 2023

Pain scale
How severe is your pain?
Circle the number that best describes your experience where: 0 = no difficulty and 10 = so difficult it requires help.
Item Question 0 1 2 3 4 5 6 7 8 9 10
1 At its worst?
2 When lying on the involved side?
3 Reaching for something on a high shelf?
4 Touching the back of your neck?
5 Pushing with the involved arm?
Disability scale
How much difficulty do you have?
Circle the number that best describes your experience where: 0 = no difficulty and 10 = so difficult it requires help.
Item Question 0 1 2 3 4 5 6 7 8 9 10
6 Washing your hair?
7 Washing your back?
8 Putting on an undershirt or jumper?
9 Putting on a shirt that buttons down the front?
10 Putting on your pants?
11 Placing an object on a high shelf?
12 Carrying a heavy object of 4.5 kilograms
13 Removing something from your back pocket?
Pain Score : Score: 0%
Disability Score : Score: 0%
Total Score : Score: 0%