1372 |
23 May 11 |
martin |
1 |
<%@ page |
1372 |
23 May 11 |
martin |
2 |
pageEncoding="UTF-8" |
1372 |
23 May 11 |
martin |
3 |
session="false" |
1372 |
23 May 11 |
martin |
4 |
import="net.sf.basedb.core.User" |
1400 |
10 Oct 11 |
martin |
5 |
import="net.sf.basedb.core.BioPlate" |
1400 |
10 Oct 11 |
martin |
6 |
import="net.sf.basedb.core.DbControl" |
1400 |
10 Oct 11 |
martin |
7 |
import="net.sf.basedb.core.Item" |
1400 |
10 Oct 11 |
martin |
8 |
import="net.sf.basedb.core.ItemContext" |
1372 |
23 May 11 |
martin |
9 |
import="net.sf.basedb.core.SessionControl" |
1538 |
21 Feb 12 |
nicklas |
10 |
import="net.sf.basedb.core.Application" |
1372 |
23 May 11 |
martin |
11 |
import="net.sf.basedb.clients.web.Base" |
1538 |
21 Feb 12 |
nicklas |
12 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
1400 |
10 Oct 11 |
martin |
13 |
import="net.sf.basedb.util.Values" |
1400 |
10 Oct 11 |
martin |
14 |
import="java.util.List" |
1372 |
23 May 11 |
martin |
15 |
%> |
1372 |
23 May 11 |
martin |
16 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
1372 |
23 May 11 |
martin |
17 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
1372 |
23 May 11 |
martin |
18 |
<% |
3976 |
26 May 16 |
nicklas |
19 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
1372 |
23 May 11 |
martin |
20 |
final String ID = sc.getId(); |
1372 |
23 May 11 |
martin |
21 |
final float scale = Base.getScale(sc); |
1538 |
21 Feb 12 |
nicklas |
22 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
1372 |
23 May 11 |
martin |
23 |
DbControl dc = null; |
1372 |
23 May 11 |
martin |
24 |
try |
1372 |
23 May 11 |
martin |
25 |
{ |
1372 |
23 May 11 |
martin |
26 |
dc = sc.newDbControl(); |
1372 |
23 May 11 |
martin |
27 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
1372 |
23 May 11 |
martin |
28 |
%> |
1372 |
23 May 11 |
martin |
29 |
<base:page type="default" > |
2677 |
17 Sep 14 |
nicklas |
30 |
<base:head |
2677 |
17 Sep 14 |
nicklas |
31 |
scripts="~../reggie-2.js,~specimentube.js" |
2677 |
17 Sep 14 |
nicklas |
32 |
styles="path.css,~../css/reggie-2.css" |
3602 |
16 Nov 15 |
nicklas |
33 |
> |
3602 |
16 Nov 15 |
nicklas |
34 |
<style> |
3602 |
16 Nov 15 |
nicklas |
35 |
.yellow-label td:not(.help) |
3602 |
16 Nov 15 |
nicklas |
36 |
{ |
3602 |
16 Nov 15 |
nicklas |
37 |
background-color: #FFFFC0; |
3602 |
16 Nov 15 |
nicklas |
38 |
} |
5333 |
28 Mar 19 |
nicklas |
39 |
|
5333 |
28 Mar 19 |
nicklas |
40 |
.pause-specimen .storage-box td:not(.help) |
5333 |
28 Mar 19 |
nicklas |
41 |
{ |
5333 |
28 Mar 19 |
nicklas |
42 |
background-color: #FFF0FF; |
5333 |
28 Mar 19 |
nicklas |
43 |
} |
5333 |
28 Mar 19 |
nicklas |
44 |
|
4546 |
29 Jun 17 |
nicklas |
45 |
.moreboxes |
4546 |
29 Jun 17 |
nicklas |
46 |
{ |
4546 |
29 Jun 17 |
nicklas |
47 |
background-color: #ffff00; |
4546 |
29 Jun 17 |
nicklas |
48 |
color: #000000; |
4546 |
29 Jun 17 |
nicklas |
49 |
padding: 2px 0.5em; |
4546 |
29 Jun 17 |
nicklas |
50 |
margin-bottom: 0.25em; |
4546 |
29 Jun 17 |
nicklas |
51 |
margin-left: 0.5em; |
4546 |
29 Jun 17 |
nicklas |
52 |
border-width: 2px; |
4546 |
29 Jun 17 |
nicklas |
53 |
border-radius: 5px; |
4546 |
29 Jun 17 |
nicklas |
54 |
} |
4546 |
29 Jun 17 |
nicklas |
55 |
|
4546 |
29 Jun 17 |
nicklas |
56 |
.moreboxes::before |
4546 |
29 Jun 17 |
nicklas |
57 |
{ |
4546 |
29 Jun 17 |
nicklas |
58 |
content: url('../images/warning.png'); |
4546 |
29 Jun 17 |
nicklas |
59 |
vertical-align: top; |
4546 |
29 Jun 17 |
nicklas |
60 |
margin-right: 0.25em; |
4546 |
29 Jun 17 |
nicklas |
61 |
} |
4546 |
29 Jun 17 |
nicklas |
62 |
|
3602 |
16 Nov 15 |
nicklas |
63 |
</style> |
3602 |
16 Nov 15 |
nicklas |
64 |
|
3602 |
16 Nov 15 |
nicklas |
65 |
</base:head> |
2677 |
17 Sep 14 |
nicklas |
66 |
<base:body> |
1372 |
23 May 11 |
martin |
67 |
|
1538 |
21 Feb 12 |
nicklas |
68 |
<p:path><p:pathelement |
1915 |
21 Mar 13 |
nicklas |
69 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
1538 |
21 Feb 12 |
nicklas |
70 |
/><p:pathelement title="Specimen tube registration" |
1538 |
21 Feb 12 |
nicklas |
71 |
/></p:path> |
1538 |
21 Feb 12 |
nicklas |
72 |
|
1538 |
21 Feb 12 |
nicklas |
73 |
<div class="content"> |
1372 |
23 May 11 |
martin |
74 |
|
2677 |
17 Sep 14 |
nicklas |
75 |
<form name="reggie" id="wizard" class="wizard"> |
1372 |
23 May 11 |
martin |
76 |
|
2677 |
17 Sep 14 |
nicklas |
77 |
<div class="step" id="step-1"> |
2677 |
17 Sep 14 |
nicklas |
78 |
<div class="step-no">1</div> |
2677 |
17 Sep 14 |
nicklas |
79 |
<div class="step-title">Enter Case Name</div> |
2677 |
17 Sep 14 |
nicklas |
80 |
<div class="step-content"> |
2677 |
17 Sep 14 |
nicklas |
81 |
|
2677 |
17 Sep 14 |
nicklas |
82 |
<table class="step-form"> |
2677 |
17 Sep 14 |
nicklas |
83 |
<tr> |
1372 |
23 May 11 |
martin |
84 |
<td class="prompt">Case name</td> |
2677 |
17 Sep 14 |
nicklas |
85 |
<td class="input"> |
2677 |
17 Sep 14 |
nicklas |
86 |
<input type="text" name="caseName" id="caseName" |
2677 |
17 Sep 14 |
nicklas |
87 |
class="required auto-init" data-auto-init="focus" |
2677 |
17 Sep 14 |
nicklas |
88 |
style="width: 12em;" maxlength="12"> |
2677 |
17 Sep 14 |
nicklas |
89 |
</td> |
2677 |
17 Sep 14 |
nicklas |
90 |
<td class="status" id="caseName.status"></td> |
2677 |
17 Sep 14 |
nicklas |
91 |
<td class="help"> |
2677 |
17 Sep 14 |
nicklas |
92 |
<span id="caseName.message" class="message"></span> |
2677 |
17 Sep 14 |
nicklas |
93 |
The 7-digit case (barcode) associated with this specimen tube. |
2677 |
17 Sep 14 |
nicklas |
94 |
</td> |
1372 |
23 May 11 |
martin |
95 |
</tr> |
1372 |
23 May 11 |
martin |
96 |
</table> |
2677 |
17 Sep 14 |
nicklas |
97 |
</div> |
2677 |
17 Sep 14 |
nicklas |
98 |
</div> |
1375 |
14 Jun 11 |
martin |
99 |
|
2677 |
17 Sep 14 |
nicklas |
100 |
<div class="step" id="step-2"> |
2677 |
17 Sep 14 |
nicklas |
101 |
<div class="step-no">2</div> |
2677 |
17 Sep 14 |
nicklas |
102 |
<div class="step-title">Enter Case information</div> |
2677 |
17 Sep 14 |
nicklas |
103 |
<div class="step-content"> |
2677 |
17 Sep 14 |
nicklas |
104 |
|
2677 |
17 Sep 14 |
nicklas |
105 |
<table class="step-form"> |
2677 |
17 Sep 14 |
nicklas |
106 |
<tr> |
2677 |
17 Sep 14 |
nicklas |
107 |
<td class="prompt">Number of tubes</td> |
2677 |
17 Sep 14 |
nicklas |
108 |
<td class="input"> |
2677 |
17 Sep 14 |
nicklas |
109 |
<input type="text" name="nofTubes" id="nofTubes" |
2677 |
17 Sep 14 |
nicklas |
110 |
class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="arrivalDate" |
4516 |
01 Jun 17 |
nicklas |
111 |
style="width: 12em;" maxlength="1" value="1"> |
2677 |
17 Sep 14 |
nicklas |
112 |
</td> |
2677 |
17 Sep 14 |
nicklas |
113 |
<td class="status" id="nofTubes.status"></td> |
2677 |
17 Sep 14 |
nicklas |
114 |
<td class="help"> |
2677 |
17 Sep 14 |
nicklas |
115 |
<span id="nofTubes.message" class="message"></span> |
2677 |
17 Sep 14 |
nicklas |
116 |
Number of tubes in this case. |
2677 |
17 Sep 14 |
nicklas |
117 |
</td> |
2677 |
17 Sep 14 |
nicklas |
118 |
</tr> |
2677 |
17 Sep 14 |
nicklas |
119 |
<tr valign="top"> |
2677 |
17 Sep 14 |
nicklas |
120 |
<td class="prompt">Arrival date</td> |
2677 |
17 Sep 14 |
nicklas |
121 |
<td class="input"> |
2677 |
17 Sep 14 |
nicklas |
122 |
<input type="text" name="arrivalDate" id="arrivalDate" |
2677 |
17 Sep 14 |
nicklas |
123 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="samplingDate" |
2677 |
17 Sep 14 |
nicklas |
124 |
data-disallow-future-date="1" |
2677 |
17 Sep 14 |
nicklas |
125 |
style="width: 12em;" maxlength="10"> |
2677 |
17 Sep 14 |
nicklas |
126 |
</td> |
2677 |
17 Sep 14 |
nicklas |
127 |
<td class="status" id="arrivalDate.status"></td> |
2677 |
17 Sep 14 |
nicklas |
128 |
<td class="help"> |
2677 |
17 Sep 14 |
nicklas |
129 |
<span id="arrivalDate.message" class="message"></span> |
2677 |
17 Sep 14 |
nicklas |
130 |
Date when the specimen tubes arrived(YYYYMMDD or MMDD). |
2677 |
17 Sep 14 |
nicklas |
131 |
</td> |
2677 |
17 Sep 14 |
nicklas |
132 |
</tr> |
2677 |
17 Sep 14 |
nicklas |
133 |
<tr> |
2677 |
17 Sep 14 |
nicklas |
134 |
<td class="prompt">Sampling date</td> |
2677 |
17 Sep 14 |
nicklas |
135 |
<td class="input"> |
2677 |
17 Sep 14 |
nicklas |
136 |
<input type="text" name="samplingDate" id="samplingDate" |
2677 |
17 Sep 14 |
nicklas |
137 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="samplingTime" |
2677 |
17 Sep 14 |
nicklas |
138 |
style="width: 12em;" maxlength="10"> |
2677 |
17 Sep 14 |
nicklas |
139 |
Time <input type="text" name="samplingTime" id="samplingTime" |
2677 |
17 Sep 14 |
nicklas |
140 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="rnaLaterDate" |
2677 |
17 Sep 14 |
nicklas |
141 |
style="width: 6em;" maxlength="5"></span> |
2677 |
17 Sep 14 |
nicklas |
142 |
</td> |
2677 |
17 Sep 14 |
nicklas |
143 |
<td class="status" id="samplingDate.status"></td> |
2677 |
17 Sep 14 |
nicklas |
144 |
<td class="help"> |
2677 |
17 Sep 14 |
nicklas |
145 |
<span id="samplingDate.message" class="message"></span> |
2677 |
17 Sep 14 |
nicklas |
146 |
Date (+time) of surgical removal (YYYYMMDD, HHMM) |
2677 |
17 Sep 14 |
nicklas |
147 |
</td> |
2677 |
17 Sep 14 |
nicklas |
148 |
</tr> |
2677 |
17 Sep 14 |
nicklas |
149 |
<tr> |
2677 |
17 Sep 14 |
nicklas |
150 |
<td class="prompt">RNA Later date</td> |
2677 |
17 Sep 14 |
nicklas |
151 |
<td class="input"> |
2677 |
17 Sep 14 |
nicklas |
152 |
<input type="text" name="rnaLaterDate" id="rnaLaterDate" |
2677 |
17 Sep 14 |
nicklas |
153 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="rnaLaterTime" |
2677 |
17 Sep 14 |
nicklas |
154 |
style="width: 12em;" maxlength="10"> |
2677 |
17 Sep 14 |
nicklas |
155 |
Time <input type="text" name="rnaLaterTime" id="rnaLaterTime" |
2801 |
13 Oct 14 |
nicklas |
156 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="biopsyType" |
2677 |
17 Sep 14 |
nicklas |
157 |
style="width: 6em;" maxlength="5"> |
2677 |
17 Sep 14 |
nicklas |
158 |
</td> |
2677 |
17 Sep 14 |
nicklas |
159 |
<td class="status" id="rnaLaterDate.status"></td> |
2677 |
17 Sep 14 |
nicklas |
160 |
<td class="help"> |
2677 |
17 Sep 14 |
nicklas |
161 |
<span id="rnaLaterDate.message" class="message"></span> |
2677 |
17 Sep 14 |
nicklas |
162 |
Date+time of pathology handling (YYYYMMDD, HHMM) |
2677 |
17 Sep 14 |
nicklas |
163 |
</td> |
2677 |
17 Sep 14 |
nicklas |
164 |
</tr> |
2677 |
17 Sep 14 |
nicklas |
165 |
<tr> |
2677 |
17 Sep 14 |
nicklas |
166 |
<td class="prompt">Laterality</td> |
2677 |
17 Sep 14 |
nicklas |
167 |
<td class="input"> |
2677 |
17 Sep 14 |
nicklas |
168 |
<label id="lateralityLeft"><input type="radio" name="laterality" id="lateralityLEFT" value="LEFT">LEFT</label><br> |
2677 |
17 Sep 14 |
nicklas |
169 |
<label id="lateralityRight"><input type="radio" name="laterality" id="lateralityRIGHT" value="RIGHT">RIGHT</label><br> |
2677 |
17 Sep 14 |
nicklas |
170 |
<label id="lateralityUnknown"><input type="radio" name="laterality" id="lateralityU" value="" checked><i>unknown</i></label> |
2677 |
17 Sep 14 |
nicklas |
171 |
<span id="lateralityFromCase" style="display: none; font-style: italic;">(From existing case)</span> |
2677 |
17 Sep 14 |
nicklas |
172 |
</td> |
2677 |
17 Sep 14 |
nicklas |
173 |
<td class="status" id="laterality.status"></td> |
2677 |
17 Sep 14 |
nicklas |
174 |
<td class="help"> |
2677 |
17 Sep 14 |
nicklas |
175 |
<span id="laterality.message" class="message"></span> |
2677 |
17 Sep 14 |
nicklas |
176 |
</td> |
2677 |
17 Sep 14 |
nicklas |
177 |
</tr> |
2677 |
17 Sep 14 |
nicklas |
178 |
<tr> |
2677 |
17 Sep 14 |
nicklas |
179 |
<td class="prompt">Biopsy type</td> |
2677 |
17 Sep 14 |
nicklas |
180 |
<td class="input"> |
2677 |
17 Sep 14 |
nicklas |
181 |
<select name="biopsyType" id="biopsyType" |
2677 |
17 Sep 14 |
nicklas |
182 |
class="auto-init" data-auto-init="focus-on-enter" data-next-focus="otherPathNote"> |
2677 |
17 Sep 14 |
nicklas |
183 |
<option selected value="" >unknown |
2677 |
17 Sep 14 |
nicklas |
184 |
<option value="SpecimenSurgery">SpecimenSurgery |
2677 |
17 Sep 14 |
nicklas |
185 |
<option value="SpecimenCoreBiopsy">SpecimenCoreBiopsy |
2840 |
20 Oct 14 |
nicklas |
186 |
<option value="SpecimenCoreBiopsy2nd">SpecimenCoreBiopsy2nd |
2677 |
17 Sep 14 |
nicklas |
187 |
<option value="SpecimenFineNeedleAspiration" >SpecimenFineNeedleAspiration |
2677 |
17 Sep 14 |
nicklas |
188 |
</select> |
2677 |
17 Sep 14 |
nicklas |
189 |
</td> |
2677 |
17 Sep 14 |
nicklas |
190 |
<td class="status" id="biopsyType.status"></td> |
2677 |
17 Sep 14 |
nicklas |
191 |
<td class="help"> |
2677 |
17 Sep 14 |
nicklas |
192 |
<span id="biopsyType.message" class="message"></span> |
2677 |
17 Sep 14 |
nicklas |
193 |
</td> |
2677 |
17 Sep 14 |
nicklas |
194 |
</tr> |
2677 |
17 Sep 14 |
nicklas |
195 |
<tr class="align-top"> |
2677 |
17 Sep 14 |
nicklas |
196 |
<td class="prompt">Other path note</td> |
2677 |
17 Sep 14 |
nicklas |
197 |
<td class="input"> |
2677 |
17 Sep 14 |
nicklas |
198 |
<textarea name="otherPathNote" id="otherPathNote" rows="3"></textarea> |
2677 |
17 Sep 14 |
nicklas |
199 |
</td> |
2677 |
17 Sep 14 |
nicklas |
200 |
<td class="status" id="otherPathNote.status"></td> |
2677 |
17 Sep 14 |
nicklas |
201 |
<td class="help"> |
2677 |
17 Sep 14 |
nicklas |
202 |
<span id="otherPathNote.message" class="message"></span> |
2801 |
13 Oct 14 |
nicklas |
203 |
In this field, enter ALL text noted on the referral form by the pathologist. |
2677 |
17 Sep 14 |
nicklas |
204 |
</td> |
2677 |
17 Sep 14 |
nicklas |
205 |
</tr> |
2677 |
17 Sep 14 |
nicklas |
206 |
</table> |
2677 |
17 Sep 14 |
nicklas |
207 |
</div> |
2677 |
17 Sep 14 |
nicklas |
208 |
</div> |
1389 |
09 Sep 11 |
martin |
209 |
|
2677 |
17 Sep 14 |
nicklas |
210 |
<div class="step" id="step-3"> |
2677 |
17 Sep 14 |
nicklas |
211 |
<div class="step-no">3</div> |
2677 |
17 Sep 14 |
nicklas |
212 |
<div class="step-title">Enter tube information</div> |
2677 |
17 Sep 14 |
nicklas |
213 |
<div class="step-content"> |
2677 |
17 Sep 14 |
nicklas |
214 |
|
2677 |
17 Sep 14 |
nicklas |
215 |
<table id="specimen-tubes" class="step-form"> |
2677 |
17 Sep 14 |
nicklas |
216 |
</table> |
2677 |
17 Sep 14 |
nicklas |
217 |
</div> |
1375 |
14 Jun 11 |
martin |
218 |
</div> |
1375 |
14 Jun 11 |
martin |
219 |
|
2677 |
17 Sep 14 |
nicklas |
220 |
<div id="wizard-status"></div> |
2677 |
17 Sep 14 |
nicklas |
221 |
|
2677 |
17 Sep 14 |
nicklas |
222 |
<table class="navigation" id="navigation"> |
1375 |
14 Jun 11 |
martin |
223 |
<tr> |
2677 |
17 Sep 14 |
nicklas |
224 |
<td><base:button id="gocancel" title="Cancel" /></td> |
2677 |
17 Sep 14 |
nicklas |
225 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
2677 |
17 Sep 14 |
nicklas |
226 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
2677 |
17 Sep 14 |
nicklas |
227 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
2677 |
17 Sep 14 |
nicklas |
228 |
<td><base:button id="gostop" title="Stop" image="cancel.png" /></td> |
2677 |
17 Sep 14 |
nicklas |
229 |
<td id="gonext-message" class="message"></td> |
1375 |
14 Jun 11 |
martin |
230 |
</tr> |
1372 |
23 May 11 |
martin |
231 |
</table> |
1372 |
23 May 11 |
martin |
232 |
|
1372 |
23 May 11 |
martin |
233 |
</form> |
1538 |
21 Feb 12 |
nicklas |
234 |
</div> |
1372 |
23 May 11 |
martin |
235 |
|
1372 |
23 May 11 |
martin |
236 |
</base:body> |
1372 |
23 May 11 |
martin |
237 |
</base:page> |
1372 |
23 May 11 |
martin |
238 |
<% |
1372 |
23 May 11 |
martin |
239 |
} |
1372 |
23 May 11 |
martin |
240 |
finally |
1372 |
23 May 11 |
martin |
241 |
{ |
1372 |
23 May 11 |
martin |
242 |
if (dc != null) dc.close(); |
1372 |
23 May 11 |
martin |
243 |
} |
1372 |
23 May 11 |
martin |
244 |
%> |