3394 |
12 Jun 15 |
nicklas |
1 |
<%@ page |
3394 |
12 Jun 15 |
nicklas |
2 |
pageEncoding="UTF-8" |
3394 |
12 Jun 15 |
nicklas |
3 |
session="false" |
3394 |
12 Jun 15 |
nicklas |
4 |
import="net.sf.basedb.core.Application" |
3394 |
12 Jun 15 |
nicklas |
5 |
import="net.sf.basedb.core.User" |
3394 |
12 Jun 15 |
nicklas |
6 |
import="net.sf.basedb.core.DbControl" |
3394 |
12 Jun 15 |
nicklas |
7 |
import="net.sf.basedb.core.SessionControl" |
3394 |
12 Jun 15 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
3394 |
12 Jun 15 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
3394 |
12 Jun 15 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
3394 |
12 Jun 15 |
nicklas |
11 |
import="net.sf.basedb.util.Values" |
3394 |
12 Jun 15 |
nicklas |
12 |
%> |
3394 |
12 Jun 15 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
3394 |
12 Jun 15 |
nicklas |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
3394 |
12 Jun 15 |
nicklas |
15 |
<% |
3976 |
26 May 16 |
nicklas |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
3394 |
12 Jun 15 |
nicklas |
17 |
final String ID = sc.getId(); |
3394 |
12 Jun 15 |
nicklas |
18 |
final float scale = Base.getScale(sc); |
3394 |
12 Jun 15 |
nicklas |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
3394 |
12 Jun 15 |
nicklas |
20 |
|
3394 |
12 Jun 15 |
nicklas |
21 |
DbControl dc = null; |
3394 |
12 Jun 15 |
nicklas |
22 |
try |
3394 |
12 Jun 15 |
nicklas |
23 |
{ |
3394 |
12 Jun 15 |
nicklas |
24 |
dc = sc.newDbControl(); |
3394 |
12 Jun 15 |
nicklas |
25 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
3394 |
12 Jun 15 |
nicklas |
26 |
%> |
3394 |
12 Jun 15 |
nicklas |
27 |
<base:page type="default" > |
3394 |
12 Jun 15 |
nicklas |
28 |
<base:head |
3394 |
12 Jun 15 |
nicklas |
29 |
scripts="~../reggie-2.js,~linked-specimen.js" |
3394 |
12 Jun 15 |
nicklas |
30 |
styles="path.css,~../css/reggie-2.css" |
3394 |
12 Jun 15 |
nicklas |
31 |
> |
3394 |
12 Jun 15 |
nicklas |
32 |
<style> |
3394 |
12 Jun 15 |
nicklas |
33 |
|
3394 |
12 Jun 15 |
nicklas |
34 |
#update-results |
3394 |
12 Jun 15 |
nicklas |
35 |
{ |
3394 |
12 Jun 15 |
nicklas |
36 |
width: 40em; |
3394 |
12 Jun 15 |
nicklas |
37 |
border-width: 1px; |
3394 |
12 Jun 15 |
nicklas |
38 |
margin-left: 2em; |
3394 |
12 Jun 15 |
nicklas |
39 |
} |
3394 |
12 Jun 15 |
nicklas |
40 |
|
3394 |
12 Jun 15 |
nicklas |
41 |
#update-results th, #update-results td |
3394 |
12 Jun 15 |
nicklas |
42 |
{ |
3394 |
12 Jun 15 |
nicklas |
43 |
text-align: left; |
3394 |
12 Jun 15 |
nicklas |
44 |
padding: 2px; |
3394 |
12 Jun 15 |
nicklas |
45 |
} |
3394 |
12 Jun 15 |
nicklas |
46 |
|
3394 |
12 Jun 15 |
nicklas |
47 |
</style> |
3394 |
12 Jun 15 |
nicklas |
48 |
</base:head> |
3394 |
12 Jun 15 |
nicklas |
49 |
<base:body> |
3394 |
12 Jun 15 |
nicklas |
50 |
|
3394 |
12 Jun 15 |
nicklas |
51 |
<p:path><p:pathelement |
3394 |
12 Jun 15 |
nicklas |
52 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
3394 |
12 Jun 15 |
nicklas |
53 |
/><p:pathelement title="Linked specimen batch update" |
3394 |
12 Jun 15 |
nicklas |
54 |
/></p:path> |
3394 |
12 Jun 15 |
nicklas |
55 |
|
3394 |
12 Jun 15 |
nicklas |
56 |
<div class="content"> |
3394 |
12 Jun 15 |
nicklas |
57 |
<form name="reggie" id="wizard" class="wizard"> |
3394 |
12 Jun 15 |
nicklas |
58 |
|
3394 |
12 Jun 15 |
nicklas |
59 |
<div class="step" id="step-1"> |
3394 |
12 Jun 15 |
nicklas |
60 |
<div class="step-no">1</div> |
3394 |
12 Jun 15 |
nicklas |
61 |
<div class="step-title">Linked specimen</div> |
3394 |
12 Jun 15 |
nicklas |
62 |
<div class="step-content"> |
3394 |
12 Jun 15 |
nicklas |
63 |
|
3394 |
12 Jun 15 |
nicklas |
64 |
<div style="padding: 1em;"> |
3394 |
12 Jun 15 |
nicklas |
65 |
This wizard will update the <b>LinkedSpecimen</b> annotation on |
6153 |
26 Feb 21 |
nicklas |
66 |
<b>Specimen/NoSpecimen/FutureSpecimen</b> items.<br> |
3394 |
12 Jun 15 |
nicklas |
67 |
The date used for comparison is the |
3394 |
12 Jun 15 |
nicklas |
68 |
creation date of the specimen. |
3394 |
12 Jun 15 |
nicklas |
69 |
<ol> |
3481 |
09 Sep 15 |
nicklas |
70 |
<li>If the patient has any specimen without date: <b>MissingDate</b> |
3394 |
12 Jun 15 |
nicklas |
71 |
<li>If the same case has a prior core biopsy: <b>IpsilateralCoreBiopsy</b> |
3394 |
12 Jun 15 |
nicklas |
72 |
<li>If the other case (opposite laterality) has a prior core biopsy: <b>ContralateralCoreBiopsy</b> |
3394 |
12 Jun 15 |
nicklas |
73 |
<li>If the same case has a prior specimen: <b>IpsilateralSample</b> |
3394 |
12 Jun 15 |
nicklas |
74 |
<li>If the other case (opposite laterality) has a prior specimen: <b>ContralateralSample</b> |
3394 |
12 Jun 15 |
nicklas |
75 |
<li>If none of the above: <b>No value</b> |
3394 |
12 Jun 15 |
nicklas |
76 |
</ol> |
3394 |
12 Jun 15 |
nicklas |
77 |
</div> |
3394 |
12 Jun 15 |
nicklas |
78 |
</div> |
3394 |
12 Jun 15 |
nicklas |
79 |
</div> |
3394 |
12 Jun 15 |
nicklas |
80 |
|
3481 |
09 Sep 15 |
nicklas |
81 |
|
3481 |
09 Sep 15 |
nicklas |
82 |
<div id="wizard-status"></div> |
3905 |
29 Apr 16 |
nicklas |
83 |
<div id="wizard-progress"></div> |
3481 |
09 Sep 15 |
nicklas |
84 |
|
3481 |
09 Sep 15 |
nicklas |
85 |
<table id="update-results" style="display: none; margin-top: 1em;"> |
3481 |
09 Sep 15 |
nicklas |
86 |
<tr class="bg-filled-100 bottomborder"> |
3394 |
12 Jun 15 |
nicklas |
87 |
<th style="width: 20em;">LinkedSpecimen</th> |
3394 |
12 Jun 15 |
nicklas |
88 |
<th style="width: 10em;">Before</th> |
3394 |
12 Jun 15 |
nicklas |
89 |
<th style="width: 10em;">After</th> |
3394 |
12 Jun 15 |
nicklas |
90 |
</tr> |
3394 |
12 Jun 15 |
nicklas |
91 |
<tr> |
3394 |
12 Jun 15 |
nicklas |
92 |
<th class="bg-filled-100 rightborder">No value</th> |
3394 |
12 Jun 15 |
nicklas |
93 |
<td id="novalue-before">?</td> |
3394 |
12 Jun 15 |
nicklas |
94 |
<td id="novalue-after">?</td> |
3394 |
12 Jun 15 |
nicklas |
95 |
</tr> |
3481 |
09 Sep 15 |
nicklas |
96 |
<tr class="bottomborder" style="border-bottom-style: dotted;"> |
3481 |
09 Sep 15 |
nicklas |
97 |
<th class="bg-filled-100 rightborder">MissingDate</th> |
3481 |
09 Sep 15 |
nicklas |
98 |
<td id="MissingDate-before">?</td> |
3481 |
09 Sep 15 |
nicklas |
99 |
<td id="MissingDate-after">?</td> |
3481 |
09 Sep 15 |
nicklas |
100 |
</tr> |
3394 |
12 Jun 15 |
nicklas |
101 |
<tr> |
3394 |
12 Jun 15 |
nicklas |
102 |
<th class="bg-filled-100 rightborder">IpsilateralCoreBiopsy</th> |
3394 |
12 Jun 15 |
nicklas |
103 |
<td id="IpsilateralCoreBiopsy-before">?</td> |
3394 |
12 Jun 15 |
nicklas |
104 |
<td id="IpsilateralCoreBiopsy-after">?</td> |
3394 |
12 Jun 15 |
nicklas |
105 |
</tr> |
3394 |
12 Jun 15 |
nicklas |
106 |
<tr> |
3394 |
12 Jun 15 |
nicklas |
107 |
<th class="bg-filled-100 rightborder">ContralateralCoreBiopsy</th> |
3394 |
12 Jun 15 |
nicklas |
108 |
<td id="ContralateralCoreBiopsy-before">?</td> |
3394 |
12 Jun 15 |
nicklas |
109 |
<td id="ContralateralCoreBiopsy-after">?</td> |
3394 |
12 Jun 15 |
nicklas |
110 |
</tr> |
3394 |
12 Jun 15 |
nicklas |
111 |
<tr> |
3394 |
12 Jun 15 |
nicklas |
112 |
<th class="bg-filled-100 rightborder">IpsilateralSample</th> |
3394 |
12 Jun 15 |
nicklas |
113 |
<td id="IpsilateralSample-before">?</td> |
3394 |
12 Jun 15 |
nicklas |
114 |
<td id="IpsilateralSample-after">?</td> |
3394 |
12 Jun 15 |
nicklas |
115 |
</tr> |
3394 |
12 Jun 15 |
nicklas |
116 |
<tr> |
3394 |
12 Jun 15 |
nicklas |
117 |
<th class="bg-filled-100 rightborder">ContralateralSample</th> |
3394 |
12 Jun 15 |
nicklas |
118 |
<td id="ContralateralSample-before">?</td> |
3394 |
12 Jun 15 |
nicklas |
119 |
<td id="ContralateralSample-after">?</td> |
3394 |
12 Jun 15 |
nicklas |
120 |
</tr> |
3394 |
12 Jun 15 |
nicklas |
121 |
</table> |
3394 |
12 Jun 15 |
nicklas |
122 |
|
3394 |
12 Jun 15 |
nicklas |
123 |
|
3394 |
12 Jun 15 |
nicklas |
124 |
<table class="navigation" id="navigation"> |
3394 |
12 Jun 15 |
nicklas |
125 |
<tr> |
3394 |
12 Jun 15 |
nicklas |
126 |
<td><base:button id="gocancel" title="Cancel" /></td> |
3394 |
12 Jun 15 |
nicklas |
127 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
3394 |
12 Jun 15 |
nicklas |
128 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td> |
3394 |
12 Jun 15 |
nicklas |
129 |
<td><base:button id="goupdate" title="Update" image="<%=home+"/images/gonext.png"%>" /></td> |
3394 |
12 Jun 15 |
nicklas |
130 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
3394 |
12 Jun 15 |
nicklas |
131 |
<td id="gonext-message" class="message"></td> |
3394 |
12 Jun 15 |
nicklas |
132 |
</tr> |
3394 |
12 Jun 15 |
nicklas |
133 |
</table> |
3394 |
12 Jun 15 |
nicklas |
134 |
</form> |
3394 |
12 Jun 15 |
nicklas |
135 |
</div> |
3394 |
12 Jun 15 |
nicklas |
136 |
|
3394 |
12 Jun 15 |
nicklas |
137 |
</base:body> |
3394 |
12 Jun 15 |
nicklas |
138 |
</base:page> |
3394 |
12 Jun 15 |
nicklas |
139 |
<% |
3394 |
12 Jun 15 |
nicklas |
140 |
} |
3394 |
12 Jun 15 |
nicklas |
141 |
finally |
3394 |
12 Jun 15 |
nicklas |
142 |
{ |
3394 |
12 Jun 15 |
nicklas |
143 |
if (dc != null) dc.close(); |
3394 |
12 Jun 15 |
nicklas |
144 |
} |
3394 |
12 Jun 15 |
nicklas |
145 |
%> |