Widget:Apgarscore: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
document.forms["Apgarscore"]["result"].value = score;
document.forms["Apgarscore"]["result"].value = score;
if(score <=3){document.forms["Apgarscore"]["longanswer"].value = "Critically low; Neonate requires medical attention";}
if(score <=3){document.forms["Apgarscore"]["longanswer"].value = "Critically low; Neonate requires medical attention";}
if(score >= 4 && score <= 6){document.forms["PECalc"]["longanswer"].value = "Fairly low";}  
if(score >= 4 && score <= 6){document.forms["Apgarscore"]["longanswer"].value = "Fairly low";}  
if(score >= 7){document.forms["Apgarscore"]["longanswer"].value = "Normal";}
if(score >= 7){document.forms["Apgarscore"]["longanswer"].value = "Normal";}
</script>
</script>

Revision as of 20:19, 15 November 2018