Widget:IMPROVEScore: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
document.forms["IMPROVEScore"]["result"].value = score; | document.forms["IMPROVEScore"]["result"].value = score; | ||
if(score == 0){document.forms["IMPROVEScore"]["longanswer"].value = "0.4%";} | if(score == 0){document.forms["IMPROVEScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 0.4%";} | ||
if(score == 1){document.forms["IMPROVEScore"]["longanswer"].value = "0.6%";} | if(score == 1){document.forms["IMPROVEScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 0.6%";} | ||
if(score == 2){document.forms["IMPROVEScore"]["longanswer"].value = "1%";} | if(score == 2){document.forms["IMPROVEScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 1%";} | ||
if(score == 3){document.forms["IMPROVEScore"]["longanswer"].value = "1.7%";} | if(score == 3){document.forms["IMPROVEScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 1.7%";} | ||
if(score == 4){document.forms["IMPROVEScore"]["longanswer"].value = "2.9%";} | if(score == 4){document.forms["IMPROVEScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 2.9%";} | ||
if(score >= 5){document.forms["IMPROVEScore"]["longanswer"].value = "7.2%";} | if(score >= 5){document.forms["IMPROVEScore"]["longanswer"].value = "Predicted VTE risk through 3 months is 7.2%";} | ||
} | } | ||
</script> | </script> |