Skip to content

HTTPS clone URL

Subversion checkout URL

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