<%@page language="java" %> <%@page import="geysers.utils.GeysersSiteConstants"%> <%@page import="geysers.utils.GeysersSiteUtilities"%> <%@page import="geysers.utils.GeysersSiteProperties"%> <%@page import="geysers.utils.GeysersSiteValidations"%> <%@page import="geysers.beans.om.StaffEntryInfo" %> <%@page import="geysers.ejb.patient.QuestionnaireInfo"%> <%@page import="geysers.ejb.patient.LastVisitedInfo" %> <%@page import="geysers.ejb.patient.*" %> <%@page import="java.util.*"%> <%@page import="java.sql.*"%> <%@page import="CIStems.utils.logWriter.LogWriter"%> <%@page import="geysers.utils.CP" %> <%@page import="geysers.beans.om.PhysicianInfo" %> <%response.setHeader("Cache-Control","no-cache");%> <%//response.setHeader("Cache-Control","no-store");%> <%response.setHeader("Pragma","no-cache");%> <% int patientId=0; String ptId = request.getParameter("patientId"); LastVisitedInfo lvi = null; int prid=0; if(ptId !=null){ //int pid=0; try{ patientId = Integer.parseInt(ptId); }catch(NumberFormatException nfe){nfe.printStackTrace();} }else { lvi= (LastVisitedInfo)session.getAttribute("LastVisitedInfo"); if(lvi != null){ patientId=lvi.pid; prid=lvi.prid; } } Connection conn=null; Statement stmt=null; ResultSet rs=null; StringBuffer existingqname=new StringBuffer(); try{ conn=GeysersSiteUtilities.getConnection(); stmt=conn.createStatement(); StringBuffer query=new StringBuffer(); query.append("select distinct qname from com_pqu where prid="+prid); rs=stmt.executeQuery(query.toString()); while(rs.next()){ existingqname.append(""); } } catch(Exception er){ } finally{ try{ if(conn!=null)conn.close(); if(stmt!=null)stmt.close(); if(rs!=null)rs.close(); } catch(Exception er){ } } String qname=""; if(request.getParameter("qname")!=null){ qname=request.getParameter("qname"); } %> <%= geysers.utils.GeysersSiteConstants.TITLE_PATIENT_QUESTIONNAIRE %> <%@include file="patientmenu.jsp"%>
<%if(patientId>-1) {%> <%}%> <% if(quesVector != null && quesVector.size() > 0){ %> <% } %>
 
<% if( session.getAttribute("staffEntryInfo") != null) { %> <% Vector data=patientManagerJBean.getPatientSearchResults(((StaffEntryInfo)session.getAttribute("staffEntryInfo")).PRID,patientId,0,"","","","","","",null,"","pfnm"); if(data!=null && ((SearchPatientInfo)(data.elementAt(0))).status.equalsIgnoreCase(GeysersSiteConstants.STATUS_ACTIVE)){%> Claim    <%}%> Payment    Transactions      <%}%>
 
