Files
2025-06-09 13:55:08 +02:00

628 lines
27 KiB
Plaintext

<%@ page import="com.tarisan.control.*" %>
<%@ page import="com.tarisan.data.*" %>
<%@ page import="com.tarisan.excepcion.*" %>
<%@ page import="com.tarisan.log.*" %>
<%@ page import="com.tarisan.util.Base64" %>
<%@ page import="com.tarisan.util.Utilidades" %>
<%@ page import="com.tarisan.util.DES" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.sql.Timestamp" %>
<%@ page import="java.util.Vector" %>
<%@ page import="java.util.Calendar" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.math.BigDecimal"%>
<%@ page import="com.tarisan.persistencia.PersistenciaParametros" %>
<%@ page import="java.io.*" %>
<%
//LogTarisan.logger.log(NivelLog.INFO, "Inicio p&aacute;gina de diagnostico (pac/diagnostico_NEW.jsp)");
response.setHeader("Expires", "0");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
HttpSession sesion = request.getSession(true);
if(sesion.isNew() || (sesion.getAttribute("USUARIO") == null))
{
LogTarisan.logger.log(NivelLog.INFO, "Sesi&oacute;n invalidada");
sesion.setAttribute("USUARIO", null);
response.sendRedirect(request.getContextPath() + "/html/login.html");
}
else
{
LogTarisan.logger.log(NivelLog.INFO, ((Usuario)sesion.getAttribute("USUARIO")).getMedico() + " - Inicio p&aacute;gina de diagnostico (pac/diagnostico_NEW.jsp)");
try
{
// Definicion de variables
String strParametroMenu="";
Calendar calFechaRx = Calendar.getInstance();
calFechaRx.add(Calendar.MONTH, -ParametrosConfiguracion.periodoRx);
java.sql.Date dtFechaRx = new java.sql.Date(calFechaRx.getTime().getTime());
int intPagina = 0;
StringBuffer strSql = new StringBuffer();
Object aCondiciones[]=null;
SimpleDateFormat sdfFormateadorFecha=new SimpleDateFormat(PersistenciaParametros.formatoFechas);
int intImpresion = 0;
String strListaElementosPrescripcion = "";
String strInformePrescripcion = "";
String strAutorizacion="";
//Obtenci&oacute;n del perfil del usuario conectado
StringBuffer perfil = new StringBuffer();
perfil.append("|");
perfil.append(sesion.getAttribute("PERFIL"));
perfil.append("|");
//Obtenemos los valores de los parametros que se pasan a la pagina
//En caso de que no se le pasen parametros, quedaram inicializados
//a sus valores por defecto
//parametro x para marcar la opcion del menu en la que se encuentra el usuario
if (request.getParameter("x")!=null)
strParametroMenu=(String)request.getParameter("x");
//parametro pagina para realizar la paginacion
if (request.getParameter("pagina")!=null)
intPagina=Integer.parseInt(request.getParameter("pagina"));
//parametro impresion que nos indica que se ha de realizar una impresion
if (request.getParameter("imp")!=null) {
intImpresion=Integer.parseInt(request.getParameter("imp"));
}
//parametro listaElementosPrescripciones utilizado para realizar la impresion
if (request.getParameter("listaElementosPrescripcion")!=null)
strListaElementosPrescripcion=(String)request.getParameter("listaElementosPrescripcion");
//parametro informePrescripcion utilizado para realizar la impresion
if (request.getParameter("informePrescripcion")!=null)
strInformePrescripcion=(String)request.getParameter("informePrescripcion");
//atributo autorizacion utilizado para realizar la impresion
if (request.getAttribute("autorizacion")!=null) {
strAutorizacion=(String)request.getAttribute("autorizacion");
}
Tamensaje tamensaje = new Tamensaje();
PersistenciaTamensaje pertamensaje = new PersistenciaTamensaje();
boolean mostrarNoticia = true;
PersistenciaTanoticias perTaNo = new PersistenciaTanoticias();
Vector vSeleccionNot = perTaNo.obtener_noticias_cabecera();
Vector vNoticias = new Vector();
String strNoticia = "";
String noticias ="";
String separador = " ---//--- ";
if(vSeleccionNot.size()==0){
mostrarNoticia = false;
}else{
mostrarNoticia = true;
Tanoticias tanoticia = null;
for(int i = 0; i < vSeleccionNot.size(); i++)
{
tanoticia = (Tanoticias)vSeleccionNot.elementAt(i);
if (i!=0){
strNoticia = strNoticia + separador + tanoticia.getNoticia();
}else{
strNoticia = tanoticia.getNoticia();
}
strNoticia = strNoticia.replaceAll("<br/>", " ");
}
}
String path = request.getContextPath();
if (request.getContextPath().indexOf("tarisan")==-1){
path = path + "/tarisan";
}
%>
<html>
<head>
<title>Diagnostico</title>
<link rel="shortcut icon" href="<%=path%>/img/logo.ico" />
<link rel="STYLESHEET" type="text/css" href="<%=path%>/css/estilos.css">
<link rel="STYLESHEET" type="text/css" href="<%=path%>/css/jquery-ui.css">
<link rel="STYLESHEET" type="text/css" href="<%=path%>/css/jquery-ui.min.css">
<link rel="STYLESHEET" type="text/css" href="<%=path%>/css/theme.css">
<script language="JavaScript" src="<%=path%>/js/imprimir.js"></script>
<script language="JavaScript" src="<%=path%>/js/inicio_tarisan.js"></script>
<script language="JavaScript" src="<%=path%>/js/menu_pac.js"></script>
<script language="JavaScript" src="<%=path%>/js/bloques_tarisan.js"></script>
<script language="JavaScript" src="<%=path%>/js/funciones.js"></script>
<script language="JavaScript" src="<%=path%>/js/jquery-1.11.3.js"></script>
<script language="JavaScript" src="<%=path%>/js/jquery-ui.js"></script>
<script language="JavaScript" src="<%=path%>/js/jquery-ui.min.js"></script>
<script language="JavaScript">pNG="<%= perfil.toString() %>"</script>
<script language="JavaScript" type="text/javascript">
<!--
//********************************************************************************************************************
//********************************************************************************************************************
//FUNCION UTILIZADA DESE LA PANTALLA DE IMPRESION PARA OBTENER LA LISTA DE ELEMENTOS
//********************************************************************************************************************
//********************************************************************************************************************
function obtenerArrayListaElementosPrescripcion()
{
//preparamos la lista de descripciones
//Quitamos las comillas simples para que al asignar el valor de la lista de elementos
//no kaske, ya que en esa asignacion se utiliza comillas simples
<%
String strListaElementosPrescripcionAux=strListaElementosPrescripcion.replace('\'', '~');
%>
//cogemos los valores de la lista sin comillas simples
var lstElementosPrescripcion = '<%=strListaElementosPrescripcionAux%>';
//restauramos las comillas simples para ponerlos con su valor original en el array de elementos
while(lstElementosPrescripcion.indexOf("~")!=-1)
lstElementosPrescripcion = lstElementosPrescripcion.replace("~", "'");
//inicializamos el array de elementos con sus valores originales
var i=0;
var vElementosPrescripcion = new Array();
if (lstElementosPrescripcion!="") //la lista no esta vacia
{
//quitamos el primer caracter separador
lstElementosPrescripcion=lstElementosPrescripcion.substring(lstElementosPrescripcion.indexOf("¬") + 1);
while (lstElementosPrescripcion.indexOf("¬")!=-1)
{
vElementosPrescripcion[i] = lstElementosPrescripcion.substring(0, lstElementosPrescripcion.indexOf("¬"));
lstElementosPrescripcion=lstElementosPrescripcion.substring(lstElementosPrescripcion.indexOf("¬") + 1);
i++;
}
}
return vElementosPrescripcion;
}
function obtenerInformePrescripcion()
{
//preparamos el informe de prescripcion
//Quitamos las comillas simples para que al asignar el valor del informe
//no kaske, ya que en esa asignacion se utiliza comillas simples
//quitamos los saltos de linea en caso de que los haya y los sustituimos por la etiqueta <br>
//dependiendo del navegador el salto de linea es diferente.
//explorer => \r\n
//netscape 6 => \n
<%
String strInformePrescripcionAux=strInformePrescripcion.replace('\'', '~');
if (strInformePrescripcionAux.indexOf("\r\n")!=-1)
strInformePrescripcionAux=strInformePrescripcionAux.replaceAll("\r\n", "<br>");
else if (strInformePrescripcionAux.indexOf("\n")!=-1)
strInformePrescripcionAux=strInformePrescripcionAux.replaceAll("\n", "<br>");
%>
//cogemos los valores del informe sin comillas simples
var informePrescripcion = '<%=strInformePrescripcionAux%>';
//restauramos las comillas simples para ponerlos con su valor original
while(informePrescripcion.indexOf("~")!=-1)
informePrescripcion = informePrescripcion.replace("~", "'");
return informePrescripcion;
}
//********************************************************************************************************************
//********************************************************************************************************************
//FUNCION UTILIZADA DESE LA PANTALLA DE IMPRESION PARA OBTENER LA LISTA DE ELEMENTOS
//********************************************************************************************************************
//********************************************************************************************************************
function comprobarImpresion(impresion)
{
if (impresion==1) { //se efectua la impresion
//VentanaImpresion('<%=request.getContextPath()%>','<%=request.getContextPath()%>/jsp/imp/impDiagnostico.jsp?autorizacion=<%=strAutorizacion%>');
//var ventanaDiagnos = window.open('<%=request.getContextPath()%>/peticiones/<%=strAutorizacion%>.pdf',"<%=strAutorizacion%>","dependent=1,height=490,width=720,left=150,top=100,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no,toolbar=no,directories=no");
document.frmImprimirPeticion.nombrePDF.value = "<%=strAutorizacion%>";
document.frmImprimirPeticion.submit();
}
}
function nuevaPrescripcion()
{
document.frmSolicitudPrescripcion.submit();
}
function paginacion(pagina)
{
document.frmPrescripcion.pagina.value=pagina;
document.frmPrescripcion.submit();
}
//-->
</script>
</head>
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" alink="#43881A" bgcolor="#FFFFFF" onLoad="javascript:comprobarImpresion(<%=intImpresion%>)">
<div class="marco">
<!-- Datos del usuario conectado //-->
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
<tr>
<td class="tdLogoCabecera"><img src="<%=request.getContextPath()%>/img/logo.png" class="logoCabecera"></td>
<td>
<table width="100%">
<tr><td class="tituloTablaMedico" align="center"><%= sesion.getAttribute("USUARIO") %></td></tr>
<tr>
<td>
<div id="contenedorNoticia">
<br>
<div class="tituloNoticia">
<p class="marquee"><%=strNoticia %></p>
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
<!-- Cabecera de Navegaci&oacute;n superior //-->
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
<tr>
<td><script language="JavaScript">bloques();</script></td>
</tr>
</table>
<br>
<!-- Datos del paciente introducido mediante la lectura de la tarjeta //-->
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
<tr>
<td class="tituloTabla" align="center"><%= sesion.getAttribute("PACIENTE") %></td>
</tr>
</table>
<br>
<!-- Cuerpo de la p&aacute;gina //-->
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width:95%">
<tr valign="top">
<!--<td width="180">//-->
<td width="5%">
<!-- Men&uacute; de navegaci&oacute;n del m&oacute;dulo (zona izquierda) //-->
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td colspan="2"><img src="<%=request.getContextPath()%>/img/sp.gif" width="180" height="12" border="0"></td>
</tr>
<tr valign="top">
<td><script language="JavaScript">escribirMenuGst();</script></td>
</tr>
</table>
</td>
<td width="565">
<!-- Tabla con el contenido de la p&aacute;gina (zona central-derecha) //-->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="1px" bgcolor="#CCCCCC" height="220"></td>
<td class="txt" valign="top">
<img src="<%=request.getContextPath()%>/img/sp.gif" width="1" height="11" border="0"><br>
<table border="0" align="center" width="100%">
<%
Tarjeta tarjeta = ((Paciente)sesion.getAttribute("PACIENTE")).getTarjeta();
if(!((Paciente)sesion.getAttribute("PACIENTE")).get_noesiguala_inactivar() && tarjeta.getEntidadChipcard().compareTo(ParametrosConfiguracion.bin_chipcard_propios)==0)
{
%>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td align="center" class="txtNegrita"><% tamensaje = pertamensaje.obtenerMensaje(11); %><%=tamensaje.getMensaje() %></td>
</tr>
<%
}
else
{
%>
<!-- Presentacion de los resultados -->
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<!-- formulario para realizar la paginacion en caso necesario -->
<form name="frmPrescripcion" action="diagnostico.jsp?x=<%=strParametroMenu%>" method="post">
<input type="hidden" name="pagina" value="1">
</form>
<!-- formulario para enviar la peticion a la pagina de solicitud de diagnostico -->
<form name="frmSolicitudPrescripcion" action="<%=request.getContextPath()%>/jsp/pac/solicitudDiagnosticoNiveles.jsp?x=<%=strParametroMenu%>" method="post">
<input type="hidden" name="pagina" value="1">
</form>
<%
Paciente pac = new Paciente();
pac = (Paciente)sesion.getAttribute("PACIENTE");
//Creaci&oacute;n de la tabla presentaci&oacute;n de resultados
String colec,pol,ord;
colec = Long.valueOf(pac.getTarjeta().getColectivo()).toString();
pol = new BigDecimal(pac.getTarjeta().getPoliza()).toString();
ord = Integer.valueOf(pac.getTarjeta().getBeneficiario()).toString();
int med = ((Usuario)sesion.getAttribute("USUARIO")).getMedico();
PersistenciaVTaprescaTaclient per = new PersistenciaVTaprescaTaclient();
/*Vector vSeleccion = per.listado_diagnostico_gpc_por_cliente(numafil, intPagina);*/
Vector vSeleccion = per.listado_rx_por_paciente(colec, pol, ord, dtFechaRx, med, intPagina);
LogTarisan.logger.log(NivelLog.DEBUG, ((Usuario)sesion.getAttribute("USUARIO")).getMedico() + " - Resultados radiodiagnosticos: " + vSeleccion.size());
if (vSeleccion.size()==0) //No se han encontrado datos
{
%>
<tr>
<td colspan="5">&nbsp;</td>
</tr>
<tr>
<td colspan="5" align="center"><span class="txt">El paciente no tiene ning&uacute;n radiodiagn&oacute;stico efectuado durante los &uacute;ltimos <%=ParametrosConfiguracion.periodoAnalisis%> meses.</span></td>
</tr>
<tr><td colspan="5">&nbsp;</td></tr>
<tr>
<td colspan="5" align="center"><a href="javascript:nuevaPrescripcion()" class="enlace">Nueva prescripci&oacute;n</a></td>
</tr>
<%
}
else
{
if (intPagina != 0){ //se tiene en cuenta la paginacion
%>
<tr>
<td colspan="2" align="right"><span class="txt">P&aacute;gina <%=per.getPaginacion().getNumeroPagina()%> de <%=per.getPaginacion().getNumeroPaginasTotales()%></span></td>
</tr>
<%
}
%>
<tr>
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA">Fecha</td>
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA">Prescriptor</td>
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA">Prueba Realizada</td>
<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA">Informe</td>
<%
//Para evitar que salga el enlace de ver las im&aacute;genes
//<td class="cabeceraTabla" align="center" bgcolor="#FFAAAA">Ver Imagenes</td> %>
</tr>
<%
/*VTaresanaTaclient vTaresanaTaclient = null;*/
Ttrayos ttrayos = null;
String estilo = "";
for(int i = 0; i < vSeleccion.size(); i++)
{
if (i % 2 == 0)
{
estilo = "filaA";
}
else
{
estilo = "filaB";
}
/*vTaresanaTaclient = (VTaresanaTaclient)vSeleccion.elementAt(i); */
ttrayos = (Ttrayos)vSeleccion.elementAt(i);
%>
<tr class="trResultados">
<td class="<%=estilo%>" align="center">
<%
String peticion = ""+ttrayos.getPeticion() ;
/*peticion = (peticion.length()<8)?"0"+peticion:peticion;*/
String peticionE = ""+ttrayos.getPeticionEncriptada();
String ruta = ParametrosConfiguracion.ruta_pdf_peticiones_rx;
File ficheroPeticion = new File(ruta+peticion+".pdf");
if(ficheroPeticion.exists()) //Busco en la nueva ubicaci&oacute;n
{
%>
<form name="resultados" action="<%=request.getContextPath()%>/servlet/GestorPacientes" target="blank" method="post" style="margin-bottom: 0px">
<input type="hidden" name="tipo" value="14"/>
<input type="hidden" name="nombrePDF" value="<%=/*ficheroPeticion.getName()*/peticionE%>" />
<input type="hidden" name="OPCION" value="<%=Constantes.OPC_PAC_VER_PDF%>">
<input type="submit" value="<%=sdfFormateadorFecha.format(ttrayos.getFecha())%>" class="enlacePeticion"></input>
</form>
<%
}else{
ruta = ParametrosConfiguracion.ruta_pdf_peticiones;
ficheroPeticion = new File(ruta+peticion+".pdf");
if(ficheroPeticion.exists()) //Busco en la ubicaci&oacute;n vieja
{
%>
<form name="resultados" action="<%=request.getContextPath()%>/servlet/GestorPacientes" target="blank" method="post" style="margin-bottom: 0px">
<input type="hidden" name="tipo" value="15"/>
<input type="hidden" name="nombrePDF" value="<%=/*ficheroPeticion.getName()*/peticionE%>" />
<input type="hidden" name="OPCION" value="<%=Constantes.OPC_PAC_VER_PDF%>">
<input type="submit" value="<%=sdfFormateadorFecha.format(ttrayos.getFecha())%>" class="enlacePeticion"></input>
</form>
<%
}else{
%>
<span align="center"><%=sdfFormateadorFecha.format(ttrayos.getFecha())%></span>
<%
}
}
%>
</td>
<td class="<%=estilo%>" align="center"><%=ttrayos.getPrescriptor()%></td>
<td class="<%=estilo%>" align="center"><%=ttrayos.getPrueba()%></td>
<td class="<%=estilo%>" align="center"><table><tr>
<%
String episodioE = ttrayos.getEpisodioEncriptado();
String nhc = "NHC_"+ttrayos.getNhc().trim();
String filtro = ttrayos.getEpisodio()+"_";
String direccion = ParametrosConfiguracion.ruta_pdf_informes_rx+nhc+"/";
File dir = new File(ParametrosConfiguracion.ruta_pdf_informes_rx+nhc+"/");
/*Vector<String> archivos = Utilidades.buscar_ficheros_recursivo_rx(dir);*/
Vector<String> archivos = Utilidades.buscar_informes_rx(dir,filtro);
if ((archivos == null)||(archivos.size() == 0)) {
%><%="No hay informe"%><%
}
else {
for (int f=0; f < archivos.size() ; f++) {
String filename = archivos.elementAt(f);
DES encrypter = new DES(""+med);
/*String*/ ruta = filename.substring(ParametrosConfiguracion.ruta_pdf_informes_rx.length());
String[] partes = ruta.split("\\.");
ruta = partes[0];
String rutaE = encrypter.encrypt(ruta);
String MostrarNombre = "Informe " + (f+1);
%><td><form name="resultados" action="<%=request.getContextPath()%>/servlet/GestorPacientes" target="blank" method="post" style="margin-bottom: 0px;float:left">
<input type="hidden" name="tipo" value="3"/>
<input type="hidden" name="nombrePDF" value="<%=rutaE%>" />
<input type="hidden" name="OPCION" value="<%=Constantes.OPC_PAC_VER_PDF%>">
<input type="submit" value="<%=MostrarNombre %>" class="enlace"></input>
</form></td><%
}
}
%></tr></table></td>
<% /*Con esta url accedemos al pacs para ver las im&aacute;genes.
https://pacs.clinicasanmiguel.es:8443/Login2.aspx?User="+usuario_codificado+"&Pass="+password_codificado+"&UID="+uid+"&IdPaciente="+num_paciente +"&IdEstudio=&Accession="+num_estudio+"&RequestId=&Modalidades=XSPACS/
https://pacs.clinicasanmiguel.es:8443/Login2.aspx?User===QZ0F2bklmZ&Pass=xEjNxQTMxEDMyYDM4ATZ0F2bklmZ&UID=2.16.840.1.113883.2.1.3.7.1000043610&IdPaciente=&IdEstudio=&Accession=43610&RequestId=&Modalidades=XSPACS/
uid = '2.16.840.1.113883.2.1.3.7.100000000' + num_estudio (36 caracteres)
idpaciente=
*/
/* String exploracion = new String();
exploracion = (Integer.valueOf(vTaresanaTaclient.getAutorizacion())).toString();
for(int conta = 0; conta < 5 - longitud ; conta++)
{
exploracion = "0" + exploracion;
}*/
/*
//Usuario=invertir(base64("fidoate"))
//passwd=((fidoate+system.time)base64)invertido
//
//*/
/*String usuario = "fidoate";
String passwd = "fidoate";
Calendar cal = Calendar.getInstance();
int minutos = cal.get(Calendar.MINUTE);
cal.set(Calendar.MINUTE, minutos+30);
String tiempovalidez = passwd;*/
//cal.get(Calendar.HOUR_OF_DAY) + (cal.get(Calendar.MINUTE)+30) + "00";
/* if(cal.get(Calendar.DAY_OF_MONTH) < 10){
tiempovalidez = tiempovalidez + "0" + cal.get(Calendar.DAY_OF_MONTH);
}
else{
tiempovalidez = tiempovalidez + cal.get(Calendar.DAY_OF_MONTH);
}
if(cal.get(Calendar.MONTH)+1 < 10){
tiempovalidez = tiempovalidez + "0" + (cal.get(Calendar.MONTH)+1);
}
else{
tiempovalidez = tiempovalidez + (cal.get(Calendar.MONTH)+1);
}
tiempovalidez = tiempovalidez + cal.get(Calendar.YEAR);
if(cal.get(Calendar.HOUR_OF_DAY)<10){
tiempovalidez = tiempovalidez + "0" + cal.get(Calendar.HOUR_OF_DAY);
}
else{
tiempovalidez = tiempovalidez + cal.get(Calendar.HOUR_OF_DAY);
}
if(cal.get(Calendar.MINUTE) < 10){
tiempovalidez = tiempovalidez + "0" + cal.get(Calendar.MINUTE);
}
else{
tiempovalidez = tiempovalidez + cal.get(Calendar.MINUTE);
}
tiempovalidez = tiempovalidez + "00";
usuario = Utilidades.invertir_string(Base64.encode(usuario));
//passwd = Utilidades.invertir_string(Base64.encode("fidoate11112011182200"));
//https://192.168.2.192/tarisan/jsp/pac/ fidoate06132011103300
passwd = Utilidades.invertir_string(Base64.encode(tiempovalidez));*/
//para que funcione bien el enlace que est&aacute; aqu&iacute; comentado hay que quitar los espacios entre el % y el > en:
//<%=passwd% >
//<%=exploracion% >
//<%=vTaresanaTamedico.getAutorizacion()% >
//<td class="enlace"><a target="blank" href="https://pacs.clinicasanmiguel.es:8443/Login2.aspx?User=<%=usuario% >&Pass=<%=passwd% >&UID=2.16.840.1.113883.2.1.3.7.1<%=exploracion% >&IdPaciente=&IdEstudio=&Accession=<%=vTaresanaTamedico.getAutorizacion()% >&RequestId=&Modalidades=XSPACS/">Ver imagenes</a></td>
%>
<%
/*}*/
%>
</tr>
<%
}
%>
<tr><td colspan="5">&nbsp;</td></tr>
<tr>
<td colspan="5" align="center"><a href="javascript:nuevaPrescripcion()" class="enlace">Nueva prescripci&oacute;n</a></td>
</tr>
<% if (intPagina!=0){ //se tiene en cuenta la paginacion %>
<tr><td colspan="2"></td></tr>
<tr>
<td colspan="2">
<table border="0" align="center">
<tr>
<%if (per.getPaginacion().esPrimeraPagina()){%>
<td width="70" align="right"><span class="pagDesactivo">primero</span></td>
<td></td>
<td width="70" align="left"><span class="pagDesactivo">anterior</span></td>
<%}else{%>
<!--<td width="70" align="right"><a href="javascript:paginacion(1)" class="enlace">primero</a></td>-->
<td width="70" align="right"><a href="<%=request.getContextPath()%>/jsp/pac/diagnostico.jsp?x=4&pagina=1" class="enlace">primero</a></td>
<td></td>
<!--<td width="70" align="left"><a href="javascript:paginacion(<%=per.getPaginacion().getNumeroPagina() - 1%>)" class="enlace">anterior</a></td>-->
<td width="70" align="left"><a href="<%=request.getContextPath()%>/jsp/pac/diagnostico.jsp?x=4&pagina=<%=per.getPaginacion().getNumeroPagina() - 1%>" class="enlace">anterior</a></td>
<%}%>
<%if (per.getPaginacion().esUltimaPagina()){%>
<td width="70" align="right"><span class="pagDesactivo">siguiente</span></td>
<td></td>
<td width="70" align="left"><span class="pagDesactivo">&uacute;ltimo</span></td>
<%}else{%>
<!--<td width="70" align="right"><a href="javascript:paginacion(<%=per.getPaginacion().getNumeroPagina() + 1%>)" class="enlace">siguiente</a></td>-->
<td width="70" align="right"><a href="<%=request.getContextPath()%>/jsp/pac/diagnostico.jsp?x=4&pagina=<%=per.getPaginacion().getNumeroPagina() + 1%>" class="enlace">siguiente</a></td>
<td></td>
<!--<td width="70" align="left"><a href="javascript:paginacion(<%=per.getPaginacion().getNumeroPaginasTotales()%>)" class="enlace">&uacute;ltimo</a></td>-->
<td width="70" align="left"><a href="<%=request.getContextPath()%>/jsp/pac/diagnostico.jsp?x=4&pagina=<%=per.getPaginacion().getNumeroPaginasTotales()%>" class="enlace">&uacute;ltimo</a></td>
<%}%>
</tr>
</table>
</td>
</tr>
<%
} //fin if(pagina!=0)
} //fin else (vSeleccion.size()!=0)
}
%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<form name="frmImprimirPeticion" action="<%=request.getContextPath()%>/servlet/GestorPacientes" target="blank" method="post" style="width:50%;margin-bottom: 0px">
<input type="hidden" name="tipo" value="14"/>
<input type="hidden" name="nombrePDF" value="" />
<input type="hidden" name="OPCION" value="<%=Constantes.OPC_PAC_VER_PDF%>">
</form>
</body>
</html>
<script>
var jsMostrarNoticia = <%=mostrarNoticia %>;
if (!jsMostrarNoticia){
document.getElementById('contenedorNoticia').style.display="none";
}else{
<% strNoticia = strNoticia.replaceAll("\"", "'"); %>
var not = "<%=strNoticia %>";
tamanioNoticia(not);
marquee($('.tituloNoticia'), $('.marquee'),not);
}
</script>
<%
}
catch(Exception ex)
{
LogTarisan.logger.log(NivelLog.ERROR, ((Usuario)sesion.getAttribute("USUARIO")).getMedico() + " - Exception: " + ex);
sesion.setAttribute("ERROR", "ExcepcionTarisan: " + ex);
response.sendRedirect("../error.jsp");
}
LogTarisan.logger.log(NivelLog.INFO, ((Usuario)sesion.getAttribute("USUARIO")).getMedico() + " - Final p&aacute;gina de diagnostico (pac/diagnostico.jsp)");
}
%>