예제 #1
0
        // GET: Locker
        public ActionResult AsignarCamaPaciente(int id, int IngresoId)
        {
            IngresoResidente ingresoResidente = db.IngresoResidentes.Where(x => x.IngresoResidenteId == IngresoId).FirstOrDefault();
            Cama             cama             = db.Camas.Where(x => x.CamaId == id).FirstOrDefault();
            var asignacionAnterior            = db.CamaAsignada.Where(x => x.Cama.CamaId == cama.CamaId && x.vigente == true).FirstOrDefault();

            if (asignacionAnterior != null)
            {
                asignacionAnterior.FechaRetiro     = DateTime.Now;
                asignacionAnterior.vigente         = false;
                db.Entry(asignacionAnterior).State = EntityState.Modified;
                db.SaveChanges();
            }
            cama.EstadoCamaId    = EstadoCama.Ocupado;
            db.Entry(cama).State = EntityState.Modified;
            db.SaveChanges();
            CamaAsignada camaAsignada = new CamaAsignada();

            camaAsignada.PacienteId      = ingresoResidente.PacienteId;
            camaAsignada.Cama            = cama;
            camaAsignada.FechaAsignacion = DateTime.Now;
            camaAsignada.vigente         = true;
            db.Entry(camaAsignada).State = EntityState.Added;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
        protected void ImageButton6_Click(object sender, ImageClickEventArgs e)
        {
            Paciente oPaciente = LPaciente.Find(x => x.dni == LdPaciente.SelectedItem.ToString());

            oPaciente.especialidad = LdEspecialidad.SelectedItem.ToString();
            Especialidad oEspecialidad = LEspecialidades.Find(x => x.nombre == LdEspecialidad.SelectedItem.Text);

            oEspecialidad.AddPaciente(oPaciente);
            List <Medico> LMedicos = oEspecialidad.verMedicos();
            Medico        oMedico  = LMedicos.Find(x => x.dni == LdMedicos.SelectedItem.ToString());

            oPaciente.medico = oMedico;
            oMedico.AddPaciente(oPaciente);
            List <Habitacion> ListaHabitaciones = oEspecialidad.verHabitaciones();
            Habitacion        oHabitacion       = LHabitaciones.Find(X => X.identificador == Convert.ToInt32(LdHabitacion.SelectedItem.ToString()));
            List <Cama>       LCamas            = oHabitacion.Camasvacias();
            Cama oCama = LCamas.Find(x => x.ndecama == Convert.ToInt32(LdCamas.SelectedItem.ToString()));

            oCama.internar(oPaciente);
            string  save   = "Se Interno al Paciente";
            MapeoCL oMapeo = new MapeoCL();

            oMapeo.GuardarEspecialidadPaciente(oEspecialidad, oPaciente);
            oMapeo.GuardarPacienteMedico(oMedico, oPaciente);
            this.Page.Response.Write("<script language='JavaScript'>window.alert('" + save + "');</script>");
            Server.Transfer("MenuPrincipal.aspx");
        }
예제 #3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                int Numer = 1;
                if ((LHabitaciones.Exists(x => x.identificador == Convert.ToInt32(txtident.Text)) == false))
                {
                    Habitacion oHabitacion = new Habitacion();
                    oHabitacion.nhabitacion   = Numer;
                    oHabitacion.Ndcamas       = Convert.ToInt32(txtnumcam.Text);
                    oHabitacion.especialidad  = lblesp.Text;
                    oHabitacion.identificador = Convert.ToInt32(txtident.Text);
                    LHabitaciones.Add(oHabitacion);
                    int b = Convert.ToInt32(txtnumcam.Text);
                    for (int i = 1; i <= b; i++)
                    {
                        lblncama.Text = (Convert.ToInt32(lblncama.Text) + 1).ToString();
                        Cama oCama = new Cama(Convert.ToInt32(lblncama.Text), DropDownList1.SelectedItem.Text);
                        oHabitacion.AddCama(oCama);
                    }
                    Especialidad objespecialidad = LEspecialidades.Find(x => x.nombre == lblesp.Text);
                    objespecialidad.AddHabitacion(oHabitacion);
                }
                else
                {
                    string save = "ESTA habitacion ya fue cargada";
                    this.Page.Response.Write("<script language='JavaScript'>window.alert('" + save + "');</script>");
                }

                Server.Transfer("MenuPrincipal.aspx");
            }
        }
