Widget:Test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 28: | Line 28: | ||
document.forms["IMPROVEScore"]["result"].value = score; | document.forms["IMPROVEScore"]["result"].value = score; | ||
if(score == 0){document.forms["IMPROVEScore"]["longanswer"].value = " | if(score == 0){document.forms["IMPROVEScore"]["longanswer"].value = "0.4%";} | ||
if(score == 1 | if(score == 1){document.forms["IMPROVEScore"]["longanswer"].value = "0.6%";} | ||
if(score >= | 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 38: | Line 41: | ||
<table> | <table> | ||
<tr><td> | <tr><td>Prior episode of VTE</td><td><input type="checkbox" name="input1" value="1.0" onchange="calcScore();" /></td></tr> | ||
<tr><td> | <tr><td>Thrombophilia</td><td><input type="checkbox" name="input2" value="1.0" onchange="calcScore();" /></td></tr> | ||
<tr><td> | <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> | <tr><td>Current malignancy</td><td><input type="checkbox" name="input4" value="1.0" onchange="calcScore();" /></td></tr> | ||
<tr><td> | <tr><td>Immobilization for at least 7 days</td><td><input type="checkbox" name="input5" value="1.0" onchange="calcScore();" /></td></tr> | ||
<tr><td> | <tr><td>ICU or CCU admission</td><td><input type="checkbox" name="input6" value="1.0" onchange="calcScore();" /></td></tr> | ||
<tr><td> | <tr><td>Age more than 60 years</td><td><input type="checkbox" name="input7" value="1.0" onchange="calcScore();" /></td></tr> | ||
</table> | </table> |