Personal tools
You are here: Home OSCAR Users EMR and Case Management Resources eForms eForms for download Calculators CHADS 2 Score

CHADS 2 Score

Contributed by Dr. David Page. Calculates the CHADS2 Score, used to calculate the risk/benefits of using anti-coagulation in preventing a stroke.

CHADS2.html — HTML, 15Kb

File contents

<html>
<head>
<title>CHADS 2</title>
<style type="text/css">
p.title{
	text-transform: uppercase;
	font-size: 16;
	font-family: Arial;
	font-weight: bolder;
	text-align: left;
  	color: black;
}
p.heading{
	font-size: 12;
	font-family: Arial;
	font-weight: bolder;
	text-align: left;
	vertical-align: top;
	color: black;
}
p.normaltext{
	font-size: 12;
	font-family: Arial;
	font-weight: normal;
	text-align: left;
	vertical-align: top;
	color: black;
}
td.heading1{
	font-size: 12;
	font-family: Arial;
	font-weight: bold;
	text-align: center;
	vertical-align: top;
	color: white;
	background-color:black ;
	border-width: 1;
}
td.QuestionHeading{
	font-size: 12;
	font-family: Arial;
	font-weight: bold;
	text-align: left;
	vertical-align: top;
	color: white;
	background-color: #505050;
	border-width: 1;
}
td.AnswerHeading{
	font-size: 12;
	font-family: Arial;
	font-weight: bold;
	text-align: center;
	vertical-align: top;
	color: white;
	background-color: #505050;
	border-width: 1;
}

tr.odd{
	background-color: #ffffff;
}
tr.even{
	background-color: #dddddd;
}
td.question{
	font-size: 12;
	font-family: Arial;
	font-weight: normal;
	text-align: left;
	vertical-align: top;
	color: black;
	border-width: 1;
}
td.answer{
	font-size: 12;
	font-family: Arial;
	font-weight: bold;
	text-align: center;
	vertical-align: middle;
	color: black;
	border-width: 1;
}
td.normaltext{
	width: 100%;
	font-size: 12;
	font-family: Arial;
	font-weight: normal;
	text-align: left;
	vertical-align: top;
	color: black;
	background-color: white;
	border-width: 0;
}
input.formtext{
	width: 100%;
	height: 100%;
	font-size: 12;
	font-family: Arial;
	font-weight: normal;
	text-align: left;
	vertical-align: top;
	color: black;
	background-color: white;
	border-width: 1;
	border-style: solid; 
}
textarea.formtext{
	width: 100%;
	height: auto;
	font-size: 12;
	font-family: Arial;
	font-weight: normal;
	text-align: left;
	vertical-align: top;
	color: black;
	background-color: white;
	border-width: 1;
	border-style: solid;
}

</style>

<!-------Script to maximize window on loading----------->
<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
<!----------End maximizing window script---------->


<!-- CSS Script that removes textarea and textbox borders when printing ---(put this inbetween <header></header>)----------------->
<style type="text/css" media="print">
.DoNotPrint {
	display: none;
}

.noborder {
	scrollbar-3dlight-color: transparent;
	scrollbar-3dlight-color: transparent;
	scrollbar-arrow-color: transparent;
	scrollbar-base-color: transparent;
	scrollbar-darkshadow-color: transparent;
	scrollbar-face-color: transparent;
	scrollbar-highlight-color: transparent;
	scrollbar-shadow-color: transparent;
	scrollbar-track-color: transparent;
	background: transparent;
	overflow: hidden;
	border : 0px;
}
</style>
<!-- ----------------------------------------------------------------------------------------- -->

<script type="text/javascript" language="javascript">

function passAge() {
         if (document.getElementById("Age").value >= 75){
               document.getElementById("75").checked =true;
         }
         if (document.getElementById("Age").value >= 80){
         document.getElementById("high").style.background='yellow';
         }
         else if ((document.getElementById("Age").value >0)&&(document.getElementById("Age").value <80)){
         document.getElementById("low").style.background='yellow';
         }
         

}