예제 #4
0
 public static CamaDTO MapCama(Cama cama)
 {
     return(new CamaDTO
     {
         Id = cama.Id,
         Tipo = cama.Tipo(),
         Nombre = cama.Nombre,
         NombreHabitacion = cama.ObtenerHabitacion().Nombre,
     });
 }
예제 #5
0
        protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
        {
            if (Page.IsValid)
            {
                if (txtdiagnostico.Text != "")
                {
                    Paciente oPaciente = LPaciente.Find(x => x.dni == txtdni.Text);
                    oPaciente.AddDiagnostico(txtdiagnostico.Text);
                    if (oPaciente.Pacientecurado() == 1)
                    {
                        Especialidad oEspecialidad = LEspecialidades.Find(x => x.nombre == LaListadEspecialidad.SelectedItem.ToString());

                        Cama oCama = oEspecialidad.BuscarPacienteHabitacion(oPaciente);
                        if (oCama.tipo != "")
                        {
                            oCama.alta();
                        }

                        oPaciente.especialidad = "";
                        oPaciente.medico       = new Medico();
                        List <Medico> ListaMedicos = oEspecialidad.verMedicos();
                        Medico        oMedico      = ListaMedicos.Find(x => x.dni == DropMedicos.SelectedItem.ToString());
                        oMedico.RemoverPaciente(oPaciente.dni);
                        MapeoCL oMapeo = new MapeoCL();
                        oMapeo.BorrarRelacionPacienteEspecialidad(oPaciente);
                        oMapeo.BorrarRelacionPacienteMedico(oPaciente);
                        string save = "El Paciente Fue dado de Alta";
                        this.Page.Response.Write("<script language='JavaScript'>window.alert('" + save + "');</script>");
                        Server.Transfer("MenuPrincipal.aspx");
                    }
                    else
                    {
                        List <Medicamento> MedicamentosRecomendados = oPaciente.TratamientoRecomendados(LMedicamentos);
                        string             save = "Diagnostico Guardado";
                        this.Page.Response.Write("<script language='JavaScript'>window.alert('" + save + "');</script>");
                        Panel3.Visible = true;
                        if (MedicamentosRecomendados.Count != 0)
                        {
                            DropMedicamentos.Items.Clear();
                            ImageButton3.Enabled = false;
                            foreach (Medicamento x in MedicamentosRecomendados)
                            {
                                DropMedicamentos.Items.Add(x.nombre);
                            }
                        }
                        else
                        {
                            save = "No hay medicamentos recomendados";
                            this.Page.Response.Write("<script language='JavaScript'>window.alert('" + save + "');</script>");
                            Server.Transfer("MenuPrincipal.aspx");
                        }
                    }
                }
            }
        }
예제 #6
0
        public void InserirCama()
        {
            Cama obj = new Cama();

            obj.DsCama        = "unit inser";
            obj.IdHotel       = 4;
            obj.NumCapacidade = 3;
            bool chdmo = _unitOfWork.CamaRepository.Insert(obj);

            Assert.IsTrue(chdmo);
        }
예제 #7
0
        /// <summary>
        /// Método que retorna TRUE caso seja possivel associar a pessoa à cama.
        /// Se não, retorna FALSE e respetiva mensagem de erro.
        /// </summary>
        /// <param name="pessoa">pessoa.</param>
        public bool Associar(Pessoa pessoa)
        {
            Reserva dadosReserva;
            var     associarPessoa = new Cama(pessoa);

            if (PessoaJaColocada(pessoa))
            {
                //verificação se a pessoa já está associada a uma cama
                throw new ExceptionPessoaColocada();
            }

            else if (NasReservas(pessoa.NumeroCC, out dadosReserva))
            {
                if (camas.Count <= MaxSala)
                {
                    associarPessoa.JaColocada = true;
                    camas.Add(associarPessoa);

                    try
                    {
                        // ativamos a reserva
                        return(marcacaoReservas.AtivarReserva(dadosReserva));
                    }
                    catch (ExceptionDataExpirada)
                    {
                        throw new ExceptionDataExpirada();
                    }
                    catch (ExceptionReservaSemDados)
                    {
                        throw new ExceptionReservaSemDados();
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine(e.Message);
                    }
                }

                return(false);
            }

            // se o total de pessoas associadas a camas for menor que o máximo de camas
            // e a pessoa não estiver na Reserva, associa a pessoa
            if (CamasOcupadas() <= MaxSala)
            {
                camas.Add(associarPessoa);
                return(true);
            }

            return(false);
        }
