Widget:CHA2DS2VASc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly> <script type="text/javascript"> function calcScore(){ var score = 0; if(document.forms["CHA2DS2VASc"]["input1"].checked == 1){score += 2;} if(document.forms["CHA...") |
Gerald Chi (talk | contribs) mNo edit summary |
||
Line 11: | Line 11: | ||
if(document.forms["CHA2DS2VASc"]["input7"].checked == 1){score += 1;} | if(document.forms["CHA2DS2VASc"]["input7"].checked == 1){score += 1;} | ||
if(document.forms["CHA2DS2VASc"]["input8"].checked == 1){score += 1;} | if(document.forms["CHA2DS2VASc"]["input8"].checked == 1){score += 1;} | ||
document.forms["CHA2DS2VASc"]["result"].value = score; | document.forms["CHA2DS2VASc"]["result"].value = score; | ||
if(score == 0){document.forms["CHA2DS2VASc"]["longanswer"].value = "Low risk; No antithrombotic therapy (or Aspirin 75-325mg daily)";} | if(score == 0){document.forms["CHA2DS2VASc"]["longanswer"].value = "Low risk; No antithrombotic therapy (or Aspirin 75-325mg daily)";} | ||
if(score == 1){document.forms["CHA2DS2VASc"]["longanswer"].value = "Moderate risk; Oral anticoagulation";} | if(score == 1){document.forms["CHA2DS2VASc"]["longanswer"].value = "Moderate risk; Oral anticoagulation";} | ||
if(score >= 2){document.forms["CHA2DS2VASc"]["longanswer"].value = "High risk; Oral anticoagulation";} | if(score >= 2){document.forms["CHA2DS2VASc"]["longanswer"].value = "High risk; Oral anticoagulation";} | ||
} | |||
</script> | </script> | ||
<form name="CHA2DS2VASc"> | <form name="CHA2DS2VASc"> |