Widget:DVT Wells score calculator: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
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){score += 1;} | ||
} | if(document.forms["DVTCalc"]["input3"].checked == 1){score += 1;} | ||
if(document.forms["DVTCalc"]["input4"].checked == 1){score += 1;} | |||
if(document.forms["DVTCalc"]["input2"].checked == 1){ | if(document.forms["DVTCalc"]["input5"].checked == 1){score += 1;} | ||
score += 1; | if(document.forms["DVTCalc"]["input6"].checked == 1){score += 1;} | ||
} | if(document.forms["DVTCalc"]["input7"].checked == 1){score += 1;} | ||
if(document.forms["DVTCalc"]["input3"].checked == 1){ | if(document.forms["DVTCalc"]["input8"].checked == 1){score += 1;} | ||
score += 1; | if(document.forms["DVTCalc"]["input9"].checked == 1){score -= 2;} | ||
} | |||
if(document.forms["DVTCalc"]["input4"].checked == 1){ | |||
score += 1; | |||
} | |||
if(document.forms["DVTCalc"]["input5"].checked == 1){ | |||
score += 1; | |||
} | |||
if(document.forms["DVTCalc"]["input6"].checked == 1){ | |||
score += 1; | |||
} | |||
if(document.forms["DVTCalc"]["input7"].checked == 1){ | |||
score += 1; | |||
} | |||
if(document.forms["DVTCalc"]["input8"].checked == 1){ | |||
score += 1; | |||
} | |||
if(document.forms["DVTCalc"]["input9"].checked == 1){ | |||
score -= 2; | |||
} | |||
document.forms["DVTCalc"]["result"].value = score; | document.forms["DVTCalc"]["result"].value = score; | ||
if(score <= 0){document.forms[" | if(score <= 0){document.forms["DVTCalc"]["longanswer"].value = "Low probability of DVT: Prevalence = 5%, Consider checking D-dimer";} | ||
if(score = 1 | 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[" | if(score >= 3){document.forms["DVTCalc"]["longanswer"].value = "High probability of DVT: Prevalence = 53%, Consider imaging of the deep veins";} | ||
} | } | ||
</script> | </script> | ||
<form name="DVTCalc"> | <form name="DVTCalc"> | ||
<table> | <table> | ||
<tbody style="border: 0; float: left; position: float; background: #104E8B; border-radius: 10px 10px 10px 10px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); margin: 0 0 0 0; padding: 5px 5px; font-weight: bold;"> | |||
<tr><td>Active cancer (treatment within last 6 months or palliative) </td><td><input | <tr> | ||
<tr><td>Calf swelling >3 cm compared to other calf (measured 10 cm below tibial tuberosity) </td><td><input | <td style="text-align: center;" colspan="3"><span style="color: #ffffff;"><strong>Wells Score Calculator for DVT</strong></span></td> | ||
<tr><td>Collateral superficial veins (non-varicose) </td><td><input | </tr> | ||
<tr><td>Pitting edema (confined to symptomatic leg) </td><td><input | <tr> | ||
<td style="color: #4479ba; background: #ffffff; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px;"><strong>Variable</strong></td> | |||
<tr><td>Swelling of entire leg </td><td><input | <td colspan="2" style="color: #4479ba; background: #ffffff; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>Score</strong></td> | ||
</tr> | |||
<tr><td>Localized pain along distribution of deep venous system </td><td><input | <tr> | ||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Active cancer (treatment within last 6 months or palliative) </td> | |||
<tr><td>Paralysis, paresis, or recent cast immobilization of lower extremities </td><td><input | <td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>1</strong></td> | ||
<tr><td>Recently bedridden > 3 days, or major surgery requiring regional or general anesthetic in past 12 weeks </td><td><input | <td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input1" type="checkbox" value="1.0" onchange="calcScore();" /></td> | ||
<tr><td> | </tr> | ||
<tr><td> | <tr> | ||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Calf swelling >3 cm compared to other calf (measured 10 cm below tibial tuberosity)</td> | |||
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>1</strong></td> | |||
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input2" type="checkbox" value="1.0" onchange="calcScore();" /></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Collateral superficial veins (non-varicose)</td> | |||
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>1</strong></td> | |||
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input3" type="checkbox" value="1.0" onchange="calcScore();" /></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Pitting edema (confined to symptomatic leg)</td> | |||
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>1</strong></td> | |||
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input4" type="checkbox" value="1.0" onchange="calcScore();" /></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Swelling of entire leg</td> | |||
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>1</strong></td> | |||
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input5" type="checkbox" value="1.0" onchange="calcScore();" /></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Localized pain along distribution of deep venous system</td> | |||
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>1</strong></td> | |||
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input6" type="checkbox" value="1.0" onchange="calcScore();" /></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Paralysis, paresis, or recent cast immobilization of lower extremities</td> | |||
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>1</strong></td> | |||
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input7" type="checkbox" value="1.0" onchange="calcScore();" /></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Recently bedridden > 3 days, or major surgery requiring regional or general anesthetic in past 12 weeks</td> | |||
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>1</strong></td> | |||
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input8" type="checkbox" value="1.0" onchange="calcScore();" /></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Alternative diagnosis at least as likely</td> | |||
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>-2</strong></td> | |||
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input9" type="checkbox" value="-2.0" onchange="calcScore();" /></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #4479BA; background: #ffffff; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 0 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);" colspan="3">Wells Score: <input name="result" type="text" style="border: white"/></td> | |||
</tr> | |||
<tr> | |||
<td style="text-align: left; color: #4479BA; background: #ffffff; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 0 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);" colspan="3">Interpretation:<input name="longanswer" size="70" type="text" style="border: white"/></td> | |||
</tr> | |||
</tbody> | |||
</table> | </table> | ||
</form> | </form> | ||
</includeonly> | </includeonly> |