<% //this page redirects the staff member to the patient demographic page //as the patient demographic page uses the hashtable with data so this page //makes up the hashtable and puts it into the session %> <%@page language="java" %> <%@page import="java.util.*" %> <%@page import="geysers.utils.GeysersSiteConstants" %> <%@page import="geysers.ejb.patient.*" %> <%@page import="java.util.*"%> <%@page import="geysers.ejb.patient.RegistrationDetails" %> <%@page import="geysers.ejb.patient.*" %> <%@page import="geysers.beans.om.StaffEntryInfo" %> <%@page import="geysers.ejb.patient.LastVisitedInfo" %> <%@page import="CIStems.utils.logWriter.LogWriter"%> <%@page import="geysers.utils.CP" %> <% int pid=0; String prid=""; String patientId=""; PatientDemographicInfo pdi=null; Hashtable hashTable = new Hashtable(); PatientPracticeInfo ptpatientinfo = null; RegistrationDetails details = null; // this file receives patient id as a parameter and then it fetches the appropriate //patientdemographic object in the session and redirect to demographic page session.removeAttribute("PatientDemographicInfo"); patientId = request.getParameter("patientId"); if(request.getParameter("pid")!=null){ patientId = request.getParameter("pid"); } if(patientId!=null){ try{ pid = Integer.parseInt(patientId); }catch(NumberFormatException nfe){nfe.printStackTrace();} if (pid > 0){ if((StaffEntryInfo)session.getAttribute("staffEntryInfo") != null){ prid=(new Integer(((StaffEntryInfo)session.getAttribute("staffEntryInfo")).PRID)).toString(); }else if(((LastVisitedInfo)session.getAttribute("LastVisitedInfo")) != null){ prid=(new Integer(((LastVisitedInfo)session.getAttribute("LastVisitedInfo")).prid)).toString(); } pdi = patientmanagerjbean.getPatientDemographicInfoBlob(pid); if(pdi != null) { hashTable = pdi.getHashtable(); details = patientmanagerjbean.getRegistrationInfo(pdi.PID); ptpatientinfo = patientmanagerjbean.getPatientPracticeInfo(pdi.PID,Integer.parseInt(prid)); hashTable.put("pid",new Integer(pdi.PID)); hashTable.put("pcl",ptpatientinfo.oid+""); hashTable.put("pcp",ptpatientinfo.doid+""); if(details.unme==null) { hashTable.put("unme",""); } else{ hashTable.put("unme",details.unme); } if(details.upasswd==null) { hashTable.put("upasswd",""); } else { hashTable.put("upasswd",details.upasswd); } String nonDisplayFormat="Data is stored in non displayed format in the DataBase"; session.setAttribute("nonDisplayFormat",nonDisplayFormat); session.setAttribute("PatientDemoModifyDetail",hashTable); %> <% return; }else{ response.sendRedirect("patient_error.jsp?loginstatus="+GeysersSiteConstants.AFTER_LOGIN+"&message=No patientId Passed"); } }else{ response.sendRedirect("patient_error.jsp?loginstatus="+GeysersSiteConstants.AFTER_LOGIN+"&message=No patientId Passed"); } }else{ response.sendRedirect("patient_error.jsp?loginstatus="+GeysersSiteConstants.AFTER_LOGIN+"&message=No patientId Passed"); } %>