Widget:IMPROVEDDScore: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(22 intermediate revisions by 3 users not shown)
Line 3: Line 3:
function calcScore(){
function calcScore(){
var score = 0;
var score = 0;
if(document.forms["IMPROVEDDScore"]["input1"].checked == 1){
if(document.forms["IMPROVEDDScore"]["input1"].checked == 1){score += 3;}
score += 3;
if(document.forms["IMPROVEDDScore"]["input2"].checked == 1){score += 2;}
}
if(document.forms["IMPROVEDDScore"]["input3"].checked == 1){score += 2;}
if(document.forms["IMPROVEDDScore"]["input2"].checked == 1){
if(document.forms["IMPROVEDDScore"]["input4"].checked == 1){score += 2;}
score += 2;
if(document.forms["IMPROVEDDScore"]["input5"].checked == 1){score += 1;}
}
if(document.forms["IMPROVEDDScore"]["input6"].checked == 1){score += 1;}
if(document.forms["IMPROVEDDScore"]["input3"].checked == 1){
if(document.forms["IMPROVEDDScore"]["input7"].checked == 1){score += 1;}
score += 2;
if(document.forms["IMPROVEDDScore"]["input8"].checked == 1){score += 2;
}
if(document.forms["IMPROVEDDScore"]["input4"].checked == 1){
score += 2;
}
if(document.forms["IMPROVEDDScore"]["input5"].checked == 1){
score += 2;
}
if(document.forms["IMPROVEDDScore"]["input6"].checked == 1){
score += 1;
}
if(document.forms["IMPROVEDDScore"]["input7"].checked == 1){
score += 1;
}
if(document.forms["IMPROVEDDScore"]["input8"].checked == 1){
score += 1;
}
}
document.forms["IMPROVEDDScore"]["result"].value = score;
document.forms["IMPROVEDDScore"]["result"].value = score;
Line 38: Line 23:
<form name="IMPROVEDDScore">
<form name="IMPROVEDDScore">
<table>
<table>
<tr><td><span style="background: #FFF0F5;>Previous VTE </span></td><td><input type="checkbox" name="input1" value="3.0" onchange="calcScore();" /></td></tr>
<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><span style="background: #FFF0F5;>Known thrombophilia </span></td><td><input type="checkbox" name="input2" value="2.0" onchange="calcScore();" /></td></tr>
<tr>
<tr><td><span style="background: #FFF0F5;>Current lower-limb paralysis </span></td><td><input type="checkbox" name="input3" value="2.0" onchange="calcScore();" /></td></tr>
<td style="text-align: center;" colspan="3"><span style="color: #ffffff;"><strong>IMPROVEDD VTE Risk Score Calculator</strong></span></td>
<tr><td><span style="background: #FFF0F5;>Current cancer </span></td><td><input type="checkbox" name="input4" value="2.0" onchange="calcScore();" /></td></tr>
</tr>
<tr><td><span style="background: #FFF0F5;>Immobilized for ≥7 days </span></td><td><input type="checkbox" name="input6" value="1.0" onchange="calcScore();" /></td></tr>
<tr>
<tr><td><span style="background: #FFF0F5;>Admission to intensive care unit </span></td><td><input type="checkbox" name="input7" value="1.0" onchange="calcScore();" /></td></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><span style="background: #FFF0F5;>Age >60 years </span></td><td><input type="checkbox" name="input8" value="1.0" onchange="calcScore();" /></td></tr>
<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><td><span style="background: #FFF0F5;>D-dimer ≥2× upper limit of normal (or ≥1.0 μg/mL)</span></td><td><input type="checkbox" name="input5" value="2.0" onchange="calcScore();" /></td></tr>
</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);">Prior episode of VTE</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>3</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="input1" 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);">Thrombophilia</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="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);">Paralysis of the lower extremity during the hospitalization</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="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);">Current malignancy</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="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);">Immobilization for at least 7 days</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);">ICU or CCU admission</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);">Age more than 60 years</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);">D-dimer ≥2× upper limit of normal (or ≥1.0 μg/mL)</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="input8" 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">IMPROVEDD 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">Predicted Risk of Symptomatic VTE: <input name="longanswer" size="60" type="text" style="border: white"/></td>
</tr>
</tbody>
</table>
</table>
<span style="background: #FFFFF0; font-weight: bold;">IMPROVEDD Score = <input type="text" name="result" /></span><br/>
<span style="background: #FFFFF0; font-weight: bold;">Predicted Risk of Symptomatic VTE = <input type="text" size="40" name="longanswer" /></span>
</form>
</form>
</includeonly>
</includeonly>

Latest revision as of 17:40, 30 November 2020