001 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
002 <%@ page session="false" %>
003 <%@ page import="java.util.Locale,
004 java.net.URL,
005 java.net.HttpURLConnection"%>
006
007 <%--
008 % $Id: index.jsp,v 1.10 2001/10/27 04:25:44 ro89390 Exp $
009 % Copyright 2006 BEA Systems, Inc. All rights reserved.
010 --%>
011
012
013 <%
014 Locale currentLocale = request.getLocale();
015 String currentLanguage = currentLocale.getLanguage();
016 String currentCountry = currentLocale.getCountry();
017
018 if (currentLanguage != Locale.ENGLISH.getLanguage()) {
019 try {
020 String redirectPath = "";
021 if (currentLanguage == Locale.CHINESE.getLanguage()) {
022 redirectPath = "index" + "_" + currentLanguage + "_" + currentCountry + ".jsp";
023 } else if (currentLanguage == Locale.JAPANESE.getLanguage() ||
024 currentLanguage == Locale.KOREAN.getLanguage()) {
025 redirectPath ="index" + "_" + currentLanguage + ".jsp";
026 } else {
027 // Do nothing.
028 }
029
030 if (redirectPath != "") {
031 URL aURL = new URL("http", request.getLocalName(), request.getLocalPort(), redirectPath);
032 HttpURLConnection conn = (HttpURLConnection)aURL.openConnection();
033 if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {
034 response.sendRedirect(redirectPath);
035 }
036 }
037 } catch (Exception ex) {
038 // Do nothing.
039 }
040 }
041 %>
042
043
044 <html>
045 <head>
046 <title>Avitek Medical Records Application</title>
047 <link href="ootb.css" rel="stylesheet" title="Style" type="text/css" />
048
049 <style type="text/css">
050 <!--
051 .style1 {font-family: "Courier New", Courier, mono}
052 .style2 {font-style: italic}
053 .style4 {font-family: "Courier New", Courier, mono; font-style: italic; }
054 -->
055 </style>
056 </head>
057 <body>
058
059 <!-- header table begin -->
060
061 <table width="100%" border="0" cellspacing="0" cellpadding="0">
062 <tr>
063 <td width="470" background="images/splash_filler_short.gif">
064
065 <img src="images/splash_server_90_short.gif" width="410" height="153" border="0">
066
067 </td>
068
069 <td width=100% align="left" valign="top" background="images/splash_filler_short.gif" >
070 <nobr>
071 <p style="text-align:left;color:white; margin-top:95px;font-size:120%"> | Avitek™ Medical Records Sample Application</p>
072 </nobr></td>
073 <td align="left" valign="bottom">
074 <img src="images/spacer.gif" width="1" height="1">
075 </td>
076 </tr>
077 </table>
078 <!-- header table end -->
079 <!-- Nav Buttons -->
080 <table width=100%>
081 <tr>
082 <td width=50%>
083
084 <nobr>
085 <p style="margin-top:2px">
086 <a href="server/docs/index.html" target="viewer">More Samples</a> |
087 <a href="http://e-docs.bea.com/wls/docs100/index.html" target="_blank">Documentation</a> |
088 <a href="http://dev2dev.bea.com" target="_blank">dev2dev</a>
089 </p>
090
091 </td>
092 <td width=50% align="right">
093 <nobr>
094 <p style="margin-top:2px;margin-right:10px;">
095 <a href="start.jsp" target="_blank" class="button"> Start using MedRec! </a>
096 <a href=../console target="_blank" class="button" > Start the Administration Console </a>
097 </p>
098 </nobr>
099 </td>
100 </tr>
101 </table>
102
103 <h3>Avitek™ Medical Records Sample Application</h3>
104 <table width="100%" cellpadding="10">
105 <tr>
106 <td valign="top" width="50%"><p>Avitek Medical Records (or MedRec) is a WebLogic Server sample application suite that demonstrates all aspects of the Java Platform, Enterprise Edition (Java EE). MedRec is designed as an educational tool for all levels of Java EE developers. It showcases the use of each Java EE component, and illustrates best-practice design patterns for component interaction and client development. MedRec also illustrates best practices for developing and deploying applications with WebLogic Server.
107 </p>
108 <p>
109 The MedRec suite consists of four separate Java EE applications that correspond to each user type:
110 </p>
111
112 <ul>
113 <li>
114 <strong>Patient</strong> - The Patient application allows Patients to log in, edit their profile information, or request that their profile be added to the system. Patients can also view prior medical records of visits with their physician.
115 </li>
116
117 <li>
118 <strong>Controller</strong> - The Controller application provides all of the controller and business logic used by the MedRec application suite.
119 </li>
120
121 <li>
122 <strong>Admin</strong> - The Admin application allows an administrator to approve or deny new patient profile requests.
123 </li>
124
125 <li>
126 <strong>Physician</strong> - The Physician application allows physicians and nurses to log in, search and access patient profiles, create and review patient medical records, and prescribe medicine to patients.
127 </li>
128 </ul>
129 </td>
130 <td width="50%" valign="top">
131 <p align="left"><img
132 src="images/medrec_screen_shot.jpg" alt="Medical Records Patient Info Screen"
133 width=587 height=519 ><br>
134 <p> <strong>Avitek Medical Records Patient Info Screen</strong></p>
135 </p>
136 </td>
137
138 </tr></table>
139 <hr noshade >
140 <h3>Logging in to MedRec </h3>
141 <table cellpadding="10">
142 <tr>
143 <td width="50%" valign="top" >
144
145 <p>To begin using MedRec, click the <strong>Start Using MedRec</strong> button below. From there, you can begin by registering as a new patient, or you can log in using one of the previously-defined roles listed to the right.
146 </p>
147 <p>The administration username and password is <strong>weblogic/weblogic</strong>. Use this username when logging into the Administration Console.</p>
148 <p><a href="start.jsp" target="_blank" class="button"> Start using MedRec! </a></p>
149
150 </td>
151
152 <td width="50%" valign="top">
153
154 <table border="1" cellspacing="0" cellpadding="0" >
155 <tr>
156 <td width="103" valign="top" bgcolor="#EEEEEE"><b> Role</b></td>
157 <td width="168" valign="top" bgcolor="#EEEEEE"><b> Username</b></td>
158 <td width="96" valign="top" bgcolor="#EEEEEE"><b> Password</b></td>
159 </tr>
160 <tr>
161 <td width="103" valign="top"> Admin</td>
162 <td width="168" valign="top"> admin@avitek.com</td>
163 <td width="96" valign="top"> weblogic</td>
164 </tr>
165 <tr>
166 <td width="103" valign="top"> Patient</td>
167 <td width="168" valign="top"> charlie@star.com</td>
168 <td width="96" valign="top"> weblogic</td>
169 </tr>
170 <tr>
171 <td width="103" valign="top"> </td>
172 <td width="168" valign="top"> fred@golf.com</td>
173 <td width="96" valign="top"> weblogic</td>
174 </tr>
175 <tr>
176 <td width="103" valign="top"> </td>
177 <td width="168" valign="top"> larry@bball.com</td>
178 <td width="96" valign="top"> weblogic</td>
179 </tr>
180 <tr>
181 <td width="103" valign="top"> </td>
182 <td width="168" valign="top"> page@fish.com</td>
183 <td width="96" valign="top"> weblogic</td>
184 </tr>
185 <tr>
186 <td width="103" valign="top"> </td>
187 <td width="168" valign="top"> volley@ball.com</td>
188 <td width="96" valign="top"> weblogic</td>
189 </tr>
190 <tr>
191 <td width="103" valign="top"> Physician</td>
192 <td width="168" valign="top"> mary@md.com</td>
193 <td width="96" valign="top"> weblogic</td>
194 </tr>
195 </table>
196
197 </td></tr></table>
198
199 <hr noshade >
200
201 <h3>MedRec Documentation and Source Code</h3>
202 <p style="margin-left:10px">Use these links to learn more about technologies used in the MedRec application and to view the application's source code: </p>
203 <table width="100%" border="0" cellpadding="10">
204 <tr>
205 <td width="50%" valign="top"><ul>
206 <li><a href="server/medrec/doc/medrec_overview_doc.html" target="viewer">Overview</a></li>
207 <li><a href="server/medrec/doc/medrec_starter_doc.html" target="viewer">Getting Started Using MedRec </a></li>
208 <li><a href="server/medrec/doc/dev_Deploy_Best_Practices.html" target="viewer">Developer Best Practices</a></li>
209 <li><a href="server/medrec/doc/diag_log4j.html" target="viewer">Diagnostics</a></li>
210 <li><a href="server/medrec/doc/ejb_erc.html" target="viewer">Enterprise JavaBeans</a></li>
211 </ul>
212
213
214 </td>
215 <td width="50%" valign="top"><ul>
216 <li><a href="server/medrec/doc/jms_Connection_Fact.html" target="viewer">Messaging (JMS) </a></li>
217 <li><a href="server/medrec/doc/jdbc_rowsets.html" target="viewer">Database Connectivity (JDBC) </a></li>
218 <li><a href="server/medrec/doc/ws_Access_EJB_Swing_dotNET.html" target="viewer">Web Services </a></li>
219 <li><a href="server/medrec/doc/Struts_3rd_Party_Util.html" target="viewer">Struts</a> </li>
220 <li><a href="server/medrec/doc/xmlbeans.html" target="viewer">XMLBeans</a></li>
221 </ul></td>
222 </tr>
223 </table>
224
225
226 <hr noshade >
227 <h3>Additional Resources</h3>
228 <p style="margin-left:10px">Use these resources to learn more about the Avitek Medical Records sample application:</p>
229 <ul>
230 <li><a href="http://e-docs.bea.com/wls/docs100/medrec_arch/index.html" target="_blank">MedRec Architecture Guide</a><br>
231 A discussion of the design patterns used in the MedRec application. </li>
232 <li><a href="http://e-docs.bea.com/wls/docs100/samples.html" target="_blank">MedRec Tutorials</a><br>
233 As they become available, tutorials that demonstrate development practices and technologies using MedRec will be listed on this page. </li>
234 <li><a href="http://dev2dev.bea.com/pub/a/2005/09/spring_integration_weblogic_server.html" target="_blank">Spring Integration With WebLogic Server</a><br>
235 A redesigned MedRec application that replaces core Java EE components with Spring components.</li>
236 <li><a href="http://forums.bea.com/bea/forum.jspa?forumID=2061" target="_blank">Newsgroups</a><br>
237 You can post and read questions, comments, or suggestions about MedRec in these newsgroups.</li>
238 <li><a href="http://e-docs.bea.com/wls/docs100/index.html" target="_blank">WebLogic Server Documentation</a><br>
239 Complete documentation for developers and system administrators. </li>
240 </ul>
241 <hr >
242 <h3>Using Web Services Stand-alone Clients
243 </h3>
244 <p style="margin-left:10px">Several clients are provided to demonstrate Web Services interoperability features. The Physician application, a Web Application client, communicates with Medical Records completely via Web Services. In addition, two stand-alone clients are provided: a Java Swing client and .NET C# client.
245 <table cellpadding="10">
246 <tr><td width="50%" valign="top">
247 <h4>Java Swing Client </h4>
248 <p>To run the Java Swing client:</p>
249 <ol>
250 <li>Open a CMD shell.</li>
251 <li>Set up your MedRec environment with the <font face="Courier New" >setDomainEnv.cmd</font> script, located in <font face="Courier New" ><em>BEA_HOME</em>/weblogic100/samples/domains/medrec/bin</font>.</li>
252 <li>Change to the <font face="Courier New" ><em>BEA_HOME</em>/weblogic100/samples/server/medrec/src/clients</font> directory.</li>
253 <li>Run the client by typing <font face="Courier New" ><b><br>
254 ant run</b></font>.</li>
255 </ol>
256 </td><td width="50%" valign="top">
257
258 <h4>.NET C# Client </h4>
259 <p>To run the .NET C# client:</p>
260 <ol>
261 <li>Make sure you have the Microsoft .NET Framework Redistributable. If not, download it from <a href="http://msdn.microsoft.com/netframework/downloads/howtoget.asp" target="_blank">Microsoft</a>.</li>
262 <li>In Windows Explorer, browse to the <br>
263 <span class="style2"><font face="Courier New" >BEA_HOME/weblogic100/</font></span><font face="Courier New" >samples/server/medrec/src/clients/<br>
264 CSharpClient/bin/Release</font> directory.</li>
265 <li>Run the client by double-clicking on <font face="Courier New" ><b>CSharpClient.exe</b></font>.</li>
266 </ol>
267
268 <p>To use either of the stand-alone clients, enter a valid Social Security Number (SSN) in the Patient ID search field and click Submit to retrieve the patient's profile.</p>
269
270 </td></tr></table>
271 <p style="margin-left:10px">(Where <span class="style4">BEA_HOME</span> is the directory containing your WebLogic Server installation.) </p>
272 <hr >
273 <h3>Database Connectivity </h3>
274 <p style="margin-left:10px">Data for the MedRec applications is stored in a PointBase database installed with WebLogic Server. You can view the PointBase data directly by running the <font face="Courier New" >startPointBaseConsole.cmd</font> or <font face="Courier New" >startPointBaseConsole.sh</font> scripts located in the <font face="Courier New" class="style1">WL_HOME/common/eval/pointbase/tools</font> subdirectory of the WebLogic Server installation directory. The login for the demo database is medrec/medrec. DDL files and other scripts for using PointBase are located in the <span class="style1">WL_HOME/samples/server/medrec/setup/db</span> directory. </p>
275
276 <!--<p>
277 For more information about MedRec, see the WebLogic Server <b><a
278 href="http://edocs.bea.com/wls/docs81/medrec_tutorials/index.html">Tutorials</a></b> page.
279 </p>
280
281 <p>
282 For more information about the MedRec application itself, see the <b>
283 <b><a href="javadoc/index.html" target="_blank">MedRec Javadocs</a></b>.
284 </p>-->
285
286
287
288
289 <hr noshade="noshade" >
290 <p class="smaller"><a href="server/examples/src/examples/copyright.html" target="_blank">Copyright</a> © 2006 BEA Systems,
291 Inc. All Rights Reserved.</p
292
293 >
294 <p class="smaller"> </p
295
296 >
297 </body>
298 </html>
|