-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpractitioner.jsp
209 lines (150 loc) · 5.69 KB
/
practitioner.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
<%@ 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 practitioner</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>
<form name="queryForm" id="practitionerForm" method="post" action="AddPractitionerServlet">
<p>
<div align="left">
<center>
<table border="0" width="1000" height="157" >
<tr>
<td>
</td>
</tr>
</table>
</center>
</div>
<div align="left">
<center>
<table border="0" width="1000" bgcolor="lightblue">
<tr>
<td width="514" valign="top">
<b><font color="blue">Input</font></b><p>
<b> Enter a practitioner </b>
<div>
<select name="prefix">
<option value="Mr">Mr</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
</select>
<select name="gender">
<option value="MALE">Male</option>
<option value="FEMALE">Female</option>
<option value="OTHER">Other</option>
<option value="NULL">Null</option>
<option value="UNKNOWN">Unknown</option>
</select>
<br>
<p>
Practitioners' qualification/speciality.<br>
<input type="text" name="qualification"size="10" value="" required><br>
Practitioners' family name.<br>
<input type="text" name="famName"size="10" required><br>
Practitioners' given name.<br>
<input type="text" name="givenName" size="10" required><br>
Practitioners' usual name.<br>
<input type="text" name="usualName" size="10"> <br>
Practitioners' registration number.<br>
<input type="text" name="registrationNumber" value="876545365" size="10" required><br>
Practitioners' pay number number.<br>
<input type="text" name="payNumber" value= "3456509872" size="10" ><br>
Practitioners' street number and street name.
<input type="text" name="addressLine" size="15" required>
City.
<input type="text" name="city" size="15" required><br>
State.
<input type="text" name="state" size="15" required>
Postcode.
<input type="text" name="postCode" size="4" required><br>
Language.<br>
<input type="text" name="language" size="18"> <br>
Practitioners' work phone.<br>
<input type="text" name="workPhone" size="18" required ><br>
Practitioners' mobile phone.<br>
<input type="text" name="mobilePhone" size="18" ><br>
Practitioners' email.<br>
<input type="text" name="email" size="18" ><br>
<p>
<p>
<input type="submit" value="Submit" name="aScores"><input type="reset" value="Reset" name="B2">
</div>
</td>
</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>