function getCheckedValue(radioObj) {

	if(!radioObj)
		return parseInt(0);
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return parseInt(radioObj.value);
		else
			return parseInt(value);
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return parseInt(radioObj[i].value);
		}
	}
	
	return parseInt(0);
}

function totalScore(){
	var i = 0;

	i += getCheckedValue(document.FormName.Q1);
	i += getCheckedValue(document.FormName.Q2);
	i += getCheckedValue(document.FormName.Q3);
	i += getCheckedValue(document.FormName.Q4);
	i += getCheckedValue(document.FormName.Q5);
	
	


	document.FormName.Score.value = i;
	 if (i==0){
		document.getElementById("0").style.background='yellow';
		document.getElementById("1").style.background='white';
		document.getElementById("2").style.background='white';
                document.getElementById("3").style.background='white';
		document.getElementById("4").style.background='white';
		document.getElementById("5").style.background='white';
                document.getElementById("6").style.background='white';
	}

         if (i==1){
		document.getElementById("0").style.background='white';
		document.getElementById("1").style.background='yellow';
		document.getElementById("2").style.background='white';
                document.getElementById("3").style.background='white';
		document.getElementById("4").style.background='white';
		document.getElementById("5").style.background='white';
                document.getElementById("6").style.background='white';
	}
          if (i==2){
		document.getElementById("0").style.background='white';
		document.getElementById("1").style.background='white';
		document.getElementById("2").style.background='yellow';
                document.getElementById("3").style.background='white';
		document.getElementById("4").style.background='white';
		document.getElementById("5").style.background='white';
                document.getElementById("6").style.background='white';
	}

         if (i==3){
		document.getElementById("0").style.background='white';
		document.getElementById("1").style.background='white';
		document.getElementById("2").style.background='white';
                document.getElementById("3").style.background='yellow';
		document.getElementById("4").style.background='white';
		document.getElementById("5").style.background='white';
                document.getElementById("6").style.background='white';
	}

         if (i==4){
		document.getElementById("0").style.background='white';
		document.getElementById("1").style.background='white';
		document.getElementById("2").style.background='white';
                document.getElementById("3").style.background='white';
		document.getElementById("4").style.background='yellow';
		document.getElementById("5").style.background='white';
                document.getElementById("6").style.background='white';
	}

         if (i==5){
		document.getElementById("0").style.background='white';
		document.getElementById("1").style.background='white';
		document.getElementById("2").style.background='white';
                document.getElementById("3").style.background='white';
		document.getElementById("4").style.background='white';
		document.getElementById("5").style.background='yellow';
                document.getElementById("6").style.background='white';
	}
          if (i==6){
		document.getElementById("0").style.background='white';
		document.getElementById("1").style.background='white';
		document.getElementById("2").style.background='white';
                document.getElementById("3").style.background='white';
		document.getElementById("4").style.background='white';
		document.getElementById("5").style.background='white';
                document.getElementById("6").style.background='yellow';
	}

   

       if (i<=2){
		document.getElementById("severe").style.background='yellow';
		document.getElementById("moderate").style.background='white';
		document.getElementById("mild").style.background='white';
	}
	else if (i>=3 && i<=4){
		document.getElementById("mild").style.background='white';
		document.getElementById("moderate").style.background='pink';
		document.getElementById("severe").style.background='white';
	}
	else if (i>=5 && i<=6){
		document.getElementById("severe").style.background='white';
		document.getElementById("moderate").style.background='white';
		document.getElementById("mild").style.background='red';

	}

                
	
}
</script>


</head>

<body onload="passAge();">

<form method="post" action="" name="FormName">

<p class="title">
	CHADS2: Stroke risk assessment in Atrial Fibrillation in Non Valvular Heart disease
</p>


<div name="demographics">
<table width="70%">
	<tr>
		<td class="heading1" width=25%>Patient name</td>
		<td class="formtext"><input class="formtext" name="PatientName" type="text" oscarDB=patient_name>
	</tr>
	<tr>
		<td class="heading1">Date:</td>
		<td class="formtext"><input class="formtext" name="TodaysDate" type="text" oscarDB=today>
	</tr>
        <tr>
		<td class="heading1">Patients age:</td>
		<td class="formtext"><input class="formtext" name="Age" id = "Age" type="text" oscarDB=age>
	</tr>
