Widget:Gc: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<script type="text/javascript">
<script type="text/javascript">
function getScore(){
var score = if(document.forms["DAPTSCORE"]["input1"].checked == 1).value;
}
{
document.forms["DAPTSCORE"]["result"].value = score;
if(score <= 1){document.forms["DAPTSCORE"]["longanswer"].value = "Associated with an unfavorable benefit-to-risk ratio for prolonged DAPT";}
if(score >= 2){document.forms["DAPTSCORE"]["longanswer"].value = "Associated with a favorable benefit-to-risk ratio for prolonged DAPT";}
}
</script>
<form name="DAPTSCORE">
<table>
<tbody style="border: 0; float: left; position: float; background: #104E8B; border-radius: 10px 10px 10px 10px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); margin: 0 0 0 0; padding: 5px 5px; font-weight: bold;">
<tr>
<td style="text-align: center;" colspan="4"><span style="color: #ffffff;"><strong>DAPT SCORE Calculator</strong></span></td>
</tr>
<tr>
<td colspan="2" style="color: #4479ba; background: #ffffff; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px;"><strong>Variable</strong></td>
<td colspan="2" style="color: #4479ba; background: #ffffff; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px 0px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>Score</strong></td>
</tr>


<tr>
function funcCalcScore()
<td rowspan="3" style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">Age</td>
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"> ≥ 75 years old</td>
  Form = document.frmCalc;


<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>-2</strong></td>
  var E = GetRBCheckedVal(Form.Eye) * 1;
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input1" type="radio" value="-2.0" id="1" /></td>
  var V = GetRBCheckedVal(Form.Verbal) * 1;
</tr>
  var M = GetRBCheckedVal(Form.Motor) * 1;
  Score = E + V + M;
 
  Form.Result.value = Round(Score, 2);
  Form.Interpretation.value = 'GCS ' + Score + ' = E' + E + ' V' + V + ' M' + M + ' (at time of observation)';


<tr>
}
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">65-74 years old</td>
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>-1</strong></td>
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input1" type="radio" value="-1.0" id="2" /></td>
</tr>


<tr>
</script>
<td style="text-align: left; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);">&lt; 65 years old</td>
<!-- //// END CALCULATION CODE //// -->
<td style="color: #ffffff; background: #4479ba; padding: 2px 10px; border-radius: 5px; text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-align: center;"><strong>0</strong></td>
<td style="text-align: center; color: #ffffff; background: #4479BA; padding: 2px 10px; border-radius: 5px 5px 5px 5px; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);"><input style="top: 4px; width: 24px; height: 24px;" name="input1" type="radio" value="0" id="3" /></td>
</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="4"> DAPT Score: <input name="result" type="text" style="border: white"/></td>
</tr>


<tr>
<table border="1" width="100%" height="1" cellspacing="0" cellpadding="2">
<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="4">Interpretation: <input name="longanswer" size="65" type="text" style="border: white"/></td>
  <tr>
</tr>
    <td width="93%" height="3" bordercolor="#000000" bgcolor="#C0C0C0">&nbsp; <b><font face="Verdana" size="2">GCS
 
      - Glasgow Coma Scale</font></b></td>
