-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport.html
More file actions
527 lines (494 loc) · 23.1 KB
/
report.html
File metadata and controls
527 lines (494 loc) · 23.1 KB
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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="img/Logo.png" type="image/png">
<link rel="stylesheet" href="main.css">
<title>검사 결과</title>
</head>
<body class="pdf-body">
<!-- 닫기, 인쇄, PDF 저장 버튼 -->
<div class="pdf-button-container">
<button class="download-button" onclick="window.close()"><img src="img/x.svg">닫기</button>
<button class="print-button" onclick="window.print()"><img src="img/printer.svg">인쇄하기</button>
</div>
<!-- 페이지 컨테이너 -->
<div class="pdf-container">
<div class="pdf-page pdf-active" id="pdf-page1">
<div class="pdf-header-container">
<div class="pdf-header2container">
<div class="pdf-header2sub">자폐스펙트럼장애 진단</div>
<div class="pdf-header2main">결과 보고서</div>
</div>
<div class="pdf-header1">
<div class="pdf-header-container-left">
<div class="pdf-label">검사기관명</div>
<div class="pdf-label-content">ㅇㅇㅇㅇ병원</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">주소</div>
<div class="pdf-label-content">서울특별시 강남구 xx로 123</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">연락처</div>
<div class="pdf-label-content">02-123-3455</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">담당의사</div>
<div class="pdf-label-content">김의사</div>
</div>
</div>
</div>
<div class="pdf-content">
<div class="pdf-title">1. 환자 정보</div>
<div class="report-table-container">
<table class="report-table">
<tr>
<th>이름</th>
<td class="patient-info-cell" colspan="2">Rechalrkdj rjtwirewwekj G sdlfkjwlekj Geljslkefjskldjf</td>
<th>성별</th>
<td>남</td>
<th>나이</th>
<td>19M</td>
<th colspan="2">생일</th>
<td>2024.03.01</td>
</tr>
<tr>
<th>ID</th>
<td colspan="4">q19898238102983093850938509183094810293810</td>
<th colspan="2">평가일</th>
<td colspan="2">2025년 1월 29일</td>
<th>평가도구</th>
<td>EATS v1.0</td>
</tr>
</table></div>
<div class="pdf-title">2. 진단 결과 요약 : <span class="result-value-simple negative">자폐스펙트럼장애(ASD) 음성</span><span class="result-value-simple positive">자폐스펙트럼장애(ASD)양성</span></div>
<div class="graph-area" style="max-height: 300px; overflow: hidden; display: flex; flex-direction: column;">
<p style="font-size: 18px; text-align: center; margin-block-start: 0; margin-block-end: 0;">
AOI Vacancy Count Percentage* (%)
</p>
<div style="flex: 1; min-height: 0;">
<canvas id="aoiVacancyChart"></canvas>
</div>
<p id="aoiSummaryText" style="font-size: 16px; text-align: center; margin-block-end: 0;"></p>
</div>
<div class="report-desc">*AVC(AOI Vacancy count percentage) 수치가 높게 나올수록 ASD일 가능성이 높다는 의미</div>
<div class="pdf-title">3. 진단 내역</div>
<div class="report-table-container">
<table class="report-table">
<tr>
<th></th>
<th colspan="2">Video 1</th>
<th>Video 2</th>
</tr>
<tr>
<th>AOI<br>(관심영역)</th>
<td><img src="img/eye1.png"></td>
<td><img src="img/lips1.png"></td>
<td><img src="img/attention1.png"></td>
</tr>
<tr>
<th>측정 내용</th>
<td colspan="2">- 눈맞춤<br>- 마음이론 (Theory of Mind)<br>- 사회성<br>- 초기 언어발달</td>
<td>- 공동주의 (Joint Attention)<br>- 사회적 의사소통 능력</td>
</tr>
</table></div>
<div class="report-desc" style="text-align: left; page-break-inside: avoid; box-shadow: none;">*PCT/US 2023 / 08 2298</div>
</div>
</div>
<div class="pdf-page" id="pdf-page2">
<div class="pdf-header-container">
<div class="pdf-header2container">
<div class="pdf-header2sub">V1 상세 결과</div>
<div class="pdf-header2main">Face Speaking</div>
</div>
<div class="pdf-header1">
<div class="pdf-header-container-left">
<div class="pdf-label">검사기관명</div>
<div class="pdf-label-content">ㅇㅇㅇㅇ병원</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">주소</div>
<div class="pdf-label-content">서울특별시 강남구 xx로 123</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">연락처</div>
<div class="pdf-label-content">02-123-3455</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">담당의사</div>
<div class="pdf-label-content">김의사</div>
</div>
</div>
</div>
<div class="pdf-content">
<div class="pdf-title">1. AOI* 세부지표</div>
<div class="report-table-container">
<table class="report-table">
<tr>
<th rowspan="2">Fixation</th>
<th>Total count</th>
<td>623</td>
</tr>
<tr>
<th>%</th>
<td>89.8%</td>
</tr>
<tr></tr>
<th rowspan="2">Saccade</th>
<th>Total count</th>
<td>71</td>
</tr>
<tr>
<th>%</th>
<td>4.7%</td>
</tr>
<tr></tr>
<th rowspan="5">Switching</th>
<th>In to In</th>
<td>3</td>
</tr>
<tr></tr>
<th>In to Out</th>
<td>1</td>
</tr>
<tr>
<th>Out to Out</th>
<td>2</td>
</tr>
<tr>
<th>Out to In</th>
<td>1</td>
</tr>
<tr>
<th rowspan="2">Vacancy</th>
<th>AVC%</th>
<td>4.7%</td>
</tr>
<tr>
<th>Risk Level</th>
<td>Low</td>
</tr>
</table></div>
<div class="report-desc">*AOI (Area of Interest, 관심자극)</div>
<div class="pdf-title">2. 자극 분석</div>
<div class="minimal-table-container">
<table class="minimal-table">
<tr>
<th>V1-1</th>
</tr>
<tr>
<td><img src="img/v1-1.png"></td>
</tr>
</table>
</div>
<div class="pdf-title">3. Phenotype 결과</div>
<div class="report-box">
<div class="report-box-1">평균 AOI 반응성이 89.8%, SACCADE 4.7%, AVC 4.7%로</div>
<div class="report-box-2">전반적인 ASD Risk Level은 낮은 것으로 보임.</div>
</div>
</div></div>
<div class="pdf-page" id="pdf-page3">
<div class="pdf-header-container">
<div class="pdf-header2container">
<div class="pdf-header2sub">V2 상세 결과</div>
<div class="pdf-header2main">Tablet</div>
</div>
<div class="pdf-header1">
<div class="pdf-header-container-left">
<div class="pdf-label">검사기관명</div>
<div class="pdf-label-content">ㅇㅇㅇㅇ병원</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">주소</div>
<div class="pdf-label-content">서울특별시 강남구 xx로 123</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">연락처</div>
<div class="pdf-label-content">02-123-3455</div>
</div>
<div class="pdf-header-container-left">
<div class="pdf-label">담당의사</div>
<div class="pdf-label-content">김의사</div>
</div>
</div>
</div>
<div class="pdf-content">
<div class="pdf-title">1. AOI* 세부지표</div>
<div class="report-table-container">
<table class="report-table">
<tr>
<th rowspan="2">Fixation</th>
<th>Total count</th>
<td>623</td>
<td>623</td>
</tr>
<tr>
<th>%</th>
<td>89.8%</td>
<td>89.8%</td>
</tr>
<tr></tr>
<th rowspan="2">Saccade</th>
<th>Total count</th>
<td>71</td>
<td>71</td>
</tr>
<tr>
<th>%</th>
<td>4.7%</td>
<td>4.7%</td>
</tr>
<tr></tr>
<th rowspan="5">Switching</th>
<th>In to In</th>
<td>3</td>
<td>3</td>
</tr>
<tr></tr>
<th>In to Out</th>
<td>1</td>
<td>1</td>
</tr>
<tr>
<th>Out to Out</th>
<td>2</td>
<td>2</td>
</tr>
<tr>
<th>Out to In</th>
<td>1</td>
<td>1</td>
</tr>
<tr>
<th rowspan="2">Vacancy</th>
<th>AVC%</th>
<td>4.7%</td>
<td>4.7%</td>
</tr>
<tr>
<th>Risk Level</th>
<td>Low</td>
<td>Low</td>
</tr>
</table></div>
<div class="report-desc">*AOI (Area of Interest, 관심자극)</div>
<div class="pdf-title">2. V2 자극 분석</div>
<div class="minimal-table-container">
<table class="minimal-table2">
<tr>
<th>V2-1 (A)</th>
<th>V2-2 (B)</th>
</tr>
<tr>
<td><img src="img/v2_1a.png"></td>
<td><img src="img/v2_1b.png"></td>
</tr>
</table>
</div>
<div class="pdf-title">3. V2 Phenotype 결과</div>
<div class="report-box">
<div class="report-box-1">평균 AOI 반응성이 89.8%, SACCADE 4.7%, AVC 4.7%로</div>
<div class="report-box-2">전반적인 ASD Risk Level은 낮은 것으로 보임.</div>
</div>
</div></div>
<div class="pdf-page" id="pdf-page4">
<div class="pdf-header-container4">
<div class="pdf-header4container">
<div class="pdf-header2sub">사용자의 안전한 사용을 위한</div>
<div class="pdf-header2main">의료기기 사용 안내 및 주의사항</div>
</div>
</div>
<div class="pdf-content">
<div class="pdf-title">1. 본 의료기기는 진단 보조용 기기입니다.</div>
<div class="report-box4">
<ul>
<li>본 기기는 시선 추적 및 분석을 통해 자폐 스펙트럼 장애(Autism Spectrum Disorder, ASD)와 같은 신경발달장애의 조기 식별 및 평가를 보조하도록 설계된 <b>진단 보조용 기기</b>입니다.
</li>
<li>본 기기는 시각적 주의 및 시선 패턴에 대한 객관적인 바이오마커와 통찰을 제공하며, 임상 및 연구 환경에서 훈련된 의료 전문가에 의해 사용하도록 제작되었습니다.</li>
<li>본 기기는 의사의 진단을 보조하는 목적으로 개발되었으며, <b>최종적인 진단 및 의학적 판단은 반드시 전문의가 내립니다.</b></li>
</ul>
</div>
<div class="pdf-title">2. 사용가능 대상 및 제한 사항</div>
<div class="report-box4">
<ul>
<li>본 기기는 <b>16개월에서 38개월 사이 영유아</b>의 시선 추적을 통한 자폐스펙트럼장애 선별 검사를 지원합니다.
</li>
<li>검사 대상 영유아는 <b>시각 기능에 이상이 없는 경우에 한하여 사용 가능합니다.</b>시각적 문제가 있는 경우 검사 결과의 신뢰도가 저하될 수 있습니다.</li>
</ul>
</div>
<div class="pdf-title">3. 검사결과의 변동가능성</div>
<div class="report-box4">
<ul>
<li>검사 당시 영유아의 컨디션(예: 피로, 집중력, 기분 등)에 따라 검사 결과가 영향을 받을 수 있습니다.
</li>
<li>최상의 검사 환경을 위해 <b>영유아가 편안한 상태에서 검사를 진행하는 것이 권장됩니다.</b></li>
</ul>
</div>
<div class="pdf-title">4. 검사주기 권장사항</div>
<div class="report-box4">
<ul>
<li>미국소아의학회(America Academy of Pediatrics, AAP)에서는 <b>30개월 이전에 적어도 3번 이상의 ASD 검사를 받을 것을 권장합니다.</b>
</li>
<li>조기 선별 검사는 자폐스펙트럼장애를 보다 신속하게 발견하고, 필요한 경우 조기에 개입할 수 있도록 돕습니다.</li>
<li>본 안내문을 숙지하시고, <b>사용 전 반드시 의료 전문가와 상담하시기 바랍니다.</b></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- 페이지 네비게이션 -->
<div class="pdf-pagination">
<button class="pdf-button" onclick="prevPage()">이전</button>
<div class="pdf-page-indicator">
<span class="pdf-dot pdf-dot-active"></span>
<span class="pdf-dot"></span>
<span class="pdf-dot"></span>
<span class="pdf-dot"></span>
</div>
<button class="pdf-button" onclick="nextPage()">다음</button>
</div>
<!-- Chart.js 라이브러리 -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
/* 출력시 우측 잘리는 문제 해결 */
@media print {
canvas {
max-width: 100%;
}
.report-box4 {
padding-right: 10px;
}
}
/* 환자 이름, ID 여러줄로 보여주기 위한 스타일 */
.patient-info-cell {
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
max-width: 250px;
}
th { text-wrap: nowrap; }
th, td { line-height: 1.2; }
.nowrap { white-space: nowrap; }
</style>
<script>
let currentPageId = 0;
function buildDots() {
const indicator = document.querySelector('.pdf-page-indicator');
if (!indicator) return;
indicator.innerHTML = '';
const total = document.querySelectorAll('.pdf-page').length;
for (let i = 0; i < total; i++) {
const dot = document.createElement('span');
dot.className = 'pdf-dot' + (i === currentPageId ? ' pdf-dot-active' : '');
indicator.appendChild(dot);
}
}
function updatePage() {
const pages = document.querySelectorAll('.pdf-page');
pages.forEach(page => page.classList.remove('pdf-active'));
if (pages[currentPageId]) {
pages[currentPageId].classList.add('pdf-active');
}
document.querySelectorAll('.pdf-dot').forEach(dot => dot.classList.remove('pdf-dot-active'));
const dots = document.querySelectorAll('.pdf-dot');
if (dots[currentPageId]) {
dots[currentPageId].classList.add('pdf-dot-active');
}
}
function prevPage() {
if (currentPageId > 0) {
currentPageId--;
updatePage();
}
}
function nextPage() {
const totalPages = document.querySelectorAll('.pdf-page').length;
if (currentPageId < totalPages - 1) {
currentPageId++;
updatePage();
}
}
document.addEventListener('DOMContentLoaded', function () {
// 페이지 네비 도트 초기화
buildDots();
updatePage();
// AOI Vacancy 차트 (샘플 데이터)
const colors = ['#D92D20', '#FDB022', '#039855'];
const labels = ['V1-1', 'V1-2', 'V1-3', 'V2-1', 'V2-2'];
const reportsData = [4.7, 4.7, 4.7, 4.7, 4.7];
const riskLevels = ['Low', 'Low', 'Low', 'Low', 'Low'];
const backgroundColors = riskLevels.map(level => {
if (level === 'High') return colors[0];
if (level === 'Uncertain') return colors[1];
return colors[2];
});
const canvas = document.getElementById('aoiVacancyChart');
if (canvas) {
const ctx = canvas.getContext('2d');
new Chart(ctx, {
type: 'bar',
data: {
labels: labels,
datasets: [
{
label: 'AOI Vacancy Count Percentage* (%)',
data: reportsData,
backgroundColor: backgroundColors,
borderWidth: 0,
barPercentage: 0.6
},
{
label: '',
data: reportsData.map(v => 100 - v),
backgroundColor: 'rgb(191, 191, 191)',
borderWidth: 0,
barPercentage: 0.6
}
]
},
options: {
indexAxis: 'y',
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
stacked: true,
max: 100,
grid: { color: 'rgb(217, 217, 217)', drawBorder: false },
ticks: { stepSize: 10, callback: v => v + '%', font: { size: 12 } }
},
y: {
stacked: true,
grid: { display: false, drawBorder: false },
ticks: { font: { size: 12 } }
}
},
plugins: {
legend: { display: false },
tooltip: {
callbacks: {
label: function (context) {
if (context.datasetIndex === 0) return context.raw.toFixed(1) + '%';
return '';
}
}
}
},
layout: { padding: { left: 10, right: 10, top: 0, bottom: 13 } }
}
});
}
// 요약 문구 생성
const totalReports = labels.length;
const highRiskCount = riskLevels.filter(l => l === 'High').length;
const summaryEl = document.getElementById('aoiSummaryText');
if (summaryEl) {
summaryEl.innerHTML = `${totalReports}개 비디오 검사 중 <b>ASD 가능성이 정상범위보다 높게</b> 나온 결과는 <b>${highRiskCount}개</b> 입니다.`;
}
});
</script>
</body>
</html>