1354 |
28 Apr 11 |
nicklas |
1 |
<%@ page |
1354 |
28 Apr 11 |
nicklas |
2 |
pageEncoding="UTF-8" |
1354 |
28 Apr 11 |
nicklas |
3 |
session="false" |
1354 |
28 Apr 11 |
nicklas |
4 |
import="net.sf.basedb.core.Application" |
1354 |
28 Apr 11 |
nicklas |
5 |
import="net.sf.basedb.core.User" |
1354 |
28 Apr 11 |
nicklas |
6 |
import="net.sf.basedb.core.DbControl" |
1354 |
28 Apr 11 |
nicklas |
7 |
import="net.sf.basedb.core.SessionControl" |
1354 |
28 Apr 11 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
1354 |
28 Apr 11 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
1538 |
21 Feb 12 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
1354 |
28 Apr 11 |
nicklas |
11 |
import="net.sf.basedb.util.Values" |
1354 |
28 Apr 11 |
nicklas |
12 |
%> |
1354 |
28 Apr 11 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
1354 |
28 Apr 11 |
nicklas |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
1354 |
28 Apr 11 |
nicklas |
15 |
<% |
3976 |
26 May 16 |
nicklas |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
1354 |
28 Apr 11 |
nicklas |
17 |
final String ID = sc.getId(); |
1354 |
28 Apr 11 |
nicklas |
18 |
final float scale = Base.getScale(sc); |
1538 |
21 Feb 12 |
nicklas |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
1354 |
28 Apr 11 |
nicklas |
20 |
DbControl dc = null; |
1354 |
28 Apr 11 |
nicklas |
21 |
try |
1354 |
28 Apr 11 |
nicklas |
22 |
{ |
1354 |
28 Apr 11 |
nicklas |
23 |
dc = sc.newDbControl(); |
1354 |
28 Apr 11 |
nicklas |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
1354 |
28 Apr 11 |
nicklas |
25 |
%> |
1354 |
28 Apr 11 |
nicklas |
26 |
<base:page type="default" > |
2599 |
25 Aug 14 |
nicklas |
27 |
<base:head |
2599 |
25 Aug 14 |
nicklas |
28 |
scripts="~../reggie-2.js,~consentform.js" |
2599 |
25 Aug 14 |
nicklas |
29 |
styles="path.css,~../css/reggie-2.css" |
2599 |
25 Aug 14 |
nicklas |
30 |
/> |
2599 |
25 Aug 14 |
nicklas |
31 |
<base:body> |
1354 |
28 Apr 11 |
nicklas |
32 |
|
2599 |
25 Aug 14 |
nicklas |
33 |
<p:path><p:pathelement id="reggie-index" |
1915 |
21 Mar 13 |
nicklas |
34 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
1538 |
21 Feb 12 |
nicklas |
35 |
/><p:pathelement title="Consent form registration" |
1538 |
21 Feb 12 |
nicklas |
36 |
/></p:path> |
1354 |
28 Apr 11 |
nicklas |
37 |
|
1538 |
21 Feb 12 |
nicklas |
38 |
<div class="content"> |
2599 |
25 Aug 14 |
nicklas |
39 |
<form name="reggie" id="wizard" class="wizard"> |
2599 |
25 Aug 14 |
nicklas |
40 |
|
2599 |
25 Aug 14 |
nicklas |
41 |
<div class="step" id="step-1"> |
2599 |
25 Aug 14 |
nicklas |
42 |
<div class="step-no">1</div> |
2599 |
25 Aug 14 |
nicklas |
43 |
<div class="step-title">Enter Case Name</div> |
2599 |
25 Aug 14 |
nicklas |
44 |
<div class="step-content"> |
2599 |
25 Aug 14 |
nicklas |
45 |
|
2599 |
25 Aug 14 |
nicklas |
46 |
<table class="step-form"> |
2599 |
25 Aug 14 |
nicklas |
47 |
<tr> |
2599 |
25 Aug 14 |
nicklas |
48 |
<td class="prompt">Case name</td> |
2599 |
25 Aug 14 |
nicklas |
49 |
<td class="input"><input type="text" name="caseName" id="caseName" |
2599 |
25 Aug 14 |
nicklas |
50 |
class="required auto-init" data-auto-init="focus" |
2599 |
25 Aug 14 |
nicklas |
51 |
style="width: 12em;" maxlength="12"></td> |
2599 |
25 Aug 14 |
nicklas |
52 |
<td class="status" id="caseName.status"></td> |
2599 |
25 Aug 14 |
nicklas |
53 |
<td class="help"> |
2599 |
25 Aug 14 |
nicklas |
54 |
<span id="caseName.message" class="message"></span> |
2599 |
25 Aug 14 |
nicklas |
55 |
The 7-digit case (barcode) associated with the case. |
2599 |
25 Aug 14 |
nicklas |
56 |
</td> |
2599 |
25 Aug 14 |
nicklas |
57 |
</tr> |
2599 |
25 Aug 14 |
nicklas |
58 |
</table> |
2599 |
25 Aug 14 |
nicklas |
59 |
|
2599 |
25 Aug 14 |
nicklas |
60 |
</div> |
1538 |
21 Feb 12 |
nicklas |
61 |
</div> |
1354 |
28 Apr 11 |
nicklas |
62 |
|
2599 |
25 Aug 14 |
nicklas |
63 |
<div class="step" id="step-2"> |
2599 |
25 Aug 14 |
nicklas |
64 |
<div class="step-no">2</div> |
2599 |
25 Aug 14 |
nicklas |
65 |
<div class="step-title">Consent form</div> |
2599 |
25 Aug 14 |
nicklas |
66 |
<div class="step-content"> |
2599 |
25 Aug 14 |
nicklas |
67 |
|
2599 |
25 Aug 14 |
nicklas |
68 |
<table class="step-form"> |
1354 |
28 Apr 11 |
nicklas |
69 |
<tr> |
1354 |
28 Apr 11 |
nicklas |
70 |
<td class="prompt">Date</td> |
2599 |
25 Aug 14 |
nicklas |
71 |
<td class="input"><input type="text" name="consentDate" id="consentDate" |
2599 |
25 Aug 14 |
nicklas |
72 |
style="width: 12em;" maxlength="10" data-allow-six-digits="1"></td> |
1354 |
28 Apr 11 |
nicklas |
73 |
<td class="status" id="consentDate.status"></td> |
1354 |
28 Apr 11 |
nicklas |
74 |
<td class="help"> |
2599 |
25 Aug 14 |
nicklas |
75 |
<span id="consentDate.message" class="message"></span> |
2599 |
25 Aug 14 |
nicklas |
76 |
(YYYYMMDD or MMDD) |
1354 |
28 Apr 11 |
nicklas |
77 |
</td> |
1354 |
28 Apr 11 |
nicklas |
78 |
</tr> |
2599 |
25 Aug 14 |
nicklas |
79 |
<tr> |
1354 |
28 Apr 11 |
nicklas |
80 |
<td class="prompt">Consent</td> |
2599 |
25 Aug 14 |
nicklas |
81 |
<td class="input"> |
2599 |
25 Aug 14 |
nicklas |
82 |
|
2599 |
25 Aug 14 |
nicklas |
83 |
<label id="consent.no.label" class="disabled"> |
2599 |
25 Aug 14 |
nicklas |
84 |
<input id="consent.no" type="radio" name="consent" value="No" disabled> |
2599 |
25 Aug 14 |
nicklas |
85 |
No</label><br> |
5058 |
29 Oct 18 |
nicklas |
86 |
<div id="moreCasesSectionNo" style="display: none;"> |
5058 |
29 Oct 18 |
nicklas |
87 |
<table> |
5058 |
29 Oct 18 |
nicklas |
88 |
<tr valign="baseline"> |
5058 |
29 Oct 18 |
nicklas |
89 |
<td><img src="../images/joinbottom.gif"></td> |
5058 |
29 Oct 18 |
nicklas |
90 |
<td id="moreCasesNo"></td> |
5058 |
29 Oct 18 |
nicklas |
91 |
</tr> |
5058 |
29 Oct 18 |
nicklas |
92 |
</table> |
5058 |
29 Oct 18 |
nicklas |
93 |
</div> |
2599 |
25 Aug 14 |
nicklas |
94 |
<label id="consent.yes.label" class="disabled"> |
2599 |
25 Aug 14 |
nicklas |
95 |
<input id="consent.yes" type="radio" name="consent" value="Yes" disabled> |
2599 |
25 Aug 14 |
nicklas |
96 |
Yes</label><br> |
1520 |
23 Jan 12 |
nicklas |
97 |
<div id="moreCasesSection" style="display: none;"> |
2595 |
20 Aug 14 |
nicklas |
98 |
<table> |
1520 |
23 Jan 12 |
nicklas |
99 |
<tr valign="baseline"> |
2595 |
20 Aug 14 |
nicklas |
100 |
<td><img src="../images/joinbottom.gif"></td> |
1520 |
23 Jan 12 |
nicklas |
101 |
<td id="moreCases"></td> |
1520 |
23 Jan 12 |
nicklas |
102 |
</tr> |
1520 |
23 Jan 12 |
nicklas |
103 |
</table> |
1520 |
23 Jan 12 |
nicklas |
104 |
</div> |
2599 |
25 Aug 14 |
nicklas |
105 |
<label id="consent.notAsked.label" class="disabled"> |
2599 |
25 Aug 14 |
nicklas |
106 |
<input id="consent.notAsked" type="radio" name="consent" value="Not asked" disabled> |
2599 |
25 Aug 14 |
nicklas |
107 |
Not asked</label> |
2599 |
25 Aug 14 |
nicklas |
108 |
|
1354 |
28 Apr 11 |
nicklas |
109 |
</td> |
1354 |
28 Apr 11 |
nicklas |
110 |
<td class="status" id="consent.status"></td> |
1354 |
28 Apr 11 |
nicklas |
111 |
<td class="help" rowspan="2"> |
2599 |
25 Aug 14 |
nicklas |
112 |
<span id="consent.message" class="message"></span> |
1521 |
24 Jan 12 |
nicklas |
113 |
<span id="morehelp.multiple" style="display:none;"> |
2599 |
25 Aug 14 |
nicklas |
114 |
Select the cases and blood samples to register. |
1521 |
24 Jan 12 |
nicklas |
115 |
</span> |
1513 |
19 Jan 12 |
nicklas |
116 |
<span id="morehelp.yesonly" style="display: none;"> |
1354 |
28 Apr 11 |
nicklas |
117 |
<b>Yes</b> is the only option supported by this wizard. The other alternatives |
1354 |
28 Apr 11 |
nicklas |
118 |
may require manual deletion of already registered information. |
1354 |
28 Apr 11 |
nicklas |
119 |
</span> |
1513 |
19 Jan 12 |
nicklas |
120 |
<span id="morehelp.any" style="display: none;"> |
1513 |
19 Jan 12 |
nicklas |
121 |
There is currently no information about this case. |
1354 |
28 Apr 11 |
nicklas |
122 |
</span> |
1354 |
28 Apr 11 |
nicklas |
123 |
</td> |
1354 |
28 Apr 11 |
nicklas |
124 |
</tr> |
2599 |
25 Aug 14 |
nicklas |
125 |
<tr> |
1354 |
28 Apr 11 |
nicklas |
126 |
<td class="subprompt">Reason if not asked</td> |
1354 |
28 Apr 11 |
nicklas |
127 |
<td class="input"> |
2595 |
20 Aug 14 |
nicklas |
128 |
<table> |
1354 |
28 Apr 11 |
nicklas |
129 |
<tr valign="baseline"> |
1915 |
21 Mar 13 |
nicklas |
130 |
<td><img src="../images/joinbottom.gif"></td> |
1369 |
23 May 11 |
nicklas |
131 |
<td><input id="notAsked.forgot" type="checkbox" name="reasonIfNotAsked" disabled></td> |
1354 |
28 Apr 11 |
nicklas |
132 |
<td><label id="notAsked.forgot.label" for="notAsked.forgot" class="disabled">Forgot to ask the patient</label></td> |
1354 |
28 Apr 11 |
nicklas |
133 |
</tr> |
1354 |
28 Apr 11 |
nicklas |
134 |
|
1354 |
28 Apr 11 |
nicklas |
135 |
<tr valign="baseline"> |
1354 |
28 Apr 11 |
nicklas |
136 |
<td></td> |
1369 |
23 May 11 |
nicklas |
137 |
<td><input id="notAsked.language" type="checkbox" name="reasonIfNotAsked" disabled></td> |
1354 |
28 Apr 11 |
nicklas |
138 |
<td><label id="notAsked.language.label" for="notAsked.language" class="disabled">Language problems</label></td> |
1354 |
28 Apr 11 |
nicklas |
139 |
</tr> |
1354 |
28 Apr 11 |
nicklas |
140 |
|
1354 |
28 Apr 11 |
nicklas |
141 |
<tr valign="baseline"> |
1354 |
28 Apr 11 |
nicklas |
142 |
<td></td> |
1369 |
23 May 11 |
nicklas |
143 |
<td><input id="notAsked.condition" type="checkbox" name="reasonIfNotAsked" disabled></td> |
1354 |
28 Apr 11 |
nicklas |
144 |
<td><label id="notAsked.condition.label" for="notAsked.condition" class="disabled">Patient can't decide due to physical and/or mental condition</label></td> |
1354 |
28 Apr 11 |
nicklas |
145 |
</tr> |
1354 |
28 Apr 11 |
nicklas |
146 |
|
1354 |
28 Apr 11 |
nicklas |
147 |
<tr valign="baseline"> |
1354 |
28 Apr 11 |
nicklas |
148 |
<td></td> |
1369 |
23 May 11 |
nicklas |
149 |
<td><input id="notAsked.other" type="checkbox" name="reasonIfNotAsked" disabled></td> |
1354 |
28 Apr 11 |
nicklas |
150 |
<td><label id="notAsked.other.label" for="notAsked.other" class="disabled">Other:</label></td> |
1354 |
28 Apr 11 |
nicklas |
151 |
</tr> |
1354 |
28 Apr 11 |
nicklas |
152 |
|
1354 |
28 Apr 11 |
nicklas |
153 |
<tr valign="baseline"> |
1354 |
28 Apr 11 |
nicklas |
154 |
<td></td> |
1354 |
28 Apr 11 |
nicklas |
155 |
<td colspan="2"> |
2651 |
10 Sep 14 |
nicklas |
156 |
<textarea name="otherReasonIfNotAsked" id="otherReasonIfNotAsked" rows="4" disabled></textarea> |
1354 |
28 Apr 11 |
nicklas |
157 |
</td> |
1354 |
28 Apr 11 |
nicklas |
158 |
</tr> |
1354 |
28 Apr 11 |
nicklas |
159 |
</table> |
1354 |
28 Apr 11 |
nicklas |
160 |
</td> |
1354 |
28 Apr 11 |
nicklas |
161 |
<td class="status" id="notAsked.status"></td> |
1354 |
28 Apr 11 |
nicklas |
162 |
</tr> |
1354 |
28 Apr 11 |
nicklas |
163 |
</table> |
2599 |
25 Aug 14 |
nicklas |
164 |
</div> |
2599 |
25 Aug 14 |
nicklas |
165 |
</div> |
1354 |
28 Apr 11 |
nicklas |
166 |
|
2599 |
25 Aug 14 |
nicklas |
167 |
<div id="wizard-status"></div> |
2599 |
25 Aug 14 |
nicklas |
168 |
|
2599 |
25 Aug 14 |
nicklas |
169 |
<table class="navigation" id="navigation"> |
2599 |
25 Aug 14 |
nicklas |
170 |
<tr> |
2599 |
25 Aug 14 |
nicklas |
171 |
<td><base:button id="gocancel" title="Cancel" /></td> |
2599 |
25 Aug 14 |
nicklas |
172 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
2599 |
25 Aug 14 |
nicklas |
173 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td> |
2599 |
25 Aug 14 |
nicklas |
174 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
2602 |
27 Aug 14 |
nicklas |
175 |
<td id="gonext-message" class="message"></td> |
2599 |
25 Aug 14 |
nicklas |
176 |
</tr> |
2599 |
25 Aug 14 |
nicklas |
177 |
</table> |
1354 |
28 Apr 11 |
nicklas |
178 |
</form> |
1538 |
21 Feb 12 |
nicklas |
179 |
</div> |
1354 |
28 Apr 11 |
nicklas |
180 |
|
1354 |
28 Apr 11 |
nicklas |
181 |
</base:body> |
1354 |
28 Apr 11 |
nicklas |
182 |
</base:page> |
1354 |
28 Apr 11 |
nicklas |
183 |
<% |
1354 |
28 Apr 11 |
nicklas |
184 |
} |
1354 |
28 Apr 11 |
nicklas |
185 |
finally |
1354 |
28 Apr 11 |
nicklas |
186 |
{ |
1354 |
28 Apr 11 |
nicklas |
187 |
if (dc != null) dc.close(); |
1354 |
28 Apr 11 |
nicklas |
188 |
} |
1354 |
28 Apr 11 |
nicklas |
189 |
%> |