Widget:Tygerberg score: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
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 | 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> |