예제 #8
0
        protected void btnAgregarCama_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                Cama oRegistro = new Cama();

                if (Request["idCama"] != null)
                {
                    oRegistro = (Cama)oRegistro.Get(typeof(Cama), int.Parse(Request["idCama"]));
                }
                GuardarCama(oRegistro);
                Response.Redirect("Catastro.aspx?tipo=Habitacion&idHabitacion=" + oRegistro.IdHabitacion.IdHabitacion.ToString(), false);
            }
        }
예제 #9
0
        protected void btnEliminarCama_Click(object sender, EventArgs e)
        {
            Cama oRegistro = new Cama();

            oRegistro = (Cama)oRegistro.Get(typeof(Cama), int.Parse(Request["idCama"].ToString()));

            if (oRegistro.getUtilizacionCama() == 0)
            {
                oRegistro.Baja = true;
                oRegistro.Save();
                CargarArbol();
                string popupScript = "<script language='JavaScript'> alert('Se ha eliminado la cama')</script>";
                ClientScript.RegisterClientScriptBlock(GetType(), "PopupScript", popupScript);
            }
            else
            {
                string popupScript = "<script language='JavaScript'> alert('No es posible eliminar la cama. Tiene movimientos de ocupacion asociadas.')</script>";
                ClientScript.RegisterClientScriptBlock(GetType(), "PopupScript", popupScript);
            }
        }
예제 #10
0
        public ContenedorCamas LlamarSPRescatar(string token)
        {
            ContenedorCamas LCamas = new ContenedorCamas();

            if (ValidarFecExp(token))
            {
                try
                {
                    CapaDato.EntitiesBBDDHostel conex = new CapaDato.EntitiesBBDDHostel();

                    var collection = conex.CAMA.OrderBy(p => p.CODIGO_HABITACION).ToList();

                    foreach (var item in collection)
                    {
                        Cama n = new Cama();
                        n.Codigo        = item.CODIGO;
                        n.Descripcion   = item.DESCRIPCION;
                        n.Disponible    = item.DISPONIBLE;
                        n.CodHabitacion = item.CODIGO_HABITACION;
                        LCamas.Lista.Add(n);
                    }

                    LCamas.Retorno.Codigo = 0;
                    LCamas.Retorno.Glosa  = "OK";
                }
                catch (Exception)
                {
                    LCamas.Retorno.Codigo = 1011;
                    LCamas.Retorno.Glosa  = "Err codret ORACLE";
                }
            }
            else
            {
                LCamas.Retorno.Codigo = 100;
                LCamas.Retorno.Glosa  = "Err expiro sesion o perfil invalido";
            }

            return(LCamas);
        }
예제 #11
0
        private void MostrarCama()
        {
            lblTituloCama.Text = "CAMA";
            Cama oCama = new Cama();

            oCama                         = (Cama)oCama.Get(typeof(Cama), int.Parse(Request["idCama"].ToString()));
            txtCama.Text                  = oCama.Nombre;
            lblHabitacion.Text            = oCama.IdHabitacion.Nombre;
            lblIdHabitacion.Text          = oCama.IdHabitacion.IdHabitacion.ToString();
            ddlServicioCama.SelectedValue = oCama.IdServicioInternacion.IdServicio.ToString();
            ddlTipoCama.SelectedValue     = oCama.IdTipoCama.IdTipoCama.ToString();
            lblPiso2.Text                 = oCama.IdHabitacion.IdPiso.Nombre;


            ///Marca como seleccionado el nodo donde estoy parado
            foreach (TreeNode n in TreeView1.Nodes[0].ChildNodes)
            {
                if (n.Value == oCama.IdHabitacion.IdPiso.IdPiso.ToString())
                {
                    foreach (TreeNode h in n.ChildNodes[0].ChildNodes)
                    {
                        if (h.Value == oCama.IdHabitacion.IdHabitacion.ToString())
                        {
                            h.Expand();
                            foreach (TreeNode c in h.ChildNodes)
                            {
                                if (c.Value == oCama.IdCama.ToString())
                                {
                                    c.Text     = "<b>" + c.Text + "</b>";
                                    c.Selected = true;
                                }
                            }
                        }
                    }
                }
            }
            /////Fin de marca
        }
