Widget:RansonScore: Difference between revisions

Jump to navigation Jump to search
Ssharfaei (talk | contribs)
Created page with "<includeonly> <script type="text/javascript"> function calcScore(){ var score = 0; if(document.forms["RANSON"]["input1"].checked == 1){score += 1;} if(document.forms["RANSON"]..."
 
Ssharfaei (talk | contribs)
No edit summary
 
Line 17: Line 17:
document.forms["RANSON"]["result"].value = score;
document.forms["RANSON"]["result"].value = score;


if(score =< 2){document.forms["RANSON"]["longanswer"].value = " Severe pancreatitis is unlikely; 2% mortality";}
if(score <= 2){document.forms["RANSON"]["longanswer"].value = "Severe pancreatitis is unlikely; 2% mortality";}
if(score == 3){document.forms["RANSON"]["longanswer"].value = " Severe pancreatitis is likely; 15% mortality";}
if(score == 3){document.forms["RANSON"]["longanswer"].value = "Severe pancreatitis is likely; 15% mortality";}
if(score == 4){document.forms["RANSON"]["longanswer"].value = " Severe pancreatitis is likely; 15% mortality";}
if(score == 4){document.forms["RANSON"]["longanswer"].value = "Severe pancreatitis is likely; 15% mortality";}
if(score == 5){document.forms["RANSON"]["longanswer"].value = " Severe pancreatitis is likely; 40% mortality";}
if(score == 5){document.forms["RANSON"]["longanswer"].value = "Severe pancreatitis is likely; 40% mortality";}
if(score == 6){document.forms["RANSON"]["longanswer"].value = " Severe pancreatitis is likely; 40% mortality";}
if(score == 6){document.forms["RANSON"]["longanswer"].value = "Severe pancreatitis is likely; 40% mortality";}
if(score >= 7){document.forms["RANSON"]["longanswer"].value = " Severe pancreatitis is likely; 100% mortality";}
if(score >= 7){document.forms["RANSON"]["longanswer"].value = "Severe pancreatitis is likely; 100% mortality";}
}
}
</script>
</script>

Latest revision as of 16:36, 9 January 2019