Widget:PE calculator: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:
}
}
document.forms["PECalc"]["result"].value = score;
document.forms["PECalc"]["result"].value = score;
if(score < 2){document.forms["PECalc"]["longanswer"].value = "Low probability of PE; Consider checking D-dimer";}
if(score < 2){document.forms["PECalc"]["longanswer"].value = "Low probability of PE: Consider checking D-dimer";}
if(score >= 2 && score <= 6){document.forms["PECalc"]["longanswer"].value = "Moderate probability of PE; Consider checking D-dimer";}
if(score >= 2 && score <= 6){document.forms["PECalc"]["longanswer"].value = "Moderate probability of PE: Consider checking D-dimer";}
if(score > 6){document.forms["PECalc"]["longanswer"].value = "High probability of PE; Consider imaging of the pulmonary arteries";}
if(score > 6){document.forms["PECalc"]["longanswer"].value = "High probability of PE: Consider imaging of the pulmonary arteries";}
}
}
</script>
</script>

Revision as of 18:10, 11 May 2012