PE Risk Calculator
Well's Criteria. Contributed by Dr. David Page.
PERisk.html
—
HTML,
10Kb
File contents
<html>
<title>PE</title>
<head>
<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: left;
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 scipt---------->
<!-- 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 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);
i += getCheckedValue(document.FormName.Q6);
i += getCheckedValue(document.FormName.Q7);
document.FormName.Score.value = i;
if (i<4){
document.getElementById("low").style.background='green';
document.getElementById("moderate").style.background='white';
document.getElementById("high").style.background='white';
document.getElementById("low1").style.background='green';
document.getElementById("moderate1").style.background='white';
document.getElementById("high1").style.background='white';
}
else if (i>=4 && i<=12){
document.getElementById("low").style.background='white';
document.getElementById("moderate").style.background='pink';
document.getElementById("high").style.background='white';
document.getElementById("low1").style.background='white';
document.getElementById("moderate1").style.background='pink';
document.getElementById("high1").style.background='white';
}
else if (i>12){
document.getElementById("low").style.background='white';
document.getElementById("moderate").style.background='white';
document.getElementById("high").style.background='red';
document.getElementById("low1").style.background='white';
document.getElementById("moderate1").style.background='white';
document.getElementById("high1").style.background='red';
}
}
</script>
</head>
<body>
<form method="post" action="" name="FormName">
<p class="title">
Well's Criteria for assessment of Pretestest Probability for Pulmonary Embolism
</p>
<div name="demographics">
<table width="700">
<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" type="text" oscarDB=age>
</tr>
</table>
</div>
<br>
<div name="Questionnaire">
<table width="700">
<tr>
<td class="QuestionHeading" width=60%>Criteria</u>:</td>
<td class="AnswerHeading" width=20%>Yes</td>
<td class="AnswerHeading" width=20%>No</td>
</tr>
<tr class="even">
<td class="question"><p class="normal">Suspected DVT </p></td>
<td class="answer"><input type="radio" name="Q1" value="6"></td>
<td class="answer"><input type="radio" name="Q1" value="0"></td>
</tr>
<tr class="even">
<td class="question"><p class="normal">An alternative diagnosis is less likely than PE</p></td>
<td class="answer"><input type="radio" name="Q2" value="6"></td>
<td class="answer"><input type="radio" name="Q2" value="0"></td>
</tr>
<tr class="even">
<td class="question"><p class="normal">Heart rate >100 beats per minute</p></td>
<td class="answer"><input type="radio" name="Q3" value="3"></td>
<td class="answer"><input type="radio" name="Q3" value="0"></td>
</tr>
<tr class="even">
<td class="question"><p class="normal">Immobilization or surgery in the previous four weeks</p></td>
<td class="answer"><input type="radio" name="Q4" value="3"></td>
<td class="answer"><input type="radio" name="Q4" value="0"></td>
</tr>
<tr class="even">
<td class="question"><p class="normal">Previuos DVT or PE</p></td>
<td class="answer"><input type="radio" name="Q5" value="3"></td>
<td class="answer"><input type="radio" name="Q5" value="0"></td>
</tr>
<tr class="even">
<td class="question"><p class="normal">Hemoptysis</p></td>
<td class="answer"><input type="radio" name="Q6" value="2"></td>
<td class="answer"><input type="radio" name="Q6" value="0"></td>
</tr>
<tr class="even">
<td class="question"><p class="normal">Malignancy (on treatment, treated in the past six months or palliative).</p></td>
<td class="answer"><input type="radio" name="Q7" value="2"></td>
<td class="answer"><input type="radio" name="Q7" value="0"></td>
</tr>
</table>
<br>
<table width="700">
<tr>
<td><input type="button" onclick="totalScore()" value="Score:"></td>
<td><input type="text" name="Score" size="10" value=""></td>
</tr>
</table>
</div>
<br>
<br>
<div name="Application" class="DoNotPrint">
<table width="700">
<tr>
<td class="QuestionHeading" width=20%>Score range</u>:</td>
<td class="AnswerHeading" width=20%>Mean probability of PE,%</td>
<td class="AnswerHeading" width=20%>% with this score</td>
<td class="AnswerHeading" width=20%>Interpretation of risk</td>
</tr>
<tr id = "low">
<td class="even" colspan="1"><4 points</td>
<td class="even" colspan="1">3.6</td>
<td class="even" colspan="1">40%</td>
<td class="even" colspan="1">Low</td>
</tr>
<tr id="moderate">
<td class="even" colspan="1">4 to 12 points</td>
<td class="even" colspan="1">20.5</td>
<td class="even" colspan="1">53%</td>
<td class="even" colspan="1">Moderate</td>
</tr>
<tr id="high">
<td class="even" colspan="1"> >12 points</td>
<td class="even" colspan="1">66.7</td>
<td class="even" colspan="1">7%</td>
<td class="even" colspan="1">High</td>
</tr>
</table>
<br>
<br>
</div>
<div name="Recommendation" class="DoNotPrint">
<table width="700">
<tr>
<td class="heading1" colspan="2">Recommendations:</td>
</tr>
<tr id = "low1">
<td>Low Pretest Probability for PE: Do D-Dimer and if negative can be used to exclude PE.</td>
</tr>
<tr id = "moderate1" >
<td>Moderate Probability for PE: Do D-Dimer. If positive go onto further imaging. If negative consider going onto imaging (Spiral CT or CT Pulmonary Angio).</td>
</tr>
<tr id = "high1" >
<td>High Probability for PE: Do D-Dimer and regardless of result needs CT Pulmonary Angio (87% sensitive). If both are negative, consider bilateral leg dopplers.</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>

