-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpgrecommended.html
474 lines (423 loc) · 17.5 KB
/
cpgrecommended.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CPG-Recommended</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;
}
.header {
background-color: #223C97;
color: white;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
height: 50px;
}
.header .logo {
display: flex;
align-items: center;
}
.header .logo img {
height: 55px;
margin-right: 10px;
}
.header .title {
font-size: 20px;
font-weight: normal;
white-space: nowrap;
}
.header .patient-info {
display: flex;
justify-content: flex-end;
width: 100%;
}
.header .patient-info .info-item {
margin-right: 10px;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.header .patient-info p {
margin: 0;
font-size: 14px;
}
.sub-header {
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
/* Adjusted Button Section */
.button-section {
padding: 5px 20px;
display: flex;
justify-content: left; /* Align buttons to the left */
gap: 5px; /* Gap between buttons for a cleaner layout */
margin-bottom: 10px;
}
.button-section a {
text-decoration: none; /* Remove underline from the link */
}
.button-section button {
padding: 3px 20px; /* Uniform padding for all buttons */
background-color: #223C97; /* Button background color */
color: white;
border: none;
border-radius: 20px; /* Smooth rounded corners */
font-size: 14px; /* Font size */
cursor: pointer;
transition: background-color 0.3s ease; /* Smooth hover effect */
}
/* Button hover effect for all four buttons */
.button-section button:hover {
background-color: #1A2F70; /* Slightly darker shade on hover */
}
.button-section button.active {
background-color: #1A2F70;
}
.btn-notification {
background-color: #223C97; /* Blue for buttons */
color: white; /* Text color */
border: none;
cursor: pointer;
border-radius: 20px;
padding: 2px 2px; /* Uniform padding for better control */
display: inline-block;
text-align: center;
font-size: 13px;
text-decoration: none;
width: 120px; /* Fixed width for all buttons */
box-sizing: border-box; /* Include padding and border in the width */
}
/* Hover effect for buttons */
.btn-notification:hover {
background-color: #4261CF;
}
.content {
display: flex;
height: calc(100vh - 115px);
}
.sidebar {
background-color: #F2F8FD;
width: 215px;
padding: 10px 0;
overflow-y: auto;
font-size: 13px;
font-weight: bold;
margin-top: 20px;
overflow: hidden;
margin-bottom: -5px;
}
.sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
.sidebar ul li {
padding: 8px 20px;
cursor: pointer;
color: #515151;
background-color: #F2F8FD;
transition: color 0.2s;
border-left: 3px solid transparent;
}
.sidebar ul li.active {
background-color: #F2F8FD;
font-weight: bold;
color: #223C97;
border-left: 3px solid #223C97;
}
.sidebar ul li:hover {
color: #223C97;
}
.main-content {
flex-grow: 1;
padding: 0;
overflow-y: auto;
background-color: white;
margin-left: 5px;
padding: 20px;
margin-top: 20px;
margin-right:5px;
margin-bottom: -5px;
}
.search-container {
display: flex;
align-items: center;
justify-content: flex-end; /* Align the search box to the right */
margin-bottom: 10px;
}
.search-label {
margin-right: 5px; /* Space between label and input */
font-size: 16px; /* Adjust font size */
}
.search-container input {
padding: 7px 8px;
width:200px;
border: 1px solid grey; /* Initial border */
border-radius: 3px;
font-size: 14px;
transition: border-color 0.3s ease, border-width 0.3s ease; /* Add smooth transition */
}
.search-container input:focus {
border-color: black; /* Thicker black border on focus */
border-width: 2px; /* Increase border width on focus */
outline: none; /* Remove default outline */
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
text-align: left;
padding: 8px;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
.clickable {
color: #223C97;
cursor: pointer;
text-decoration: none;
}
.clickable:hover {
text-decoration: underline;
}
.necessity-label {
margin-right: 10px;
font-weight: normal;
cursor: pointer;
}
.necessity-required {
color: #5CD416;
}
.necessity-not-required {
color: #FD1818;
}
.necessity-remind-me-later {
color: #223C97;
}
@media (max-width: 768px) {
.header {
flex-direction: column;
align-items: flex-start;
height: 60px;
padding: 10px;
}
.header .patient-info {
display: none;
}
.sidebar {
display: none;
}
.task-table th, .task-table td {
font-size: 10px;
}
.task-table .search-container input {
width: 100px;
font-size: 10px;
}
}
</style>
</head>
<body>
<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 class="active">CPG-RECOMMENDED</button></a>
<a href="promis-score.html"><button>PROMIS29-SCORE</button></a>
<a href="meld-score-ESLD.html"><button>ESLD-SCORING</button></a>
</div>
<div class="content">
<div class="sidebar">
<ul id="sidebarList">
<li class="active" onclick="filterTasks('all')" id="allBtn">ALL(<span id="allCount">4</span>)</li>
<li onclick="filterTasks('CONDITION/STATUS')" id="conditionBtn">CONDITION/STATUS(<span id="conditionCount">0</span>)</li>
<li onclick="filterTasks('ORDER SETS')" id="orderSetsBtn">ORDER SETS(<span id="orderSetsCount">0</span>)</li>
<li onclick="filterTasks('PATIENT CARE')" id="patientCareBtn">PATIENT CARE(<span id="patientCareCount">0</span>)</li>
<li onclick="filterTasks('NUTRITION SERVICES')" id="nutritionBtn">NUTRITION SERVICES(<span id="nutritionServicesCount">0</span>)</li>
<li onclick="filterTasks('CONTINUOUS INFUSIONS')" id="continuousInfusionsBtn">CONTINUOUS INFUSIONS(<span id="continuousInfusionsCount">0</span>)</li>
<li onclick="filterTasks('LABORATORY SERVICES')" id="laboratoryServicesBtn">LABORATORY SERVICES(<span id="laboratoryServicesCount">0</span>)</li>
<li onclick="filterTasks('RADIOLOGY SERVICES')" id="radiologyBtn">RADIOLOGY SERVICES(<span id="radiologyServicesCount">0</span>)</li>
<li onclick="filterTasks('CARDIOVASCULAR SERVICES')" id="cardiovascularBtn">CARDIOVASCULAR SERVICES(<span id="cardiovascularServicesCount">0</span>)</li>
<li onclick="filterTasks('PULMONARY SERVICES')" id="pulmonaryBtn">PULMONARY SERVICES(<span id="pulmonaryServicesCount">0</span>)</li>
<li onclick="filterTasks('SURGICAL PROCEDURES')" id="surgicalBtn">SURGICAL PROCEDURES(<span id="surgicalProceduresCount">0</span>)</li>
<li onclick="filterTasks('OTHER DEPARTMENTS')" id="otherDeptsBtn">OTHER DEPARTMENTS(<span id="otherDepartmentsCount">0</span>)</li>
<li onclick="filterTasks('MEDICAL SUPPLIES')" id="medicalSuppliesBtn">MEDICAL SUPPLIES(<span id="medicalSuppliesCount">0</span>)</li>
<li onclick="filterTasks('NON CATEGORIZED')" id="nonCategorizedBtn">NON CATEGORIZED(<span id="nonCategorizedCount">0</span>)</li>
</ul>
</div>
<div class="main-content">
<div class="tab-buttons-container">
<div class="search-container">
<label for="searchInput" class="search-label">Search:</label>
<input type="text" id="searchInput" onkeyup="searchTasks()">
</div>
</div>
<table class="table task-table">
<thead>
<tr>
<th>Task Name</th>
<th>Guideline</th>
<th>Necessity</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr data-category="CONDITION/STATUS">
<td>Administer IV Albumin</td>
<td><a href="viewcpg.html" class="btn-notification" >View</a></td>
<td>
<label class="necessity-label necessity-required">
<input type="radio" name="necessity-task1" value="Required" onclick="setNecessity(this, 'Required')"> Required
</label>
<label class="necessity-label necessity-not-required">
<input type="radio" name="necessity-task1" value="Not Required" onclick="setNecessity(this, 'Not Required')"> Not Required
</label>
<label class="necessity-label necessity-remind-me-later">
<input type="radio" name="necessity-task1" value="Remind Me Later" onclick="setNecessity(this, 'Remind Me Later')"> Remind Me Later
</label>
</td>
<td><a href="#" class="btn-notification">Order Now</a></td>
</tr>
<tr data-category="ORDER SETS">
<td>INR for coagulation</td>
<td><a href="viewcpg.html" class="btn-notification">View</a></td>
<td>
<label class="necessity-label necessity-required">
<input type="radio" name="necessity-task2" value="Required" onclick="setNecessity(this, 'Required')"> Required
</label>
<label class="necessity-label necessity-not-required">
<input type="radio" name="necessity-task2" value="Not Required" onclick="setNecessity(this, 'Not Required')"> Not Required
</label>
<label class="necessity-label necessity-remind-me-later">
<input type="radio" name="necessity-task2" value="Remind Me Later" onclick="setNecessity(this, 'Remind Me Later')"> Remind Me Later
</label>
</td>
<td><a href="#" class="btn-notification">Order Now</a></td>
</tr>
<tr data-category="CONDITION/STATUS">
<td>Hepatitis B vaccine</td>
<td><a href="viewcpg.html" class="btn-notification">View</a></td>
<td>
<label class="necessity-label necessity-required">
<input type="radio" name="necessity-task3" value="Required" onclick="setNecessity(this, 'Required')"> Required
</label>
<label class="necessity-label necessity-not-required">
<input type="radio" name="necessity-task3" value="Not Required" onclick="setNecessity(this, 'Not Required')"> Not Required
</label>
<label class="necessity-label necessity-remind-me-later">
<input type="radio" name="necessity-task3" value="Remind Me Later" onclick="setNecessity(this, 'Remind Me Later')"> Remind Me Later
</label>
</td>
<td><a href="#" class="btn-notification">Order Now</a></td>
</tr>
<tr data-category="CONTINUOUS INFUSIONS">
<td>ALT and AST levels</td>
<td><a href="viewcpg.html" class="btn-notification">View</a></td>
<td>
<label class="necessity-label necessity-required">
<input type="radio" name="necessity-task4" value="Required" onclick="setNecessity(this, 'Required')"> Required
</label>
<label class="necessity-label necessity-not-required">
<input type="radio" name="necessity-task4" value="Not Required" onclick="setNecessity(this, 'Not Required')"> Not Required
</label>
<label class="necessity-label necessity-remind-me-later">
<input type="radio" name="necessity-task4" value="Remind Me Later" onclick="setNecessity(this, 'Remind Me Later')"> Remind Me Later
</label>
</td>
<td><a href="#" class="btn-notification">Order Now</a></td>
</tr>
<!-- Add more rows as needed -->
</tbody>
</table>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script>
// Function to filter tasks based on category or tab selection
function filterTasks(category) {
// Normalize the category to match the ID format
var categoryId = category.replace(/ /g, '').toLowerCase() + 'Btn';
// Reset active state on all sidebar buttons
document.querySelectorAll('.sidebar ul li').forEach(function(li) {
li.classList.remove('active');
li.style.color = '#515151'; // Reset text color
li.style.borderLeft = '3px solid transparent'; // Reset border color
});
// Set active state on the clicked sidebar button
var activeButton = document.getElementById(categoryId);
if (activeButton) {
activeButton.classList.add('active');
activeButton.style.color = '#223C97'; // Set text color for active item
activeButton.style.borderLeft = '3px solid #223C97'; // Set border color for active item
} else {
console.error('No element with ID:', categoryId);
}
// Count and filter tasks based on the category
var rows = document.querySelectorAll('.task-table tbody tr');
var counts = { "ALL": 0 };
rows.forEach(function(row) {
var rowCategory = row.getAttribute('data-category').toUpperCase().replace(/ /g, '');
counts[rowCategory] = counts[rowCategory] || 0; // Initialize count if not set
if (category === 'ALL' || category.replace(/ /g, '') === rowCategory) {
row.style.display = ''; // Show row
counts[rowCategory]++;
counts["ALL"]++;
} else {
row.style.display = 'none'; // Hide row
}
});
// Update counts in the sidebar
for (var cat in counts) {
var countId = cat.toLowerCase() + 'Count';
var countElement = document.getElementById(countId);
if (countElement) {
countElement.innerText = counts[cat]; // Update count
}
}
}
document.addEventListener('DOMContentLoaded', function() {
// Add click event listeners to sidebar items
const sidebarListItems = document.querySelectorAll('.sidebar ul li');
sidebarListItems.forEach(item => {
item.addEventListener('click', function() {
var categoryText = this.id.replace('Btn', '').replace(/([A-Z])/g, ' $1').trim().toUpperCase();
filterTasks(categoryText);
});
});
filterTasks('ALL'); // Initialize by showing all tasks
});
</script>
</body>
</html>