Widget:DVT Wells score calculator: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
Line 37: Line 37:


document.forms["DVTCalc"]["result"].value = score;
document.forms["DVTCalc"]["result"].value = score;
if(score == 0){document.forms["PECalc"]["longanswer"].value = "Low probability of DVT";}
if(score == 0){document.forms["DVTCalc"]["longanswer"].value = "Low probability of DVT";}
if(score == 1 || score == 2){document.forms["PECalc"]["longanswer"].value = "Moderate probability of DVT";}
if(score == 1 || score == 2){document.forms["DVTCalc"]["longanswer"].value = "Moderate probability of DVT";}
if(score >= 3){document.forms["PECalc"]["longanswer"].value = "High probability of DVT";}
if(score >= 3){document.forms["DVTCalc"]["longanswer"].value = "High probability of DVT";}
}
}
</script>
</script>

Revision as of 15:41, 15 May 2012