예제 #12
0
        protected void cvCama_ServerValidate(object source, ServerValidateEventArgs args)
        {
            if (Request["idCama"] != null)
            {
                args.IsValid = true;
            }
            else
            {
                Cama oRegistro = new Cama();
                oRegistro = (Cama)oRegistro.Get(typeof(Cama), "Nombre", txtCama.Text, "Baja", false);

                cvCama.ErrorMessage = "El nombre de la cama ya existe. Verifique";

                if (oRegistro == null)
                {
                    args.IsValid = true;
                }
                else
                {
                    args.IsValid = false;
                }
            }
        }
예제 #13
0
        public ActionResult Recuperado(int id)
        {
            Recuperados++;
            DatosPacientes[id].EstadoPaciente = "Sano";
            DatosPacientes[id].Accion         = "Examinar";
            Cama Liberar = DatosCama.Get(DatosPacientes[id].CamaAsignada);

            Camas[Liberar.Correlativo].Disponible = true;

            //for (int i = 0; i < 50; i++)
            //{
            //    if ( DatosPacientes[id].CamaAsignada == Camas[i].Id)
            //    {
            //        Camas[i].Disponible = true;

            //        break;
            //    }
            //}

            DatosPacientes[id].CamaAsignada = "";
            AsignarCama();
            return(RedirectToAction("Index"));
        }
예제 #14
0
        private void GuardarCama(Cama oRegistro)
        {
            Habitacion oHab = new Habitacion();

            oHab = (Habitacion)oHab.Get(typeof(Habitacion), int.Parse(lblIdHabitacion.Text));

            Servicio oServicio = new Servicio();

            oServicio = (Servicio)oServicio.Get(typeof(Servicio), int.Parse(ddlServicioCama.SelectedValue));

            TipoCama oTipo = new TipoCama();

            oTipo = (TipoCama)oTipo.Get(typeof(TipoCama), int.Parse(ddlTipoCama.SelectedValue));

            oRegistro.IdHabitacion          = oHab;
            oRegistro.Nombre                = txtCama.Text;
            oRegistro.IdServicioInternacion = oServicio;
            oRegistro.IdTipoCama            = oTipo;
            oRegistro.IdUsuarioRegistro     = SSOHelper.CurrentIdentity.Id;
            oRegistro.FechaRegistro         = DateTime.Now;
            oRegistro.IdEfector.IdEfector   = SSOHelper.CurrentIdentity.IdEfector;

            oRegistro.Save(oRegistro);
        }