<% QuestionnaireInfo tempQn=null; Vector quesVector=new Vector(); //patient login last visited info int doid=0; if(request.getParameter("doid")!=null){ doid=Integer.parseInt(request.getParameter("doid")); } System.out.println("doid**"+doid); System.out.println("lvi**"+lvi); if(!(qname.equals(""))){ if(lvi != null){ if(doid!=0){ quesVector= patientManagerJBean.getQuestionnaire1(((LastVisitedInfo)session.getAttribute("LastVisitedInfo")).prid,patientId,doid,qname,"P"); System.out.println("Question No +++++:"+quesVector); }else{ quesVector= patientManagerJBean.getQuestionnaire1(((LastVisitedInfo)session.getAttribute("LastVisitedInfo")).prid,patientId,qname,"P"); } }else{ if(doid!=0){ quesVector= patientManagerJBean.getQuestionnaire1(((StaffEntryInfo)session.getAttribute("staffEntryInfo")).PRID,patientId,doid,qname,"P"); }else{ quesVector= patientManagerJBean.getQuestionnaire1(((StaffEntryInfo)session.getAttribute("staffEntryInfo")).PRID,patientId,qname,"P"); } } } //Vector quesVector= patientManagerJBean.getQuestionnaire(1); System.out.println("Question No +++++:"+quesVector); %> <% if(quesVector != null && quesVector.size() > 0){ %> <% }//end of If else{ CP.sop("Good"); %> <% } //end of else %>
Patient Id: <% if (lvi != null){ %> <%=patientId%> <% }else{%> <%=patientId%> <% }%> Name:   <% if(lvi != null) {%> <%= patientManagerJBean.getPatientName(patientId)%> <%}else{%> <%= patientManagerJBean.getPatientName(patientId)%> <%}%> Physician:   Questionnarie Name:  <%=qname%>
<% for(int i=0;i <% if(tempQn.qtype.equalsIgnoreCase(GeysersSiteConstants.QTYPE_DESC)){ %> <% }else if (tempQn.qtype.equalsIgnoreCase(GeysersSiteConstants.QTYPE_MULTI)){ %> <% }else if(tempQn.qtype.equalsIgnoreCase(GeysersSiteConstants.QTYPE_OPT)){ %> <% }// end of else if else if(tempQn.qtype.equalsIgnoreCase("FORM")){ %> <% } }// end of for %>
Q#<%=i+1%>:   <%=tempQn.question%>
<% CP.sop("**********choice1 : " + tempQn.choice1); if(tempQn.choice1!=null && !tempQn.choice1.trim().equalsIgnoreCase("")) { if(tempQn.isChoice1Selected==true){ %> <%= tempQn.choice1%>  <% }else{ %> <%= tempQn.choice1%>  <% } } %> <% CP.sop("**********choice2 : " + tempQn.choice2); if(tempQn.choice2!=null && !tempQn.choice2.trim().equalsIgnoreCase("")) { if(tempQn.isChoice2Selected==true){ %> <%= tempQn.choice2%>  <% }else{ %> <%= tempQn.choice2%>  <% } } %> <% CP.sop("**********choice3 : " + tempQn.choice3); if(tempQn.choice3!=null && !tempQn.choice3.trim().equalsIgnoreCase("")) { if(tempQn.isChoice3Selected==true){ %> <%= tempQn.choice3%>  <% }else{ %> <%= tempQn.choice3%>  <% } } %> <% CP.sop("**********choice4 : " + tempQn.choice4); if(tempQn.choice4!=null && !tempQn.choice4.trim().equalsIgnoreCase("")) { if(tempQn.isChoice4Selected==true){ %> <%= tempQn.choice4%>  <% }else{ %> <%= tempQn.choice4%>  <% } } %>
<% CP.sop("**********choice1 : " + tempQn.choice1); if(tempQn.choice1!=null && !tempQn.choice1.trim().equalsIgnoreCase("")) { if(tempQn.isChoice1Selected==true){ %> <%= tempQn.choice1%>  <% }else{ %> <%= tempQn.choice1%>  <% } } %> <% CP.sop("**********choice2 : " + tempQn.choice2); if(tempQn.choice2!=null && !tempQn.choice2.trim().equalsIgnoreCase("")) { if(tempQn.isChoice2Selected==true){ %> <%= tempQn.choice2%>  <% }else{ %> <%= tempQn.choice2%>  <% } } %> <% CP.sop("**********choice3 : " + tempQn.choice3); if(tempQn.choice3!=null && !tempQn.choice3.trim().equalsIgnoreCase("")) { if(tempQn.isChoice3Selected==true){ %> <%= tempQn.choice3%>  <% }else{ %> <%= tempQn.choice3%>  <% } } %> <% CP.sop("**********choice4 : " + tempQn.choice4); if(tempQn.choice4!=null && !tempQn.choice4.trim().equalsIgnoreCase("")) { if(tempQn.isChoice4Selected==true){ %> <%= tempQn.choice4%>  <% }else{ %> <%= tempQn.choice4%>  <% } } %>
<%= tempQn.filename%> 
 

Questions not exists

 
 
    <%if(lvi != null){%> <%}else{%> '"> <%}%>
\