-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixed.html
213 lines (202 loc) · 5.82 KB
/
fixed.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SFAR's Thoracoscore Calculator</title>
<meta name="description" content="The Société Française d'Anesthésie et de Réanimation original Thoracoscore calculator.">
<script language=javascript>
function CalcAGE(form) {
form.zage.value = form.age[form.age.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcSEX(form) {
form.zsex.value = form.sex[form.sex.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcASA(form) {
form.zasa.value = form.asa[form.asa.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcPERFORMANCE(form) {
form.zperformance.value = form.performance[form.performance.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcDYSPNEA(form) {
form.zdyspnea.value = form.dyspnea[form.dyspnea.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcPRIORITY(form) {
form.zpriority.value = form.priority[form.priority.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcPROCEDURE(form) {
form.zprocedure.value = form.procedure[form.procedure.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcDIAGNOSIS(form) {
form.zdiagnosis.value = form.diagnosis[form.diagnosis.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcCOMORBIDITY(form) {
form.zcomorbidity.value = form.comorbidity[form.comorbidity.selectedIndex].value
form.zmort.value = CalcMort(form)
}
function CalcMort(form) {
z = eval(form.zage.value)
z = z + eval(form.zsex.value)
z = z + eval(form.zasa.value)
z = z + eval(form.zperformance.value)
z = z + eval(form.zdyspnea.value)
z = z + eval(form.zpriority.value)
z = z + eval(form.zprocedure.value)
z = z + eval(form.zdiagnosis.value)
z = z + eval(form.zcomorbidity.value)
z = z -7.3737
z = Math.exp(z) / (1 + Math.exp(z))
z = "Predict.Death Rate = "+Fmt(100 * z) + " %"
form.zmort.value= z
return z
}
function Fmt(x) {
return Math.round(x * 100) / 100;
}
</script>
</head>
<body>
<header>
<h2>Patched SFAR Thoracoscore calculator</h2>
<p>Example implementation of a patched version of Société Française d'Anesthésie et de Réanimation's original Thoracoscore calculator.</p>
</header>
<div role="main">
<form action="" method="post">
<table>
<tbody>
<tr>
<td>Variables</td>
<td>Values</td>
<td>Beta</td>
</tr>
<tr>
<td>Age</td>
<td>
<select name="age" onChange="CalcAGE(this.form)">
<option value="0"> < 55</option>
<option value="0.7679">55 - 65</option>
<option value="1.0073">> 65</option>
</select>
</td>
<td>
<input type="text" name="zage" value="0">
</td>
</tr>
<tr>
<td>Sex</td>
<td>
<select name="sex" onChange="CalcSEX(this.form)">
<option value="0">Female</option>
<option value="0.4505">Male</option>
</select>
</td>
<td>
<input type="text" name="zsex" value="0">
</td>
</tr>
<tr>
<td>ASA Classification</td>
<td>
<select name="asa" onChange="CalcASA(this.form)">
<option value="0"><= 2</option>
<option value="0.6057">>= 3</option>
</select>
</td>
<td>
<input type="text" name="zasa" value="0">
</td>
</tr>
<tr>
<td>Performance Status Classification</td>
<td>
<select name="performance" onChange="CalcPERFORMANCE(this.form)">
<option value="0"><= 2</option>
<option value="0.689">>= 3</option>
</select>
</td>
<td>
<input type="text" name="zperformance" value="0">
</td>
</tr>
<tr>
<td>Dyspnoea Score</td>
<td>
<select name="dyspnea" onChange="CalcDYSPNEA(this.form)">
<option value="0"><= 2</option>
<option value="0.9075">>= 3</option>
</select>
</td>
<td>
<input type="text" name="zdyspnea" value="0">
</td>
</tr>
<tr>
<td>Priority of Surgery</td>
<td>
<select name="priority" onChange="CalcPRIORITY(this.form)">
<option value="0">Elective</option>
<option value="0.8443">Urgent/Emergency</option>
</select>
</td>
<td>
<input type="text" name="zpriority" value="0">
</td>
</tr>
<tr>
<td>Procedure</td>
<td>
<select name="procedure" onChange="CalcPROCEDURE(this.form)">
<option value="0">Other</option>
<option value="1.2176">Pneumonectomy</option>
</select>
</td>
<td>
<input type="text" name="zprocedure" value="0">
</td>
</tr>
<tr>
<td>Diagnosis Group</td>
<td>
<select name="diagnosis" onChange="CalcDIAGNOSIS(this.form)">
<option value="0">Benign</option>
<option value="1.2423">Malignant</option>
</select>
</td>
<td>
<input type="text" name="zdiagnosis" value="0">
</td>
</tr>
<tr>
<td>Comorbidity Score</td>
<td>
<select name="comorbidity" onChange="CalcCOMORBIDITY(this.form)">
<option value="0">0</option>
<option value="0.7447"><= 2</option>
<option value="0.9065">>= 3</option>
</select>
</td>
<td>
<input type="text" name="zcomorbidity" value="0">
</td>
</tr>
<tr>
<td>
<input type="reset" value="Clear">
</td>
<td>Thoracoscore: <input type="text" name="zmort" value="0" size="30"></td>
</tr>
</tbody>
</table>
</form>
</div>
<footer>
</footer>
</body>
</html>