Widget:Test: Difference between revisions

Jump to navigation Jump to search
Mehdi Pahlavani (talk | contribs)
No edit summary
Mehdi Pahlavani (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
var score = 0;
var score = 0;
if(document.forms["IMPROVEScore"]["input1"].checked == 1){
if(document.forms["IMPROVEScore"]["input1"].checked == 1){
score += 2;
score += 3;
}
}


if(document.forms["IMPROVEScore"]["input2"].checked == 1){
if(document.forms["IMPROVEScore"]["input2"].checked == 1){
score += 1;
score += 2;
}
}
if(document.forms["IMPROVEScore"]["input3"].checked == 1){
if(document.forms["IMPROVEScore"]["input3"].checked == 1){
score += 1;
score += 2;
}
}
if(document.forms["IMPROVEScore"]["input4"].checked == 1){
if(document.forms["IMPROVEScore"]["input4"].checked == 1){
score += 1;
score += 2;
}
}
if(document.forms["IMPROVEScore"]["input5"].checked == 1){
if(document.forms["IMPROVEScore"]["input5"].checked == 1){
Line 23: Line 23:
}
}
if(document.forms["IMPROVEScore"]["input7"].checked == 1){
if(document.forms["IMPROVEScore"]["input7"].checked == 1){
score += 1;
}
if(document.forms["IMPROVEScore"]["input8"].checked == 1){
score += 1;
}
if(document.forms["IMPROVEScore"]["input9"].checked == 1){
score += 1;
score += 1;
}
}


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


document.forms["IMPROVEScore"]["result"].value = score;
document.forms["IMPROVEScore"]["result"].value = score;
if(score == 0){document.forms["IMPROVEScore"]["longanswer"].value = "Low probability of DVT: Prevalence = 5%, Consider checking D-dimer";}
if(score == 0){document.forms["IMPROVEScore"]["longanswer"].value = "0.4%";}
if(score == 1 || score == 2){document.forms["IMPROVEScore"]["longanswer"].value = "Moderate probability of DVT: Prevalence = 17%, Consider checking D-dimer";}
if(score == 1){document.forms["IMPROVEScore"]["longanswer"].value = "0.6%";}
if(score >= 3){document.forms["IMPROVEScore"]["longanswer"].value = "High probability of DVT: Prevalence = 53%, Consider imaging of the deep veins";}
if(score == 2){document.forms["IMPROVEScore"]["longanswer"].value = "1%";}
if(score == 3){document.forms["IMPROVEScore"]["longanswer"].value = "1.7%";}
if(score == 4){document.forms["IMPROVEScore"]["longanswer"].value = "2.9%";}
if(score >= 5){document.forms["IMPROVEScore"]["longanswer"].value = "7.2%";}
}
}
</script>
</script>
Line 47: Line 41:
<table>
<table>


<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>Prior episode of VTE</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>Thrombophilia</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>Paralysis of the lower extremity during the hospitalization</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>Current malignancy</td><td><input type="checkbox" name="input4" value="1.0" onchange="calcScore();" /></td></tr>


<tr><td>Swelling of entire leg </td><td><input type="checkbox" name="input5" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Immobilization for at least 7 days</td><td><input type="checkbox" name="input5" value="1.0" onchange="calcScore();" /></td></tr>


<tr><td>Localized pain along distribution of deep venous system </td><td><input type="checkbox" name="input6" value="1.0"  onchange="calcScore();" /></td></tr>
<tr><td>ICU or CCU admission</td><td><input type="checkbox" name="input6" value="1.0"  onchange="calcScore();" /></td></tr>


<tr><td>Paralysis, paresis, or recent cast immobilization of lower extremities </td><td><input type="checkbox" name="input7" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Age more than 60 years</td><td><input type="checkbox" name="input7" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Recently bedridden > 3 days, or major surgery requiring regional or general anesthetic in past 12 weeks </td><td><input type="checkbox" name="input8" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Previously documented DVT </td><td><input type="checkbox" name="input9" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Alternative diagnosis at least as likely </td><td><input type="checkbox" name="input10" value="- 2.0" onchange="calcScore();" /></td></tr>


</table>
</table>

Latest revision as of 15:23, 13 October 2017