</table>
</div>

<br>

<div name="Questionnaire">
<table width="50%">
         <tr>
		<td class="heading1" width=60%>Associated medical conditions</u>:</td>
		<td class="heading1" width=20%>Absent</td>
                <td class="heading1" width=20%>Present</td>
		 
		
	</tr>

	
       
        <tr class="even">
		<td class="question"><p class="normal">Congestive heart failure within 90 days </p></td>
		<td class="answer"><input type="radio" name="Q1" value="0"checked></td>
                <td class="answer"><input type="radio" name="Q1" value="1"></td>
		
	<tr>
   

	<tr class="even">
		<td class="question"><p class="normal">Any history of HBP whether on treatment or not</p></td>
		<td class="answer"><input type="radio" name="Q2" value="0"checked></td>
                <td class="answer"><input type="radio" name="Q2" value="1"></td>
		
	</tr>

      

	<tr class="even">
		<td class="question"><p class="normal">Age >= 75yrs</p></td>
		<td class="answer"><input type="radio" name="Q3" value="0"checked></td>
		<td class="answer"><input type="radio" name="Q3" id = "75" value="1"></td>
		
	</tr>
        

	<tr class="even">
		<td class="question"><p class="normal">Diabetes </p></td>
		<td class="answer"><input type="radio" name="Q4" value="0"checked></td>
		<td class="answer"><input type="radio" name="Q4" value="1"></td>
	</tr>

        <tr class="even">
		<td class="question"><p class="normal">Prior stroke or TIA</p></td>
		<td class="answer"><input type="radio" name="Q5" value="0"checked></td>
		<td class="answer"><input type="radio" name="Q5" value="2"></td>
	<tr>
        

	
	
</table>
<br>
<table>
<tr>
	<td><input type="button" onclick="totalScore()" value="Calculate CHADS Score"></td>
	<td><input type="text" name="Score" size="10" value=""></td>
</tr>
</table>

</div>


<br>
<br>


<div name="Risk" class="DoNotPrint">
<table width=50%>
<tr>
	
        <td class="heading1" width=10%>CHADS Score</td>
        <td class="heading1" width=10%>Yearly Risk of Stroke</td>
        <td class="heading1" width=10%>Event rate off warfarin (% per year)</td>
        <td class="heading1" width=10%>Event rate on warfarin (% per year)</td>
        <td class="heading1" width=10%>NNT</td>
</tr>
<tr id="0" >
	<td class = "answer">0</td>
	<td class = "answer">1.9%  (1.2-3.0)</td>
        <td class = "answer">0.49</td>
	<td class = "answer">0.25</td>
        <td class = "answer">417</td>
</tr>
<tr id="1">
	<td class = "answer">1</td>
	<td class = "answer">2.8%  (2.0-3.8)</td>
        <td class = "answer">1.52</td>
	<td class = "answer">0.72</td>
        <td class = "answer">125</td>
</tr>
<tr id="2">
	<td class = "answer">2</td>
	<td class = "answer">4.0%  (3.1-5.1)</td>
        <td class = "answer">2.50</td>
	<td class = "answer">1.27</td>
        <td class = "answer">81</td>
</tr>
<tr id="3">
	<td class = "answer">3</td>
	<td class = "answer">5.9%  (4.6-7.3)</td>
        <td class = "answer">5.27</td>
	<td class = "answer">2.20</td>
        <td class = "answer">33</td>
</tr>
<tr id="4">
	<td class = "answer">4</td>
	<td class = "answer">8.5%  (6.3-11.1)</td>
        <td class = "answer">6.02</td>
	<td class = "answer">2.35</td>
        <td class = "answer">27</td>
</tr>
<tr id="5">
	<td class = "answer">5</td>
	<td class = "answer">12.5%  (8.2-17.5)</td>
        <td class = "answer">6.88</td>
	<td class = "answer">4.60</td>
        <td class = "answer">44</td>
