Widget:IMPROVEDDScore: Difference between revisions

Jump to navigation Jump to search
No edit summary
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 = "Predicted VTE risk through 3 months is 0.4%";}
if(score == 0){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 35–42 days is 0.4%";}
if(score == 1){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 0.6%";}
if(score == 1){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 35–42 days is 0.6%";}
if(score == 2){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 0.8%";}
if(score == 2){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 35–42 days is 0.8%";}
if(score == 3){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 1.2%";}
if(score == 3){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 35–42 days is 1.2%";}
if(score == 4){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 1.6%";}
if(score == 4){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 35–42 days is 1.6%";}
if(score >= 5 && score <= 10){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 2.2%";}
if(score >= 5 && score <= 10){document.forms["IMPROVEDDScore"]["longanswer"].value = "Predicted VTE risk through 35–42 days is 2.2%";}
}
}
</script>
</script>

Revision as of 20:13, 4 October 2018