-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathddta.html
357 lines (294 loc) · 10.5 KB
/
ddta.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!-- <%@ language="javascript"%> -->
<!DOCTYPE html>
<html lang="en-150">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> -->
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cosmo/bootstrap.min.css" media="all">--> <!--bootswatch-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.3.1/sandstone/bootstrap.min.css" media="all">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <!--google icons-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!--font awesome 20px-sm-->
<link href="/open-iconic/font/css/open-iconic-bootstrap.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-104312945-2', 'auto');
ga('send', 'pageview');
</script>
<script>
$(document).ready(function(){
$('#myTab li:eq(1) a').tab('show');
});
</script>
<script>
var pointmatrix = {
"Points": [
0,
2,
3,
4,
5,
6,
7,
8,
9,
10
],
"Risk": [
50,
68,
75,
82,
87,
90,
93,
95,
97,
98
],
"95% Risk Confidence Interval": [
"36 - 64",
"60 - 76",
"70 - 81",
"78 - 86",
"83 - 90",
"87 - 94",
"90 - 96",
"92 - 98",
"94 - 99",
"96 - 100"
]
}
//var points0 = "Points";
//var points = pointmatrix[points0];
var risk0 = "Risk";
var risk = pointmatrix[risk0];
var confi950 = "95% Risk Confidence Interval";
var confi95 = pointmatrix[confi950];
function totalDDTA() {
// POINTS
var dapt = parseFloat(document.getElementById("dapt").value);
var delay_pPCI = parseFloat(document.getElementById("delay_pPCI").value);
var timi = parseFloat(document.getElementById("timi").value);
var age_less_55 = parseFloat(document.getElementById("age_less_55").value);
totDDTA = dapt + delay_pPCI + timi + age_less_55;
document.getElementById("totDDTA").innerHTML = totDDTA;
// lookup mortality data
if(totDDTA > 0) {
var totDDTAlookup = totDDTA - 1; // correct lookup index because second element is 2 and must be 1 to be used as an index
} else {
var totDDTAlookup = totDDTA;
}
var numberRisk = Math.round( risk[totDDTAlookup] );
document.getElementById("numberRisk").innerHTML = "" + numberRisk + " % "; //"<h3>" + numberRisk + " % </h3>";
var numberconfi95 = confi95[totDDTAlookup];
document.getElementById("numberconfi95").innerHTML = "[" + numberconfi95 + "] % "; //"<h3> [" + numberconfi95 + "] % </h3>";
}
$(".progress-bar").animate({
width: "70%"
}, 2500);
</script>
<style>
.input-lg {
font-size: 30px;
}
.input {
font-size: 20px;
}
.font-sm {
font-size: 0.7em;
}
.nav-tabs > li > a{
color: #84a5ae;
}
.btn-danger:hover {
border-radius: 20px;
background-color: #b62f2f;
color: #48586a;
}
@media print {
.noPrint {
display:none;
}
}
/* progress bars */
.progress {
height: 40px;
/*
margin-bottom: 20px;
overflow: hidden;
background-color: #48586a !important;
border-radius: 4px;
box-shadow: none;
*/
}
.progress-bar .bg-info{
background-color: #48586a;
}
.progress-label {
float: left;
margin-left: 1em;
margin-right: 1em;
}
/*
.bg-warning {
/*background-color: #ffb700 !important;*/
background-color: #e6a400 !important;
}
.bg-danger {
/*background-color: #d41b32 !important;*/
background-color: #cb1a2f !important;
}
*/
</style>
<title>DDTA Risk Score</title>
</head>
<body>
<div id="intro" class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<h1> DDTA Risk Score <span class="fa fa-edit "></a></span></h1>
<h4> A simple score to select patients for manual thrombectomy in emergent percutaneous coronary interventions. </h4>
<hr>
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="miDACE" class="container-fluid" onclick="totalDDTA()">
<div class="row">
<div class="col-sm-12 col-md-6 text-center">
<!--<div class="card text-white bg-primary mb-3" >-->
<div class="btn btn-primary btn-lg btn-block" >
<div class="card-body">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-tint"></span>DAPT pretreatment </span>
<select class="form-control input-sm" id="dapt" name="dapte">
<option value="0" selected="selected"> <h5> No </h5> </option>
<option value="2" > <h5> Yes </h5> </option>
</select>
</div><!--EOF input-group-->
</div> <!--EOF form-group-->
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-hourglass"></span>Delay to pPCI </span>
<select class="form-control input-sm" id="delay_pPCI" name="delay_pPCIe">
<option value="0" selected="selected"> <h5> > 240 min </h5> </option>
<option value="2"> <h5> 120 - 240 min </h5> </option>
<option value="3"> <h5> < 120 min </h5> </option>
</select>
</div><!--EOF input-group-->
</div> <!--EOF form-group-->
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-heart"></span>TIMI improvement after wiring the lesion </span>
<select class="form-control input-sm" id="timi" name="timie">
<option value="0" selected="selected"> <h5> No </h5> </option>
<option value="2"> <h5> Yes </h5> </option>
</select>
</div><!--EOF input-group-->
</div> <!--EOF form-group-->
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span>Age < 55 years </span>
<select class="form-control input-sm" id="age_less_55" name="age_less_55e">
<option value="0" selected="selected"> <h5> No </h5> </option>
<option value="3"> <h5> Yes </h5> </option>
</select>
</div><!--EOF input-group-->
</div> <!--EOF form-group-->
</div> <!--EOF card-body-->
</div> <!--EOF well sm-->
<br>
</div> <!--EOF column-->
<!--RESULTS COLUMN -->
<div class="col-sm-12 col-md-6 text-center" >
<div id="results" class="container-fluid">
<!--total points -->
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="card text-white bg-warning mb-3">
<div class="card-body">
<h3> Points = <span id="totDDTA"> </span> <span id=""> </span></h3>
</div> <!--EOF card-body-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="card text-primary border-warning mb-3">
<div class="card-body">
<h3> Prob. successful MT: <span id="numberRisk"> </span> <span id=""> </span></h3>
</div> <!--EOF card-body-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="card text-primary border-warning mb-3">
<div class="card-body">
<h3> 95% CI: <span id="numberconfi95"> </span> <span id=""> </span></h3>
</div> <!--EOF card-body-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container results-->
</div> <!--EOF column results-->
</div> <!--EOF row-->
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="card" >
<div class="card-body">
<h5>Abbreviations: </h5>
<ul>DAPT=Dual antiplatelet therapy.</ul>
<ul>MT=Manual thrombectomy.</ul>
<ul>pPCI=primary percutaneous coronary intervention.</ul>
<ul>TIMI="Thrombolysis In Myocardial Infarction" score.</ul>
</div> <!--EOF card-body-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="contact" class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="card-body">
<h4> Contact</h4>
<p><span class="fa fa-user-md"></span> Aurora Baluja-González <sup>1,4</sup>,
Alberto Cordero-Fort <sup>2,3</sup>,
Moisés Rodríguez-Mañero <sup>2,4</sup>.
</p>
<p><span class="fa fa-hospital-o"></span> Servicio de Anestesiología y Reanimación<sup>1</sup>,
Servicio de Cardiología<sup>2</sup>.
</p>
<p><span class="glyphicon glyphicon-map-marker"></span>
Hospital Universitario de San Juan, Alicante <sup>3</sup>
Hospital Clínico Universitario, Santiago de Compostela<sup>4</sup>,
España
</p>
<p><h3>
</h3>
</p>
</div> <!--EOF card-body-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="license" class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<h3> </h3>
<hr>
<p style="color:#bfbfbf"><span class="fa fa-linux" style="color:#bfbfbf"></span>
A. Baluja, 2019. License - <a href="https://github.com/aurora-mareviv" target="blank" style="color:#bfbfbf">Code</a>: GNU-GPL v3.
<a href="http://getbootstrap.com/" target="blank" style="color:#bfbfbf">Bootstrap CSS</a>,
<a href="https://bootswatch.com/" target="blank" style="color:#bfbfbf">Bootswatch</a>: MIT.
</p>
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
</body>
</html>