001 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
002 <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
003 <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
004 <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
005 <%@ taglib uri="/WEB-INF/sslext.tld" prefix="sslext"%>
006 <%@ page import="com.bea.medrec.actions.PatientConstants" %>
007
008 <html:html>
009 <head>
010 <title><bean:message key="title.MedRec"/></title>
011 <link rel="stylesheet" type="text/css" HREF="stylesheet.css">
012 </head>
013
014 <body bgcolor="white" topmargin="0" leftmargin="0">
015
016 <!-- START Header -->
017 <jsp:include page="Header.jsp" flush="true"/>
018 <!-- END Header -->
019
020 <!-- START Padding for Content -->
021 <table width="100%" border="0" cellspacing="1" cellpadding="10">
022 <tr>
023 <td>
024
025 <!-- START Content -->
026 <span class="pagetitle-patient"><bean:message key="page.title.home"/></span>
027 <br/>
028 <br/>
029
030 <!-- START Visit Content -->
031 <p class="title"><bean:message key="page.title.visits"/></p>
032 <table border="0" cellspacing="0" cellpadding="2">
033 <tr>
034 <td> </td>
035 <td>
036 <table border="1" cellspacing="0" cellpadding="2">
037 <!-- Visit Title -->
038 <!-- Note that the style 'coltitle-patient' should vary
039 (coltitle-patient, coltitle-patient) for the user type -->
040 <tr>
041 <td class=coltitle-patient><bean:message key="Date"/></td>
042 <td class=coltitle-patient><bean:message key="VisitReason"/></td>
043 <td class=coltitle-patient><bean:message key="Physician"/></td>
044 </tr>
045
046 <!-- START Dynamic Record Content -->
047 <bean:define id="recordBeans"
048 name="<%=PatientConstants.RECORD_BEANS%>"
049 scope="request"/>
050 <bean:size id="recordSize" name="recordBeans"/>
051 <logic:equal name="recordSize" value="0" >
052 <tr>
053 <td colspan="3"><bean:message key="message.no.records"/></td>
054 </tr>
055 </logic:equal>
056 <logic:greaterThan name="recordSize" value="0" >
057 <logic:iterate id="recordBean"
058 name="recordBeans"
059 type="com.bea.medrec.beans.RecordBean">
060 <tr>
061 <td>
062 <sslext:link page="/record.do" paramId="id"
063 paramName="recordBean" paramProperty="id">
064 <bean:write name="recordBean" property="date"/>
065 </sslext:link>
066 </td>
067 <td><bean:write name="recordBean" property="symptoms"/></td>
068 <td><bean:write name="recordBean" property="physicianName"/></td>
069 </tr>
070 </logic:iterate>
071 </logic:greaterThan>
072 <!-- END Dynamic Record Content -->
073 </table>
074 </td>
075 </tr>
076 </table>
077
078 <!-- END Visit Content -->
079 <br/>
080 <br/>
081 <br/>
082
083 <!-- START Prescriptions -->
084 <p class="title"><bean:message key="Prescriptions"/></p>
085 <table border="0" cellspacing="0" cellpadding="2">
086 <tr><td> </td><td>
087 <table border="1" cellspacing="0" cellpadding="2">
088 <tr>
089 <td class=coltitle-patient><bean:message key="DateStarted"/></td>
090 <td class=coltitle-patient><bean:message key="Drug"/></td>
091 <td class=coltitle-patient><bean:message key="Dosage"/></td>
092 <td class=coltitle-patient><bean:message key="Frequency"/></td>
093 <td class=coltitle-patient><bean:message key="Refills"/></td>
094 <td class=coltitle-patient><bean:message key="Instructions"/></td>
095 </tr>
096
097 <!-- START Dynamic Prescription Content -->
098 <bean:define id="prescriptionBeans"
099 name="<%=PatientConstants.PRESCRIPTION_BEANS%>"
100 scope="request"/>
101 <bean:size id="prescriptionSize" name="prescriptionBeans"/>
102 <logic:equal name="prescriptionSize" value="0" >
103 <tr><td colspan="6">
104 <bean:message key="message.no.prescriptions.prescribed"/>
105 </td></tr>
106 </logic:equal>
107 <logic:greaterThan name="prescriptionSize" value="0" >
108 <logic:iterate id="prescriptionBean"
109 name="prescriptionBeans"
110 type="com.bea.medrec.beans.PrescriptionBean">
111 <tr>
112 <td><bean:write name="prescriptionBean" property="datePrescribed"/></td>
113 <td><bean:write name="prescriptionBean" property="drug"/></td>
114 <td><bean:write name="prescriptionBean" property="dosage"/></td>
115 <td><bean:write name="prescriptionBean" property="frequency"/></td>
116 <td><bean:write name="prescriptionBean" property="refillsRemaining"/></td>
117 <td><bean:write name="prescriptionBean" property="instructions"/> </td>
118 </tr>
119 </logic:iterate>
120 </logic:greaterThan>
121 <!-- END Dynamic Record Content -->
122 </table>
123 </td>
124 </tr>
125 </table>
126
127
128 <!-- END Content -->
129 </td>
130 </tr>
131 </table>
132 <!-- END Padding for Content -->
133
134 </body>
135 </html:html>
|