</tr>
<tr id="6">
	<td class = "answer">6</td>
	<td class = "answer">18.2%  (10.5-27.4)</td>
        <td class = "answer">-</td>
	<td class = "answer">-</td>
        <td class = "answer">-</td>
</tr>
</table>

<br>

<table width = 70%>
<tr>
	
        <td class="heading1" width=10%>Risk of major bleed</td>
        <td class="heading1" width=10%>Less significant but worrisome bleed</td>
       
</tr>

<tr id= "low">
         <td class = "answer">Age < 80yrs:Risk of major bleed  1% per year.</td>
         <td class = "answer">Age >50yrs:Risk of minor bleed 5% per year.</td>
</tr>
<tr id="high">
         <td class = "answer">Age > 80 yrs:Risk of major bleed 3.4% per year</td>
         <td class = "answer"></td>
</tr>
</table>
<br>
<br>
<div name="Application" class="DoNotPrint">
<table width=80%>

<tr>
	<td class="heading1" colspan="2">Recommendations</td>
</tr>
<tr id="severe">
	<td>0-2</td>
	<td>Low Risk of stroke (2-4%):                Treat with ASA 325mg od. Could consider Warfarin for CHADS score 1 or 2.</td>
</tr>
<tr id="moderate">
	<td>3-4</td>
	<td>Intermediate Risk of stroke (6-8.5%):    Discuss risk and benefits of Warfarin vs ASA.</td>
</tr>
<tr id="mild">
	<td>5-6</td>
	<td>High Risk of stroke (12.5-18%):          Recommend  Warfarin. Discuss risks and benefits.</td>
</tr>


</table>

<br>
<br>

<div name="Application" class="DoNotPrint">
<table width=80%>

<tr>
	<td class="heading1" colspan="2">Notes:</td>
</tr>

<tr>
	
	<td>1. Check TSH: hyperthyroidism is a major cause of atrial fibrillation.</td>
</tr>

<tr >
	
	<td>2. Echocardiogram is not essential as the size of the atrium does not correlate with the rhythm or outcome.</td>
</tr>

<tr>
	
	<td>3. Establish rate control with either B-blocker or a calcium channel blocker.</td>
</tr>

<tr>
	
	<td>4. Treatment with warfarin reduces the risk of stroke in atrial fibrillation by about 66% and treatment with aspirin reduces risk by about 25%.</td>
</tr>

<tr>
	
	<td>5. The risk of major bleeding on warfarin varies with the patients medical problems but is generally less than 2%.</td>
</tr>

</table>

</div>


<br>
<br>

<!-- The submit/print/reset buttons ------------------------------------------------------------->
<div name="FunctionButtons" class="DoNotPrint">
<table>
<tr>
	<td class="subjectline">
		Subject: <input name="subject" size="40" type="text">
		<input value="Submit" name="SubmitButton" type="submit">
		<input value="Reset" name="ResetButton" type="reset">
		<input value="Print" name="PrintButton" onclick="javascript:window.print()" type="button">
	</td>
</tr>
</table>
</div>

</form>
<!-- ------End of submit/print/reset buttons----------------------------------------------------->

</body>
</html>
Document Actions
Help us support OSCAR!

 

Download button

DOWNLOAD OSCAR FOR TESTING

 

Demo Button

SEE OSCAR EMR IN ACTION


Subscribe Button

SUBSCRIBE TO DISCUSSION LIST

 (SEE ALL LISTS)

 Customize button

FIND PLUG-INS AND TWEAKS
FOR YOUR OSCAR EMR

 

 Join OCUS Button

 BECOME A MEMBER OF THE
OSCAR CANADA USERS SOCIETY
(OUR MISSION)

 

Help button

ACCESS THE ONLINE MANUALS
(OLD MANUALS)
(PAID SUPPORT)

 

Contact Us

Oscar Canada Users Society

#425 - 1917 West 4th Avenue

Vancouver  BC  V6J 1M7

OscarCanadaUserSociety@gmail.com