-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathprint.html
188 lines (174 loc) · 6.76 KB
/
print.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blood Pressure Centiles SMART Application</title>
<script src="js/load-fhir-data.js"></script>
<!-- BPC stylesheets-->
<link rel="stylesheet" href="css/bpc-print.css" type="text/css" />
<!-- Standard JS Libraries -->
<script src="js/lib/jquery.js" type="text/javascript"></script>
<script src="js/lib/jquery-jtemplates.js" type="text/javascript"></script>
<script src="js/lib/raphael.js" type="text/javascript"></script>
<script src="js/lib/xdate.js" type="text/javascript"></script>
<!-- BPC Utilities -->
<script src="js/cdc_height_tables.js" type="text/javascript"></script>
<script src="js/nih_bp_tables.js" type="text/javascript"></script>
<script src="js/util.js" type="text/javascript"></script>
<script src="js/bpc-localizations.js" type="text/javascript"></script>
<script src="js/popup.js" type="text/javascript"></script>
<!-- BPC App Modules -->
<script src="js/bpc-config.js" type="text/javascript"></script>
<script src="js/bpc-data.js" type="text/javascript"></script>
<script src="js/bpc-filters.js" type="text/javascript"></script>
<script src="js/bpc-graph.js" type="text/javascript"></script>
<!-- BPC Print-specific scripts -->
<script src="js/print/bpc-print-config.js" type="text/javascript"></script>
<script src="js/print/bpc-time-iterator.js" type="text/javascript"></script>
<script src="js/print/bpc-graph.js" type="text/javascript"></script>
<script src="js/print/bpc-short-graph.js" type="text/javascript"></script>
<script src="js/print/bpc-long-graph.js" type="text/javascript"></script>
<script src="js/bpc-print.js" type="text/javascript"></script>
</head>
<body>
<div id="print-toolbar">
<button onclick="window.print();" class="print-link">
<img src="images/print.png" alt="Print" />
<span data-translatecontent="STR_PRINT_100"></span>
</button>
</div>
<br />
<div id="wrap">
<div id="header"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div id="short-graph" style="height: 230px; width: 330px"></div>
</td>
<td align="left" id="short-table-view" style=""></td>
</tr>
</table>
<!--div class="page-break"></div-->
<h3 data-translatecontent="STR_ALL_BP_PERCENTILES_101"></h3>
<div style="margin:0 1ex;height: 360px;" id="long-graph"></div>
<h3>
<span data-translatecontent="STR_LAST_102"></span> <span class="numrows"></span> <span data-translatecontent="STR_BP_103"></span>
<small data-translatecontent="STR_COMPLETE_DATA_104"></small>
</h3>
<div id="table-view"></div>
</div>
<!-- jTemplates templates -->
<div style="display:none">
<!-- Header -->
<textarea id="header-template" rows="0" cols="0"><!--
{#template MAIN}
<table id="header-table">
<tr>
<td rowspan="5" width="100%">
<h1>{$T.name}</h1>
<h2 data-translatecontent="STR_BP_CENTILES_REPORT_105"></h2>
{#if $P.isBCH}
<span class="small grey-4" data-translatecontent="STR_NOTE_ONLY_AMBULATORY_106">
</span>
{#/if}
</td>
<th></th>
<td>{$T.date}</td>
</tr>
<tr>
<th data-translatecontent="STR_GENDER_107"></th>
<td>{$T.sex}</td>
</tr>
<tr>
<th data-translatecontent="STR_DOB_108"></th>
<td>{$T.dob}</td>
</tr>
<tr>
<th data-translatecontent="STR_HEIGHT_109"></th>
<td>
{#if $T.lastHeight}
{$T.lastHeight}
<span class="grey-4" data-translatecontent="STR_ON_110"></span>
{$T.lastHeightDate}
{#else}
N/A
{#/if}
</td>
</tr>
{#if $P.isBCH}
<tr>
<th>mrn</th>
<td>
{#if $T.mrn}{$T.mrn}{#else}N/A{#/if}
</td>
</tr>
{#/if}
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3" style="padding:0.2ex 0">
<h3 data-translatecontent="STR_LAST_BP_TITLE_111"></h3>
</td>
</tr>
</table>
{#/template MAIN}
--></textarea>
<textarea id="template" rows="0" cols="0"><!--
{#template MAIN}
<table border="0" cellspacing="0" cellpadding="0">
<thead>
{#include HEAD}
</thead>
<tbody>
{#foreach $T.data as record count=$P.maxRows}
{#include ROW root=$T.record}
{#/for}
</tbody>
</table>
{#/template MAIN}
{#template HEAD}
<tr>
<td></td>
<td></td>
<td class="grey-4 small" data-translatecontent="STR_SYSTOLIC_112"></td>
<td class="grey-4 small" data-translatecontent="STR_DIASTOLIC_113"></td>
{#if !$P.short}
<td class="grey-4 small" data-translatecontent="STR_NOTES_114"></td>
{#/if}
</tr>
{#/template HEAD}
{#template ROW}
{#if $T.sPercentile >= 95 || $T.dPercentile >= 95}
<tr class="hiperintensive"><td></td>
{#elseif $T.sPercentile >= 90 || $T.dPercentile >= 90}
<tr class="intensive"><td></td>
{#else}
<tr><td></td>
{#/if}
<td>
{#if $T.unixTime}{new XDate($T.unixTime).toString('d MMM yyyy')}{#/if}
<span class="grey-4 small">
{BPC.getYears($T.age)}y {BPC.getMonths($T.age)}m
</span>
</td>
<td>
<b class="grey-1">{$T.systolic}</b>
{#if $T.age < $P.adultAge} • {$T.sPercentile}%{#/if}
</td>
<td>
<b class="grey-1">{$T.diastolic}</b>
{#if $T.age < $P.adultAge} • {$T.dPercentile}%{#/if}
</td>
{#if !$P.short}
<td class="grey-4 small lowercase notes">
<span {#if $T.site} data-translatecontent="STR_SITE_{$T.site.toUpperCase().replace(" ","_")}"{#/if}>{#if $T.site}{$T.site}</span>,
<span {#if $T.position} data-translatecontent="STR_POSITION_{$T.position.toUpperCase()}"{#/if}>{#if $T.position},{$T.position}</span>,
<span {#if $T.method} data-translatecontent="STR_METHOD_{$T.method.toUpperCase()}"{#/if}>{#if $T.method},{$T.method}</span>
</td>
{#/if}
</tr>
{#/template ROW}
--></textarea></div>
</body>
</html>