Widget:PE calculator: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<script type="text/javascript">
<script type="text/javascript">
function hideSteps(){
function calcScore(){
document.getElementById("ans1").style. visibility = "hidden";
var score = 0;
document.getElementById("ans2").style. visibility = "hidden";
if(document.forms["PECalc"]["input1"].checked == 1){score += 3;}
document.getElementById("ans3").style. visibility = "hidden";
if(document.forms["PECalc"]["input2"].checked == 1){score += 3;}
document.getElementById("ans4").style. visibility = "hidden";
if(document.forms["PECalc"]["input3"].checked == 1){score += 1.5;}
document.getElementById("step2").style. visibility = "hidden";
if(document.forms["PECalc"]["input4"].checked == 1){score += 1.5;}
document.getElementById("step3").style. visibility = "hidden";
if(document.forms["PECalc"]["input5"].checked == 1){score += 1.5;}
document.getElementById("step4").style. visibility = "hidden";
if(document.forms["PECalc"]["input6"].checked == 1){score += 1;}
if(document.forms["PECalc"]["input7"].checked == 1){score += 1;}
 
document.forms["PECalc"]["result"].value = score;
if(score < 2){document.forms["PECalc"]["longanswer"].value = "Low probability of PE: Consider checking D-dimer";}
if(score >= 2 && score <= 6){document.forms["PECalc"]["longanswer"].value = "Moderate probability of PE: Consider checking D-dimer";}
if(score > 6){document.forms["PECalc"]["longanswer"].value = "High probability of PE: Consider imaging of the pulmonary arteries";}
}
}
</script>
</script>
<form name="preoprisk">
<form name="PECalc">
<div id="step1">
<table>
Need for emergency noncardiac surgery?<br />
<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;">
<input type="checkbox" id="yes1" />
<tr>
<input type="checkbox" id="no1" /><br />
<td style="text-align: center;" colspan="3"><span style="color: #ffffff;"><strong>Pulmonary Embolism Wells Score Calculator</strong></span></td>
</div>
</tr>
<div id="ans1">
<tr>
What're you doing!? Go fix the problem!
<td 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>
</div>
<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>
<div id="step2">
</tr>
Active Cardiac Conditions?<br />
<tr>
<input type="checkbox" id="yes2" />
<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);"> Clinically suspected DVT (leg swelling, pain with palpation)</td>
<input type="checkbox" id="no2" /><br />
<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>3</strong></td>
</div>
<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="checkbox" value="3.0" onchange="calcScore();" /></td>
<div id="ans2">
</tr>
Evaluate and Treat per guidelines
<tr>
</div>
<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);"> Alternative diagnosis is less likely than PE</td>
<div id="step3">
<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>3</strong></td>
Active Cardiac Conditions?<br />
<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="input2" type="checkbox" value="3.0" onchange="calcScore();" /></td>
<input type="checkbox" id="yes3" />
</tr>
<input type="checkbox" id="no3" /><br />
<tr>
</div>
<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);"> Immobilization/surgery in previous four weeks</td>
<div id="ans3">
<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.5</strong></td>
You may proceed.
<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="input3" type="checkbox" value="1.5" onchange="calcScore();" /></td>
</div>
</tr>
<div id="step4">
<tr>
Functional capacity >= 4 METs Without Symptoms<br />
<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);">Previous history of DVT or PE</td>
<input type="checkbox" id="yes4" />
<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.5</strong></td>
<input type="checkbox" id="no4" /><br />
<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="input4" type="checkbox" value="1.5" onchange="calcScore();" /></td>
</div>
</tr>
<div id="ans4">
<tr>
You may proceed.
<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);">Tachycardia (heart rate more than 100 bpm)</td>
</div>
<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.5</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="input5" type="checkbox" value="1.5" onchange="calcScore();" /></td>
</tr>
<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);">Hemoptysis</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="input6" type="checkbox" value="1.0" onchange="calcScore();" /></td>
</tr>
<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);">Malignancy (treatment for within 6 months, palliative)</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="input7" type="checkbox" value="1.0" onchange="calcScore();" /></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="3">Wells Score: <input name="result" type="text" style="border: white"/></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="3">Interpretation:<input name="longanswer" size="70" type="text" style="border: white"/></td>
</tr>
</tbody>
</table>
</form>
</form>
</includeonly>
</includeonly>

Latest revision as of 04:56, 4 November 2018