Widget:TIMI UA NSTEMI: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly> <script type="text/javascript"> function calcScore(){ var score = 0; if(document.forms["TIMI_UA_NSTEMI"]["input1"].checked == 1){score += 1;} if(document.forms["..." |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
if(document.forms["TIMI_UA_NSTEMI"]["input6"].checked == 1){score += 1;} | if(document.forms["TIMI_UA_NSTEMI"]["input6"].checked == 1){score += 1;} | ||
if(document.forms["TIMI_UA_NSTEMI"]["input7"].checked == 1){score += 1;} | if(document.forms["TIMI_UA_NSTEMI"]["input7"].checked == 1){score += 1;} | ||
document.forms["TIMI_UA_NSTEMI"]["result"].value = score; | document.forms["TIMI_UA_NSTEMI"]["result"].value = score; | ||
if(score | if(score == 0){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "4.7%";} | ||
if(score = 2){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "8.3%";} | if(score == 1){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "4.7%";} | ||
if(score = 3){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "13.2%";} | if(score == 2){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "8.3%";} | ||
if(score = 4){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "19.9%";} | if(score == 3){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "13.2%";} | ||
if(score = 5){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "26.2%";} | if(score == 4){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "19.9%";} | ||
if(score == 5){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "26.2%";} | |||
if(score >= 6){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "at least 40.9%";} | if(score >= 6){document.forms["TIMI_UA_NSTEMI"]["longanswer"].value = "at least 40.9%";} | ||
} | } |