예제 #15
0
        public ActionResult Registro(FormCollection collection)
        {
            List <PatientInfo> comprobacionDPI = new List <PatientInfo>();

            comprobacionDPI = Storage.Instance.dataPacientes.Busqueda("dpi", (collection["DPI_Partida"]));

            if ((collection["DPI_Partida"].Length == 13))
            {
                if (comprobacionDPI == null || comprobacionDPI.Count == 0)
                {
                    if ((long.Parse(collection["DPI_Partida"].Substring(9)) <= 2231) && (long.Parse(collection["DPI_Partida"].Substring(9)) >= 0101))
                    {
                        PatientInfo   newPatient = new PatientInfo();
                        Hospital      hospitalCorrespondiente = new Hospital("Hospital");
                        PrioridadCola infoCola         = new PrioridadCola();
                        string        infoEstadisticas = "";

                        #region Informacion de registro de paciente
                        newPatient.Nombre         = collection["Nombre"];
                        newPatient.Apellido       = collection["Apellido"];
                        newPatient.DPI_Partida    = long.Parse(collection["DPI_Partida"]);
                        newPatient.Departamento   = collection["Departamento"];
                        newPatient.Municipio      = collection["Municipio"];
                        newPatient.Sintomas       = collection["Sintomas"];
                        newPatient.Contagio       = collection["Contagio"];
                        newPatient.Categoria      = collection["Categoria"];
                        newPatient.Caracteristica = collection["Caracteristica"];
                        newPatient.Estado         = newPatient.Categoria;
                        #endregion

                        #region Informacion de registro para cola
                        infoCola.nombre    = newPatient.Nombre;
                        infoCola.apellido  = newPatient.Apellido;
                        infoCola.dpi       = newPatient.DPI_Partida;
                        infoCola.prioridad = definirPrioridad(newPatient.Caracteristica);
                        #endregion

                        #region Definicion de hospital correspondiente
                        if ((collection["Departamento"] == "Guatemala") || (collection["Departamento"] == "BajaVerapaz") || (collection["Departamento"] == "Chimaltenango") || (collection["Departamento"] == "ElProgreso"))
                        {
                            hospitalCorrespondiente = Storage.Instance.hospitalCapital;
                            infoEstadisticas        = "Capital";
                        }
                        if ((collection["Departamento"] == "Quetzaltenango") || (collection["Departamento"] == "SanMarcos") || (collection["Departamento"] == "Retalhuleu") || (collection["Departamento"] == "Totonicapán") || (collection["Departamento"] == "Sololá"))
                        {
                            hospitalCorrespondiente = Storage.Instance.hospitalQuetzaltenango;
                            infoEstadisticas        = "Quetzaltenango";
                        }
                        if ((collection["Departamento"] == "Petén") || (collection["Departamento"] == "Quiché") || (collection["Departamento"] == "AltaVerapaz") || (collection["Departamento"] == "Izabal") || (collection["Departamento"] == "Huehuetenango"))
                        {
                            hospitalCorrespondiente = Storage.Instance.hospitalPeten;
                            infoEstadisticas        = "Petén";
                        }
                        if ((collection["Departamento"] == "Escuintla") || (collection["Departamento"] == "Suchitepequez") || (collection["Departamento"] == "Sacatepequez") || (collection["Departamento"] == "SantaRosa"))
                        {
                            hospitalCorrespondiente = Storage.Instance.hospitalEscuintla;
                            infoEstadisticas        = "Escuintla";
                        }
                        if ((collection["Departamento"] == "Jalapa") || (collection["Departamento"] == "Jutiapa") || (collection["Departamento"] == "Chiquimula") || (collection["Departamento"] == "Zacapa"))
                        {
                            hospitalCorrespondiente = Storage.Instance.hospitalOriente;
                            infoEstadisticas        = "Oriente";
                        }
                        #endregion

                        #region Envio a cola
                        if (newPatient.Categoria == "Contagiado")
                        {
                            Storage.Instance.datos.contagiadosIngresados++;
                            #region Agregar datos para estadisticas
                            if (infoEstadisticas == "Capital")
                            {
                                Storage.Instance.datosCapital.contagiadosIngresados++;
                            }
                            else if (infoEstadisticas == "Quetzaltenango")
                            {
                                Storage.Instance.datosQuetzaltenango.contagiadosIngresados++;
                            }
                            else if (infoEstadisticas == "Escuintla")
                            {
                                Storage.Instance.datosEscuintla.contagiadosIngresados++;
                            }
                            else if (infoEstadisticas == "Petén")
                            {
                                Storage.Instance.datosPeten.contagiadosIngresados++;
                            }
                            else if (infoEstadisticas == "Oriente")
                            {
                                Storage.Instance.datosOriente.contagiadosIngresados++;
                            }
                            #endregion

                            if (hospitalCorrespondiente.contagiadosCamilla < 10)
                            {
                                hospitalCorrespondiente.contagiadosCamilla++;

                                //Enviar datos del Paciente a camilla.

                                //Encontrar primer camilla libre y sacar su código.
                                Cama camaDisponible = hospitalCorrespondiente.camillas.AllDataLikeList().Find((dato) =>
                                {
                                    return((dato.Disponible) ? true : false);
                                });

                                //Llamar al hashTable del hospital Correspondiente....
                                //Hacer un search de la camilla con ese código y al objeto de retorno ingresarle el paciente.
                                hospitalCorrespondiente.camillas.Search(camaDisponible.Codigo).PacienteActual = infoCola;
                                hospitalCorrespondiente.camillas.Search(camaDisponible.Codigo).Disponible     = false;

                                hospitalCorrespondiente.CamillasDisponibles = hospitalCorrespondiente.CamasDisponibles();
                                hospitalCorrespondiente.CamillasOcupadas    = hospitalCorrespondiente.CamasOcupadas();
                            }
                            else
                            {
                                hospitalCorrespondiente.colaContagiados.Insert(infoCola.prioridad, infoCola);
                            }
                        }
                        else if (newPatient.Categoria == "Sospechoso")
                        {
                            Storage.Instance.datos.sospechososIngresados++;
                            #region Agregar datos para estadisticas
                            if (infoEstadisticas == "Capital")
                            {
                                Storage.Instance.datosCapital.sospechososIngresados++;
                            }
                            else if (infoEstadisticas == "Quetzaltenango")
                            {
                                Storage.Instance.datosQuetzaltenango.sospechososIngresados++;
                            }
                            else if (infoEstadisticas == "Escuintla")
                            {
                                Storage.Instance.datosEscuintla.sospechososIngresados++;
                            }
                            else if (infoEstadisticas == "Petén")
                            {
                                Storage.Instance.datosPeten.sospechososIngresados++;
                            }
                            else if (infoEstadisticas == "Oriente")
                            {
                                Storage.Instance.datosOriente.sospechososIngresados++;
                            }
                            #endregion
                            hospitalCorrespondiente.colaSospechosos.Insert(infoCola.prioridad, infoCola);
                        }
                        #endregion
                        Storage.Instance.dataPacientes.Insert(newPatient.Nombre, newPatient.Apellido, newPatient.DPI_Partida, newPatient);
                        return(View("Index"));
                    }
                    else
                    {
                        Response.Write("<script>alert('El dpi ingresado no corresponde a ningún departamento')</script>");
                        return(View("Registro"));
                    }
                }
                else
                {
                    Response.Write("<script>alert('El DPI ingresado ya está registrado en el sistema, intente ingresar otro paciente...')</script>");
                    return(View("Registro"));
                }
            }
            else
            {
                Response.Write("<script>alert('El DPI ingresado no es válido, inténtelo de nuevo')</script>");
                return(View("Registro"));
            }
        }