</tbody>
    <td width="7%" height="3" bordercolor="#000000" bgcolor="#C0C0C0">&nbsp;</td>
  </tr>
  <tr>
    <td width="100%" height="253" colspan="2">
    <br>
      <form action="get" name="frmCalc">
        <center>
        <table border="1" width="90%">
          <tr>
            <td width="31%"><font size="2" face="Verdana"><b>Best eye response</b></font></td>
            <td width="69%"><font face="Verdana" size="2">
              <input type="radio" value="1" name="Eye" onclick="funcCalcScore();" onBlur="funcCalcScore();" checked>
              No eye opening (+1)<br>
              <input type="radio" value="2" name="Eye" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Eye opening to pain (+2)<br>
              <input type="radio" value="3" name="Eye" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Eye opening to verbal command (+3)<br>
              <input type="radio" value="4" name="Eye" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Eyes open spontaneously (+4)</font></td>
          </tr>
          <tr>
            <td width="31%"><font size="2" face="Verdana"><b>Best verbal response</b></font></td>
            <td width="69%"><font face="Verdana" size="2"><input type="radio" value="1" name="Verbal" checked>
              No verbal response (+1)<br>
              <input type="radio" value="2" name="Verbal" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Incomprehensible sounds (+2)<br>
              <input type="radio" value="3" name="Verbal" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Inappropriate words (+3)<br>
              <input type="radio" value="4" name="Verbal" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Confused (+4)<br>
              <input type="radio" value="5" name="Verbal" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Oriented (+5)</font></td>
          </tr>
          <tr>
            <td width="31%"><font size="2" face="Verdana"><b>Best motor response</b></font></td>
            <td width="69%">
              <font face="Verdana" size="2">
              <input type="radio" value="1" name="Motor" onclick="funcCalcScore();" onBlur="funcCalcScore();" checked>
              No motor response (+1)<br>
              <input type="radio" value="2" name="Motor" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Extension to pain (+2)<br>
              <input type="radio" value="3" name="Motor" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Flexion to pain (+3)<br>
              <input type="radio" value="4" name="Motor" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Withdrawal from pain (+4)<br>
              <input type="radio" value="5" name="Motor" onclick="funcCalcScore();" onBlur="funcCalcScore();"> Localizes pain (+5)<br>
              <input type="radio" value="6" name="Motor" onclick="funcCalcScore();" onBlur="funcCalcScore();">Obeys commands (+6)</font></td>
          </tr>
          <tr>
            <td width="31%" bgcolor="#C0C0C0"><font face="Verdana" size="2"><b>GCS
              Score</b></font></td>
            <td width="69%" bgcolor="#C0C0C0"><font face="Verdana" size="2"><input type="text" name="Result" size="11" onClick="funcCalcScore();">
              <b> (points)</b>
              </font> </td>
          </tr>
      </center>
          <tr>
            <td width="100%" bgcolor="#C0C0C0" colspan="2">
              <p align="left"><font face="Verdana" size="2"><b>Score
              Interpretation:</b></font></p>
        <center>
              <p align="center"><textarea rows="5" name="Interpretation" cols="50" readonly="1"></textarea></p>
              </center>
            </td>
          </tr>
        </table>
        <p><input type="button" value="Calculate" name="btnCalc" onClick="funcCalcScore();"><input type="reset" value="Reset" name="B2"></p>
      </form>
    </td>
  </tr>
  <tr>
    <td width="100%" height="33" colspan="2">
      <b><font color="#000080" face="Verdana" size="2">Calculation(s) used</font></b><br>
      <br>
      <font face="Verdana" size="2">GCS scoring: A certain number of Points are given for each
      category and the result is the total sum of
      the points for each question.</font>
      <p>&nbsp;</p>
    </td>
  </tr>
  <tr>
    <td width="100%" height="33" colspan="2">
      <p class="MsoNormal" style="text-align: left; line-height: 150%;"><b><font color="#000080" face="Verdana" size="2">Interpretation</font></b></p>
      <p align="left">
      <table style="border-collapse: collapse;" id="AutoNumber1" border="1" bordercolor="#808080" cellpadding="0" cellspacing="0" width="50%">
        <tr>
          <td align="center" width="42%"><b><font face="Verdana" size="2">GCS
            score</font></b></td>
          <td align="center" width="58%"><b><font face="Verdana" size="2">Classification
            of<br>
            brain injury</font></b></td>
        </tr>
        <tr>
          <td align="center" width="42%"><font face="Verdana" size="2"> &#8805;13</font></td>
          <td align="center" width="58%"><font face="Verdana" size="2">Minor/None</font></td>
        </tr>
        <tr>
          <td align="center" width="42%"><font face="Verdana" size="2">9 - 12</font></td>
          <td align="center" width="58%"><font face="Verdana" size="2">Moderate</font></td>
        </tr>
        <tr>
          <td align="center" width="42%"><font face="Verdana" size="2"> &#8804;8</font></td>
          <td align="center" width="58%"><font face="Verdana" size="2">Severe</font></td>
        </tr>
      </table>
      <p align="left"><br>
    </td>
  </tr>
  <tr>
    <td width="100%" height="33" colspan="2"><font face="Verdana" size="2"><b><font color="#000080">References</font><br>
      </b></font><font face="Verdana" size="1">1. <br>
      </font></td>
  </tr>
</table>
</table>
</form>
</includeonly>
</includeonly>

Latest revision as of 00:42, 8 February 2019