Widget:DVT Wells score calculator: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
Created page with " ..."
 
Matt Pijoan (talk | contribs)
No edit summary
Line 1: Line 1:
                                                                   
                                                                   
                                                                   
                                           
<includeonly>
<includeonly>
<script type="text/javascript">
<script type="text/javascript">
function calcScore(){
function calcScore(){
var score = 0;
var score = 0;
if(document.forms["DVTCalc"]["input1"].checked == 1){
if(document.forms["DVTCalc"]["input1"].checked == 1){
score += 1;
score += 1;
}
}


if(document.forms["DVTCalc"]["input2"].checked == 1){
if(document.forms["DVTCalc"]["input2"].checked == 1){
score += 1;
score += 1;
}
}
if(document.forms["DVTCalc"]["input3"].checked == 1){
if(document.forms["DVTCalc"]["input3"].checked == 1){
score += 1;
score += 1;
}
}
if(document.forms["DVTCalc"]["input4"].checked == 1){
if(document.forms["DVTCalc"]["input4"].checked == 1){
score += 1;
score += 1;
}
}
if(document.forms["DVTCalc"]["input5"].checked == 1){
if(document.forms["DVTCalc"]["input5"].checked == 1){
score += 1;
score += 1;
}
}
if(document.forms["DVTCalc"]["input6"].checked == 1){
if(document.forms["DVTCalc"]["input6"].checked == 1){
score += 1;
score += 1;
}
}
if(document.forms["DVTCalc"]["input7"].checked == 1){
if(document.forms["DVTCalc"]["input7"].checked == 1){
score += 1;
score += 1;
}
}
if(document.forms["DVTCalc"]["input8"].checked == 1){
if(document.forms["DVTCalc"]["input8"].checked == 1){
score += 1;
score += 1;
}
}
if(document.forms["DVTCalc"]["input9"].checked == 1){
if(document.forms["DVTCalc"]["input9"].checked == 1){
score += 1;
score += 1;
}
}


if(document.forms["DVTCalc"]["input10"].checked == 1){
if(document.forms["DVTCalc"]["input10"].checked == 1){
score -= 2;
score -= 2;
}
}


document.forms["DVTCalc"]["result"].value = score;
document.forms["DVTCalc"]["result"].value = score;
if(score =< 0){document.forms["DVTCalc"]["longanswer"].value = "Low probability of DVT: Prevalence = 5%, Consider checking D-dimer";}
if(score =< 0){document.forms["DVTCalc"]["longanswer"].value = "Low probability of DVT: Prevalence = 5%, Consider checking D-dimer";}
if(score = 1 && score = 2){document.forms["DVTCalc"]["longanswer"].value = "Moderate probability of DVT: Prevalence = 17%, Consider checking D-dimer";}
if(score = 1 && score = 2){document.forms["DVTCalc"]["longanswer"].value = "Moderate probability of DVT: Prevalence = 17%, Consider checking D-dimer";}
if(score >= 3){document.forms["DVTCalc"]["longanswer"].value = "High probability of DVT: Prevalence = 53%, Consider imaging of the deep veins";}
if(score >= 3){document.forms["DVTCalc"]["longanswer"].value = "High probability of DVT: Prevalence = 53%, Consider imaging of the deep veins";}
}
}
</script>
</script>


Line 85: Line 48:


<tr><td>Active cancer (treatment within last 6 months or palliative) </td><td><input type="checkbox" name="input1" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Active cancer (treatment within last 6 months or palliative) </td><td><input type="checkbox" name="input1" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Calf swelling >3 cm compared to other calf (measured 10 cm below tibial tuberosity) </td><td><input type="checkbox" name="input2" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Calf swelling >3 cm compared to other calf (measured 10 cm below tibial tuberosity) </td><td><input type="checkbox" name="input2" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Collateral superficial veins (non-varicose) </td><td><input type="checkbox" name="input3" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Collateral superficial veins (non-varicose) </td><td><input type="checkbox" name="input3" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Pitting edema (confined to symptomatic leg) </td><td><input type="checkbox" name="input4" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Pitting edema (confined to symptomatic leg) </td><td><input type="checkbox" name="input4" value="1.0" onchange="calcScore();" /></td></tr>



Revision as of 15:07, 15 May 2012