예제 #16
0
        public void PruebaPorHospital(Hospital hospital, Estadisticas data)
        {
            try
            {
                PrioridadCola pacienteSeleccionado = hospital.colaSospechosos.Peek();
                long          dpi     = pacienteSeleccionado.dpi;
                PatientInfo   patient = Storage.Instance.dataPacientes.Busqueda("dpi", dpi.ToString())[0];
                bool          prueba  = hospital.PruebaContagio(patient);

                if (prueba)
                {
                    Storage.Instance.datos.sospechososPositivo++;
                    Storage.Instance.datos.contagiadosIngresados++;
                    data.sospechososPositivo++;
                    data.contagiadosIngresados++;


                    if (hospital.contagiadosCamilla < 10)
                    {
                        hospital.contagiadosCamilla++;

                        //Encontrar primer camilla libre y sacar su código.
                        Cama camaDisponible = hospital.camillas.AllDataLikeList().Find((dato) =>
                        {
                            return((dato.Disponible) ? true : false);
                        });

                        //Llamar al hashTable del hospital Correspondiente....
                        //Hacer un search de la camilla con ese código y al objeto de retorno ingresarle el paciente.
                        hospital.camillas.Search(camaDisponible.Codigo).PacienteActual = pacienteSeleccionado;
                        hospital.camillas.Search(camaDisponible.Codigo).Disponible     = false;

                        hospital.CamillasDisponibles = hospital.CamasDisponibles();
                    }
                    else
                    {
                        hospital.colaContagiados.Insert(pacienteSeleccionado.prioridad, pacienteSeleccionado);

                        hospital.colaSospechosos.Delete();
                    }
                    Response.Write("<script>alert('El paciente que era sospechoso y seguía en la cola ha resultado positivo para el Covid - 19')</script>");

                    NodeAVL <PatientInfo> nodoPaciente = Storage.Instance.dataPacientes.SearchOneValue(dpi);
                    nodoPaciente.value.Estado = "No Recuperado";
                }
                else
                {
                    Storage.Instance.datos.sospechososNegativo++;
                    data.sospechososNegativo++;

                    Response.Write("<script>alert('La prueba ha salido negativa')</script>");
                    hospital.colaSospechosos.Delete();
                    //TODO: Revisar el string de este estado...
                    NodeAVL <PatientInfo> nodoPaciente = Storage.Instance.dataPacientes.SearchOneValue(dpi);
                    nodoPaciente.value.Estado = "Sospechoso Negativo";
                }
            }
            catch (Exception)
            {
                Response.Write("<script>alert('No se puede realizar la prueba, no hay sospechosos en la cola.')</script>");
            }
        }