Template:DN4: Difference between revisions
From WikiMSK
(Created page with "{| class="wikitable" |+DN4 - Questionnaire ! colspan="3"| INTERVIEW OF THE PATIENT |- |colspan="3" |'''QUESTION 1''' |- | '''Does the pain have one or more of the following ch...") |
No edit summary |
||
Line 10: | Line 10: | ||
|- | |- | ||
|Burning | |Burning | ||
|<html><input class="start-item" name="one" type="radio" id="q1-n" value=" | |<html><input class="start-item" name="one" type="radio" id="q1-n" value="10" onclick="window.startScore(this);" /></html> | ||
|<html><input class="start-item" id="q1-y" name="one" type="radio" value=" | |<html><input class="start-item" id="q1-y" name="one" type="radio" value="0" onclick="window.startScore(this);" /></html> | ||
|- | |- | ||
| Painful cold | | Painful cold | ||
|<html><input class="start-item" name="two" type="radio" id="q2-n" value=" | |<html><input class="start-item" name="two" type="radio" id="q2-n" value="10" onclick="window.startScore(this);" /></html> | ||
|<html><input class="start-item" id="q2-y" name="two" type="radio" value=" | |<html><input class="start-item" id="q2-y" name="two" type="radio" value="0" onclick="window.startScore(this);" /></html> | ||
|- | |- | ||
| Electric shocks | | Electric shocks | ||
|<html><input class="start-item" name="three" type="radio" id="q3-n" value=" | |<html><input class="start-item" name="three" type="radio" id="q3-n" value="10" onclick="window.startScore(this);" /></html> | ||
|<html><input class="start-item" id="q3-y" name="three" type="radio" value=" | |<html><input class="start-item" id="q3-y" name="three" type="radio" value="0" onclick="window.startScore(this);" /></html> | ||
|- | |- | ||
|colspan="3" |'''QUESTION 2''' | |colspan="3" |'''QUESTION 2''' | ||
Line 28: | Line 28: | ||
|- | |- | ||
| Tingling | | Tingling | ||
|<html><input class="start-item" name="four" type="radio" id="q4-n" value=" | |<html><input class="start-item" name="four" type="radio" id="q4-n" value="10" onclick="window.startScore(this);" /></html> | ||
|<html><input class="start-item" id="q4-y" name="four" type="radio" value=" | |<html><input class="start-item" id="q4-y" name="four" type="radio" value="0" onclick="window.startScore(this);" /></html> | ||
|- | |- | ||
| Pins and needles | | Pins and needles | ||
|<html><input class="start-item | |<html><input class="start-item" name="five" type="radio" id="q5-n" value="10" onclick="window.startScore(this);" /></html> | ||
|<html><input class="start-item | |<html><input class="start-item" id="q5-y" name="five" type="radio" value="0" onclick="window.startScore(this);" /></html> | ||
|- | |- | ||
| Numbness | | Numbness | ||
|<html><input class="start-item | |<html><input class="start-item" name="six" type="radio" id="q6-n" value="10" onclick="window.startScore(this);" /></html> | ||
|<html><input class="start-item | |<html><input class="start-item" id="q6-y" name="six" type="radio" value="0" onclick="window.startScore(this);" /></html> | ||
|- | |- | ||
| Itching | | Itching | ||
|<html><input class="start-item | |<html><input class="start-item" name="seven" type="radio" id="q7-n" value="10" onclick="window.startScore(this);" /></html> | ||
|<html><input class="start-item | |<html><input class="start-item" id="q7-y" name="seven" type="radio" value="0" onclick="window.startScore(this);" /></html> | ||
|- | |- | ||
! colspan="3" |<div style="display:flex; flex-direction:row; justify-content:space-around;"><div>Result</div><div><span class="interpretation" style="color: green;">Negative</span></div><div><span class="score">Score: 0</span></div></div> | |||
! colspan="3" |<span class="interpretation" style="color: green;">Negative</span><span class="score"> | |||
|} | |} | ||
<div style="display:none"><html><script type="text/javascript"> | <div style="display:none"><html><script type="text/javascript"> | ||
if(typeof window. | if(typeof window.startScore === 'undefined') | ||
{ | { | ||
window. | window.startScore = function(element) | ||
{ | { | ||
var score = 0; | var score = 0; | ||
$(element).closest("table").find("input[type= | $(element).closest("table").find("input[type=radio]").filter(":checked").each(function(){ | ||
score += parseInt($(this).attr("value").replace(",", ".")); | score += parseInt($(this).attr("value").replace(",", ".")); | ||
}); | }); | ||
score /= 10; | score /= 10; | ||
// Original version | // Original version | ||
var element = $(element).closest("table").find(".interpretation"); | var element = $(element).closest("table").find(".interpretation"); | ||
if(score < | if(score < 4){$(element).css("color", "green").html("Negative");} | ||
else if(score > | else if(score >3){ $(element).css("color", "red").html("Positive");} | ||
else { $(element).css("color", "red").html("Error"); } | else { $(element).css("color", "red").html("Error"); } | ||
$('.score').html(' | $('.score').html('Score: ' + score) | ||
} | } | ||
} | } | ||
</script></html></div> | </script></html></div> | ||
<noinclude>[[Category:Calculators]]</noinclude> | <noinclude>[[Category:Calculators]]</noinclude> |
Revision as of 13:22, 6 April 2022
INTERVIEW OF THE PATIENT | ||
---|---|---|
QUESTION 1 | ||
Does the pain have one or more of the following characteristics? | Yes | No |
Burning | ||
Painful cold | ||
Electric shocks | ||
QUESTION 2 | ||
Is the pain associated with one or more of the following symptoms in the same area? | Yes | No |
Tingling | ||
Pins and needles | ||
Numbness | ||
Itching | ||
Result Negative Score: 0 |