Widget:IMPROVEDDScore: Difference between revisions
Jump to navigation
Jump to search
Gerald Chi (talk | contribs) mNo edit summary |
Gerald Chi (talk | contribs) mNo edit summary |
||
Line 28: | Line 28: | ||
} | } | ||
document.forms["IMPROVEDDScore"]["result"].value = score; | document.forms["IMPROVEDDScore"]["result"].value = score; | ||
if(score == 0){document.forms["IMPROVEDDScore"]["longanswer"].value = "0.4% at 35–42 days | if(score == 0){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk is 0.4% at 35–42 days and 0.5% at 77 days";} | ||
if(score == 1){document.forms["IMPROVEDDScore"]["longanswer"].value = "0.6% at 35–42 days | if(score == 1){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk is 0.6% at 35–42 days and 0.7% at 77 days";} | ||
if(score == 2){document.forms["IMPROVEDDScore"]["longanswer"].value = "0.8% at 35–42 days | if(score == 2){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk is 0.8% at 35–42 days and 1.0% at 77 days";} | ||
if(score == 3){document.forms["IMPROVEDDScore"]["longanswer"].value = "1.2% at 35–42 days | if(score == 3){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk is 1.2% at 35–42 days and 1.4% at 77 days";} | ||
if(score == 4){document.forms["IMPROVEDDScore"]["longanswer"].value = "1.6% at 35–42 days | if(score == 4){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk is 1.6% at 35–42 days and 1.9% at 77 days";} | ||
if(score >= 5 && score <= 10){document.forms["IMPROVEDDScore"]["longanswer"].value = "2.2% at 35–42 days | if(score >= 5 && score <= 10){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk is 2.2% at 35–42 days and 2.7% at 77 days";} | ||
} | } | ||
</script> | </script> | ||
Line 47: | Line 47: | ||
<tr><td>Age >60 years</td><td><input type="checkbox" name="input8" value="1.0" onchange="calcScore();" /></td></tr> | <tr><td>Age >60 years</td><td><input type="checkbox" name="input8" value="1.0" onchange="calcScore();" /></td></tr> | ||
</table> | </table> | ||
IMPROVEDD Score = <input type="text" name="result" /><br/> | IMPROVEDD Score = <input type="text" name="result" /><br /> | ||
<input type="text" size="80" name="longanswer" /> | |||
</form></B> | </form></B> | ||
</includeonly> | </includeonly> |