-
Notifications
You must be signed in to change notification settings - Fork 0
/
fib4-score-ESLD.html
709 lines (629 loc) · 21.3 KB
/
fib4-score-ESLD.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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ESLD-Scoring</title>
<link rel="icon" sizes="256x256" href="images/liver.png" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
background-color: #E4E4E4;
color: #000;
overflow: hidden;
}
.app-container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
overflow: hidden;
}
/* Header Container */
.header {
background-color: #223C97;
color: white;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
height: 50px;
}
/* Logo Section */
.header .logo {
display: flex;
align-items: center;
}
/* Logo Image */
.header .logo img {
height: 55px;
margin-right: 10px;
}
/* Application Title */
.header .title {
font-size: 20px;
font-weight: normal;
white-space: nowrap;
}
/* Patient Information Section */
.header .patient-info {
display: flex;
justify-content: flex-end;
width: 100%;
}
/* Individual Info Items */
.header .patient-info .info-item {
margin-right: 10px;
display: flex;
flex-direction: column;
align-items: flex-end;
}
/* Paragraphs within Info Items */
.header .patient-info p {
margin: 0;
font-size: 14px;
}
/* New Button Section Below the Header */
.button-section {
background-color: #F1F1F1;
padding: 5px 20px;
display: flex;
justify-content: left;
gap: 5px;
}
.button-section button {
padding: 3px 20px;
background-color: #223C97;
color: white;
border: none;
border-radius: 20px;
font-size: 14px;
cursor: pointer;
}
.button-section button:hover {
background-color: #1A2F70; /* Slightly darker shade on hover */
}
.button-section button.active {
background-color: #1A2F70; /* Optionally change background color */
}
.main-content {
display: flex;
flex: 1;
background-color: #F1F1F1;
border-radius: 0 0 10px 10px;
overflow: hidden;
}
.sidebar {
background-color: #F2F8FD;
padding: 5px;
width: 365px;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0);
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow-y: auto;
margin-top: 30px;
height: 92%;
}
.sidebar h2 {
font-size: 20px;
margin-bottom: 10px;
color: #333;
font-weight: bold;
}
.sidebar a,
.sidebar h2 {
text-decoration: none;
color: #515151; /* Default color */
padding: 10px 5px;
margin: 0px 0;
display: block;
border-left: 3px solid transparent;
font-size: 13px;
font-weight: bold; /* Make all options bold */
cursor: pointer; /* Make the section header clickable */
}
.sidebar a.active,
.sidebar h2.active {
color: #223C97; /* Active color */
border-left: 3px solid #223C97;
}
.content {
background-color: #ffffff;
flex-grow: 1;
margin-top: 30px; /* Margin around the content for some spacing */
margin-left: 5px;
margin-right: 5px;
height:92%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow-y: hidden;
}
h3 {
font-size: 16px;
font-weight: bold;
margin-bottom: 2px;
color: #000;
margin-top: -10px;
}
h4 {
font-size: 14px;
font-weight: bold;
margin-top: 5px;
}
.top-section {
display: flex;
justify-content: space-between;
}
.top-section .left-top-section {
width: 40%;
padding-right: 20px;
border-right: 1px solid #ddd;
}
.top-section .right-top-section {
width: 60%;
padding-left: 20px;
margin-top: 30px;
}
.top-section .right-top-section .Fib4-score-info {
font-size: 14px;
font-weight: bold;
margin-bottom: 5px;
}
.bottom-section {
display: flex;
justify-content: space-between;
margin-top: 15px;
}
.bottom-section .left-bottom-section {
width: 60%;
padding-right: 20px;
}
.bottom-section .right-bottom-section {
width: 40%;
padding-left: 20px;
}
table {
background-color: #fff;
width: 100%; /* Slightly reduced width */
border-collapse: collapse;
margin-bottom: -5px;
font-size: 12px;
}
table,
th,
td {
border: 1px solid #000000;
padding: 4px 8px;
}
th,
td {
text-align: center;
}
th {
background-color: #FFFFFF;
font-weight: bold;
}
.chart-container {
width: 100%; /* Adjust width as needed */
padding: 10px; /* For some padding around the chart */
border: 2px solid #ddd; /* Pink border, you can change the color as needed */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: adds shadow for depth */
border-radius: 5px; /* Rounded corners */
margin: 20px auto; /* Centering the chart container */
background-color: transparent; /* Ensuring the background is transparent */
height: 355px;
}
.canvas {
width: 100% !important; /* Ensures canvas fills the container */
height: 100% !important; /* Ensures canvas fills the container */
}
.date-range {
margin-top: -15px;
display: flex;
align-items: center;
}
.date-range label {
margin-right: 5px;
font-size: 14px;
font-weight: bold;
}
.date-range input[type="date"] {
padding: 5px;
margin-right: 10px;
border: 1px solid #ccc;
border-radius: 3px;
font-size: 14px;
}
.date-range button {
padding: 5px 15px;
background-color: #223C97;
color: #fff;
border: none;
border-radius: 3px;
cursor: pointer;
font-size: 14px;
}
.results p {
margin: 10px 0;
font-size: 14px;
}
.interpretation {
margin-top: 0px;
font-size: 13px;
background-color: #ffffff;
padding: 10px;
border-radius: 5px;
border: 1px solid #ddd;
margin-left: 0px;
}
.Fib4-table-wrapper {
display: flex;
justify-content: space-between;
}
.Fib4-table-wrapper table {
width: 95%;
}
.results {
margin-top: 5px;
}
.results-table-wrapper {
margin-top: 5px;
margin-bottom: 5px;
}
@media (max-width: 768px) {
/* Adjust header for smaller screens */
.header {
flex-direction: column;
align-items: flex-start;
height: 60px;
padding: 10px;
}
.header .logo {
margin-bottom: 10px;
}
.header .patient-info {
display: none;
}
/* Move Sidebar to the Top */
.sidebar {
width: 100%;
height: auto;
display: flex; /* Change to flex for horizontal layout */
flex-direction: row; /* Horizontal layout */
overflow-x: auto; /* Enable horizontal scrolling */
overflow-y: hidden; /* Disable vertical scrolling */
white-space: nowrap; /* Prevent line wrapping */
padding: 60px 0; /* Adjust padding */
border-bottom: 1px solid #ddd; /* Add bottom border for separation */
box-shadow: none; /* Remove box shadow */
}
.sidebar a,
.sidebar h2 {
text-decoration: none; /* Ensure no underline or strike-through */
color: #515151; /* Default color */
padding: 5px 5px;
margin: 0;
display: block;
border-left: 3px solid transparent;
border-bottom: none; /* Ensure no default bottom border */
font-size: 13px;
font-weight: bold; /* Make all options bold */
cursor: pointer; /* Make the section header clickable */
}
.sidebar a.active,
.sidebar h2.active {
color: #223C97; /* Active color */
border-left: none #223C97; /* Consistent left border for active state */
border-bottom: none; /* Ensure no bottom border to prevent double lines */
text-decoration: none; /* Ensure no text decoration like underline */
}
.sidebar a.active::after,
.sidebar h2.active::after {
content: '';
display: block;
width: 100%;
height: 3px; /* Line thickness */
background-color: #223C97; /* Line color */
margin-top: 2px; /* Adjust margin as needed */
}
/* Adjust Sidebar Content for Horizontal Layout */
.sidebar ul {
display: flex; /* Use flexbox for horizontal list */
padding: 0;
margin: 0;
list-style: none;
width: 100%;
}
.sidebar ul li {
display: inline-block; /* Display list items inline */
}
/* Adjust main content for smaller screens */
.main-content {
flex-direction: column; /* Stack content vertically */
padding: 10px; /* Adjust padding */
margin: 0; /* Remove margin */
}
.content {
overflow: auto;
}
.top-section, .bottom-section {
flex-direction: column; /* Stack sections vertically */
}
.top-section .left-top-section,
.top-section .right-top-section,
.bottom-section .left-bottom-section,
.bottom-section .right-bottom-section {
width: 100%; /* Full width */
padding: 0; /* Remove padding */
margin: 10px 0; /* Add margin between sections */
}
.Fib4-table-wrapper {
flex-direction: column; /* Stack tables vertically */
}
.Fib4-table-wrapper table {
width: 100%; /* Full width */
margin-bottom: 20px; /* Add spacing between tables */
}
/* Adjust table within results section */
.results-table-wrapper {
margin: 0;
width: 100%; /* Full width */
}
.date-range {
flex-direction: column; /* Stack date inputs vertically */
align-items: flex-start;
}
.date-range input[type="date"], .date-range button {
width: 100%; /* Full width for inputs */
margin-bottom: 10px; /* Add margin between elements */
}
.chart {
width: 100%;
height: 330px;
background-color:;
border: 1px solid #ddd;
border-radius: 5px;
position: relative;
padding: 10px;
box-sizing: border-box; /* Includes padding and border in the width and height */
}
.chart .chart-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 16px;
color: #333;
}
/* Other necessary adjustments */
.sub-header .buttons button,
.sub-header .ESLD-Scoring-btn {
width: 100%; /* Full width for buttons */
padding: 10px 5px; /* Adjust padding */
}
}
</style>
</head>
<body>
<div class="app-container">
<div class="header">
<div class="logo">
<!-- Wrap the image with an anchor tag to make it clickable -->
<a href="index.html">
<img src="images/liver.png" alt="Logo">
</a>
<div class="title">SMARTLiver</div>
</div>
<div class="patient-info">
<div class="info-item">
<p><strong>Name:</strong> Jessica Taylor</p>
<p><strong>Sex:</strong> Female</p>
</div>
<div class="info-item">
<p><strong>MRN:</strong> 65374683</p>
<p><strong>Age:</strong> 45</p>
</div>
</div>
</div>
<div class="button-section">
<a href="labbased.html"><button>LAB-BASED</button></a>
<a href="cpgrecommended.html"><button>CPG-RECOMMENDED</button></a>
<a href="promis-score.html"><button>PROMIS29-SCORE</button></a>
<a href="meld-score-ESLD.html"><button class="active">ESLD-SCORING</button></a>
</div>
<div class="main-content">
<div class="sidebar">
<a href="meld-score-ESLD.html">MELD SCORE (MODEL FOR END-STAGE LIVER DISEASE)</a>
<a href="ctp-score-ESLD.html">CHILD-TURCOTTE-PUGH (CTP) SCORE</a>
<a href="fib4-score-ESLD.html" class="active">FIBROSIS-4 INDEX (FIB-4)</a>
<a href="apri-score.html">APRI (AST TO PLATELET RATIO INDEX)</a>
<a href="liverstiff-score.html">LIVER STIFFNESS</a>
<a href="NAFLD-score.html">NAFLD (NON-ALCOHOLIC FATTY LIVER DISEASE) FIBROSIS SCORE</a>
</div>
<div class="content">
<div id="fib4-score" class="content-section"> <!-- Show MELD-Na score section by default -->
<div class="top-section">
<div class="left-top-section">
<h3>Fibrosis-4 (FIB4) Index for Liver Fibrosis</h3>
<table>
<tr>
<th>Parameter</th>
<th>Normal Range</th>
</tr>
<tr>
<td>Age</td>
<td>Any age (years)</td>
</tr>
<tr>
<td>AST (Aspartate Aminotransferase)</td>
<td>15 - 41 U/L</td>
</tr>
<tr>
<td>ALT (Alanine Aminotransferase)</td>
<td>1 - 35 U/L</td>
</tr>
<tr>
<td>Platelet count</td>
<td>150 - 350 × 10³/µL</td>
</tr>
</table>
</div>
<div class="right-top-section">
<table>
<tr>
<th>FIB-4 Score</th>
<th>Interpretation</th>
</tr>
<tr>
<td>< 1.45</td>
<td>Low likelihood of significant fibrosis (F0-F1); Normal.</td>
</tr>
<tr>
<td>1.45 - 3.25</td>
<td>Intermediate risk of fibrosis (F2);Further evaluation recommended.</td>
</tr>
<tr>
<td>> 3.25</td>
<td>High likelihood of advanced fibrosis (F3-F4); Abnormal.</td>
</tr>
</table>
</div>
</div>
<div class="bottom-section">
<div class="left-bottom-section">
<h4>Date</h4>
<div class="date-range">
<label for="from">From</label>
<input type="date" id="from">
<label for="to">To</label>
<input type="date" id="to">
<button>Done</button>
</div>
<h4>Patient's Clinical Values for FIB-4 Score Calculation</h4>
<div class="results-table-wrapper">
<table>
<tr>
<th>Parameter</th>
<th>Values</th>
</tr>
<tr>
<td>Age</td>
<td>55 years</td>
</tr>
<tr>
<td>AST (Aspartate Aminotransferase)</td>
<td>80 U/L</td>
</tr>
<tr>
<td>ALT (Alanine Aminotransferase)</td>
<td>65 U/L</td>
</tr>
<tr>
<td>Platelet count</td>
<td>150 × 10^9/L</td>
</tr>
</table>
</div>
<div class="results">
<p><strong>Results</strong></p>
<p>FIB-4 Score: 3.64</p>
</div>
<div class="interpretation">
<strong>Interpretation:</strong> With a FIB-4 score of 3.64, this patient falls into the > 3.25 range, suggesting a high likelihood of advanced liver fibrosis (F3-F4). This is considered abnormal, and further diagnostic workup or specialist referral is typically recommended.
</div>
</div>
<div class="chart-container">
<canvas id="fib4chart"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels"></script> <!-- Include the DataLabels plugin -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const ctx = document.getElementById('fib4chart').getContext('2d');
const fib4Chart = new Chart(ctx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'FIB-4 Score',
data: [2, 3.5, 3.64, 2.5, 3, 2.75, 3, 3.2, 3.5, 3.6, 3.2, 3], // Example scores
borderColor: 'rgb(75, 192, 192)', // Line color
backgroundColor: 'rgba(75, 192, 192, 0.5)', // Fill color
pointBackgroundColor: 'rgb(75, 192, 192)', // Point color
pointBorderColor: '#fff',
pointHoverBackgroundColor: '#fff',
pointHoverBorderColor: 'rgb(75, 192, 192)'
}]
},
options: {
plugins: {
legend: {
labels: {
font: {
size: 14
}
}
},
tooltip: {
enabled: true,
mode: 'index',
intersect: false,
callbacks: {
label: function(context) {
return context.dataset.label + ': ' + context.parsed.y + ' points';
}
}
},
datalabels: {
anchor: 'end', // Place the label at the end of the point
align: 'top', // Align the label at the top of the point
color: 'black', // Label color
font: {
weight: 'bold'
},
formatter: function(value) {
return value; // Show the value at each point
}
}
},
scales: {
y: {
beginAtZero: true,
min: 0,
max: 5, // Adjusting the max value of the y-axis to 5
ticks: {
stepSize: 1 // Adjusting step size to 1
},
title: {
display: true,
text: 'FIB-4 Score' // Y-axis title
}
},
x: {
title: {
display: true,
text: 'Month' // X-axis title
}
}
},
responsive: true,
maintainAspectRatio: false
},
plugins: [ChartDataLabels] // Add the DataLabels plugin
});
});
</script>
</body>
</html>