-
Notifications
You must be signed in to change notification settings - Fork 1
/
searchPatientResults.jsp
299 lines (199 loc) · 9.09 KB
/
searchPatientResults.jsp
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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript">
//input the user data page
//validate fields for acuity max 16 min 0
function minmax(value)
{
if(parseInt(value) < 0 || isNaN(parseInt(value)))
return "";
else if(parseInt(value) > 16)
return 16;
else return value;
}
//validate fields for not empty
window.onload = function () {
var form = document.getElementById('patientForm');
form.button.onclick = function (){
for(var i=0; i < form.elements.length; i++){
if(form.elements[i].value === '' && form.elements[i].hasAttribute('required')){
alert('There are some required fields!');
return false;
}
}
};
};
</script>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-111678682-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-111678682-1');
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Hapi Fhir patient</title>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/drop.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans|Space+Mono">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Space+Mono" rel="stylesheet">
</head>
<body background="${pageContext.request.contextPath}/images/rockBackground.gif">
<script language="javascript" type="text/javascript"></script>
<table border="0" align="center" width="1000" >
<tr>
<td><img src="${pageContext.request.contextPath}/images/banner1.jpg"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#a7c7fc">
<div align="center" class="menu-wrap">
<nav class="menu">
<ul class="clearfix">
<li><a href="http://114.142.160.89:8080/ic/index.jsp">Home</a></li>
<li>
<a href="#">Demonstrations <span class="arrow">▼</span></a>
<ul class="sub-menu">
<li><a href="http://114.142.160.89:8080/ic/out.jsp">ICD-10AM search</a></li>
<li><a href="http://114.142.160.89:8080/ic/reasoning.jsp">AI Reasoning</a></li>
<li><a href="http://114.142.160.89:8080/ic/IcnpInitServlet">ICNP text suggester</a></li>
<li><a href="http://114.142.160.89:8080/ic/jsonFhirSelector.jsp">JSON and FHIR</a></li>
</ul>
</li>
<li><a href="http://114.142.160.89:8080/ic/about.jsp">About</a></li>
<li><a href="http://114.142.160.89:8080/ic/contact.jsp">Contact</a></li>
<li> <a href="http://114.142.160.89:8080/ic/publications.jsp">Publications</a></li>
<li><a href="http://114.142.160.89:8080/ic/whatis.jsp">What's an ontology?</a></li>
</ul>
</nav>
</div>
</td>
</tr>
</table>
<p>
<%@ page import="java.util.ArrayList" %>
<form name="queryForm" id="patientForm" method="post" action="UpdatePatientServlet">
<b><font color = "red"> ${message}</font></b><br><p>
<p>
<div align="left">
<center>
<table border="0" width="1000" height="157" >
<tr>
<td>
<!-- <td><c:out value= "${html}"/> <br> -->
</td>
</tr>
</table>
</center>
</div>
<div align="left">
<center>
<table border="0" width="1000" bgcolor="lightblue">
<tr>
<td width="514" valign="top">
<p>
<table border="0">
<tr>
<th>Prefix </th><th>Given name</th><th>Family name </th><th>Preferred name </th>
</tr>
<tr>
<td><input type="text" name="prefix" size = "3" value="${prefix}" required></td><td><input type="text" name="nameGiven" value="${nameGiven}" required></td>
<td><input type="text" name="familyName" value="${familyName}" required></td><td><input type="text" name="nameUse" value="${nameUse}"></td>
</tr>
<tr>
<th> Patient active</th><th>Resource type</th><th>Id</th><th>Version</th>
</tr>
<tr>
<td><input type="text" name="active" size="5" value="${active}" required></td><td><input type="text" name="resourceType" readonly size="10" value="${resourceType}">
</td><td><input type="text" name="id" size="15" readonly value="${id}"></td><td><input type="text" name="version" readonly size="3" value="${version}"></td>
</tr>
<tr>
<th>Last update </th><th>Language</th><th>Gender</th><th>Birth date</th>
</tr>
<tr>
<td><input type="text" name="lastUpdate" size="20" readonly value="${lastUpdate}"></td><td><input type="text" name="language" size="10" value="${language}" required></td>
<td><input type="text" name="gender" size="10" value="${gender}" required></td><td><input type="text" name="birthDate" size="10" value="${birthDate}" required></td>
</tr>
<tr>
<th>Marital status</th>
</tr>
<tr>
<td><input type="text" name="maritalStatus" size="10" value="${maritalStatus}" required></td>
</tr>
</table>
<br>
<c:set var="idCount" value="0" scope="page" />
<c:set var="telecomCount" value="0" scope="page" />
<c:set var="contactsSystemCounter" value="0" scope="page" />
<c:set var="practitionerCount" value="0" scope="page" />
Patients' Ids<br>
<c:forEach var="i" begin = "0" step="1" end="${fn:length(idValue)-1}">
<input type="text" name="idDisplay${i}" size="30" value="${idDisplay[i]}" required>
<input type="text" name="idValue${i}" size="10" value="${idValue[i]}" required> <br>
<c:set var="idCount" value="${idCount + 1}" scope="page"/>
</c:forEach>
<input type="hidden" name="idCount" value="${idCount}">
<br>
<p>
Patients' home phone number<br>
<input type="text" name="homePhone" size="10" value="${telecomValue[0]}"><br>
<p>
Patients' work phone number<br>
<input type="text" name="workPhone" size="10" value="${telecomValue[1]}"><br>
<p>
Patients' email<br>
<input type="text" name="email" size="30" value="${telecomValue[2]}"><br>
<p>
Patients' mobile number<br>
<input type="text" name="mobilePhone" size="10" value="${telecomValue[3]}" ><br>
<p>
Patients' address<br>
<input type="text" name="street" size="10" value="${street}" required>
<input type="text" name="city" size="10" value="${city}" required>
<input type="text" name="state" size="10" value="${state}" required>
<input type="text" name="postcode" size="10" value="${postcode}" required>
<br>
<p>
Patients' contacts<br>
Relationship Name <br>
<input type="text" name="contactRelationshipCodePrimary" size="10" value="${contactRelationshipCodePrimary}" >
<input type="text" name="contactRelationshipNamePrimary" size="10" value="${contactRelationshipNamePrimary}" ><br>
<c:forEach var="i" begin = "0" step="1" end="${fn:length(contactTelecomSystemPrimary)-1}">
<input type="text" name="contactTelecomSystemPrimary${i}" size="10" readonly value="${contactTelecomSystemPrimary[i]}" >
<input type="text" name="contactTelecomUsePrimary${i}" size="10" readonly value="${contactTelecomUsePrimary[i]}" >
<input type="text" name="contactTelecomValuePrimary${i}" size="10" value="${contactTelecomValuePrimary[i]}" ><br>
</c:forEach>
<br>
<p>
<input type="text" name="contactRelationshipCodeSecondary" size="10" value="${contactRelationshipCodeSecondary}">
<input type="text" name="contactRelationshipNameSecondary" size="10" value="${contactRelationshipNameSecondary}"><br>
<c:forEach var="i" begin = "0" step="1" end="${fn:length(contactTelecomSystemSecondary)-1}">
<input type="text" name="contactTelecomSystemSecondary${i}" size="10" readonly value="${contactTelecomSystemSecondary[i]}">
<input type="text" name="contactTelecomUseSecondary${i}" size="10" readonly value="${contactTelecomUseSecondary[i]}">
<input type="text" name="contactTelecomValueSecondary${i}" size="10" value="${contactTelecomValueSecondary[i]}"><br>
</c:forEach>
<br>
<p>
<c:forEach var="i" begin = "0" step="1" end="${fn:length(practitioner)-1}">
<input type="text" name="practitioner${i}" size="30" readonly value="${practitioner[i]}"> <br>
<c:set var="practitionerCount" value="${practitionerCount + 1}" scope="page"/>
</c:forEach>
<input type="hidden" name="practitionerCount" value="${practitionerCount}">
<br>
<input type = "radio" name="crud" value="update">Update this patient<br>
<input type = "radio" name="crud" value="delete">Delete this patient<br>
<input type = "radio" name="crud" value="goHome">Back to start<br>
<p>
<input type="submit" value="Go" name="aScores"><br>
</tr>
<p>
</table>
</center>
</div>
</form>
<p align="center"><a href="http://114.142.160.89:8080/hapi-fhir-jpaserver/">HAPI-FHIR server</a><br><p>
</body>