Widget:Tygerberg score: Difference between revisions

Jump to navigation Jump to search
Ssharfaei (talk | contribs)
No edit summary
Ssharfaei (talk | contribs)
No edit summary
 
Line 9: Line 9:
if(document.forms["Tygerberg_score"]["input5"].checked == 1){score += 1;}
if(document.forms["Tygerberg_score"]["input5"].checked == 1){score += 1;}
document.forms["Tygerberg_score"]["result"].value = score;
document.forms["Tygerberg_score"]["result"].value = score;
if(score == 0){document.forms["Tygerberg_score"]["longanswer"].value = "0.4% at 35–42 days; 0.5% at 77 days";}
if(score < 6){document.forms["Tygerberg_score"]["longanswer"].value = "Check other causes of pericarditis rather than tuberculosis";}
if(score >= 6){document.forms["Tygerberg_score"]["longanswer"].value = "Highly suggestive that tuberculosis is the cause of the pericarditis ";}
if(score >= 6){document.forms["Tygerberg_score"]["longanswer"].value = "Highly suggestive that tuberculosis is the cause of the pericarditis ";}
}
}
Line 49: Line 49:
</tr>
</tr>
<tr>
<tr>
<td style="text-align: left; color: #4479BA; background: #ffffff; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 0 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);" colspan="3"> Tygerberg Score: <input name="result" type="text" style="border: white"/></td>
<td style="text-align: left; color: #4479BA; background: #ffffff; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 0 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);" colspan="3">Tygerberg Score: <input name="result" type="text" style="border: white"/></td>
</tr>
</tr>
<tr>
<tr>

Latest revision as of 22:07, 13 November 2018