Beispiel #1
0
        public static void cargarDiagnosticoImpresion(IngresoClinico ingreso)
        {
            List <string> list = new List <string>();

            list.Add(Convert.ToString(ingreso.IdAtencion));
            ingreso.dtImpresion = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_DIAGNOSTICO_IMPRESION, list);
        }
Beispiel #2
0
        public void cargarDatos()
        {
            List <string> paramas = new List <string>();

            paramas.Add(Convert.ToString(idPaciente));
            dtDatos = GeneralC.cargarResultadosSQL(Sentencias.PACIENTE_CARGAR, paramas);
            if (dtDatos.Rows.Count > 0)
            {
                tipoIdentificacion  = Convert.ToString(dtDatos.Rows[0].Field <int>("IdTipoIdentificacion"));
                documentoIndentidad = dtDatos.Rows[0].Field <string>("documento");
                idEps = dtDatos.Rows[0].Field <int>("IdEps");
                idMunicipioExpedicion = Convert.ToString(dtDatos.Rows[0].Field <int>("IdMunicipioExpedicion"));
                idMunicipioNacimiento = Convert.ToString(dtDatos.Rows[0].Field <int>("IdMunicipioNacimiento"));
                idMunicipioResidencia = Convert.ToString(dtDatos.Rows[0].Field <int>("IdMunicipioResidencia"));
                idRegimen             = Convert.ToString(dtDatos.Rows[0].Field <int>("idregimen"));
                idTipoAfiliacion      = Convert.ToString(dtDatos.Rows[0].Field <int>("idtipoafiliacion"));
                idZonaUrbana          = Convert.ToString(dtDatos.Rows[0].Field <int>("idzona"));
                idestrato             = Convert.ToString(dtDatos.Rows[0].Field <int>("idestratosocial"));
                idEstadoCivil         = Convert.ToString(dtDatos.Rows[0].Field <int>("idestadocivil"));
                primeroNombre         = dtDatos.Rows[0].Field <string>("PrimerNombre");
                segundoNombre         = dtDatos.Rows[0].Field <string>("SegundoNombre");
                primerApellido        = dtDatos.Rows[0].Field <string>("primerapellido");
                segundoApellido       = dtDatos.Rows[0].Field <string>("segundoapellido");
                idGenero        = Convert.ToString(dtDatos.Rows[0].Field <int>("idgenero"));
                fechaNacimiento = dtDatos.Rows[0].Field <DateTime>("FechaNacimiento");

                direccionResidencia = dtDatos.Rows[0].Field <string>("Direccion");
                telefono            = dtDatos.Rows[0].Field <string>("Telefono");
                celular             = dtDatos.Rows[0].Field <string>("Celular");
                correo = dtDatos.Rows[0].Field <string>("Correo");
            }
        }
Beispiel #3
0
        void cargarTodaListaEquivalencia()
        {
            List <string> param = new List <string>();

            param.Add(string.Empty);
            GeneralC.cargarResultadosSQL(ConsultasConfiguracionGeneral.LISTA_PRECIO_EQUIVALENCIA_CARGAR_TODO, param);
            enlazarGrilla();
        }
Beispiel #4
0
        public static DataTable llenarResultado(string query,
                                                List <string> parametros)
        {
            DataTable tblTemp;

            tblTemp = GeneralC.cargarResultadosSQL(query, parametros);
            return(tblTemp);
        }
Beispiel #5
0
        private void cargarParametro()
        {
            List <string> paramtro = new List <string>();

            paramtro.Add(ecocardiograma.idAreaAtencion.ToString());
            ecocardiograma.dtParametro = GeneralC.cargarResultadosSQL(Sentencias.ECOCARDIOGRAMA_PARAMETROS_CARGAR, paramtro);
            dgvParametro.DataSource    = ecocardiograma.dtParametro;
        }
        private void cargarVias()
        {
            List <string> listaParametros = new List <string>();

            listaParametros.Add(Util.Constantes.ConstanteGeneral.VIAS_ADMINISTRACION.ToString());
            listaParametros.Add("");
            equivalencia.tablaVias = GeneralC.cargarResultadosSQL(Sentencias.PARAMETROS_LISTAR_DOCUMENTOS, listaParametros);
        }
Beispiel #7
0
        private void cargarHemodialisisMedicamento()
        {
            List <string> paramtro = new List <string>();

            paramtro.Add(hemodialisis.auditoria.ToString());
            paramtro.Add(hemodialisis.idHemodialisis.ToString());
            hemodialisis.dtMedicamento = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_HEMODIALISIS_MEDICAMENTO, paramtro);
            dgvMedicamento.DataSource  = hemodialisis.dtMedicamento;
        }
        private void cargarCUPS()
        {
            List <string> parametro = new List <string>();

            parametro.Add(txtCodigo.Text);
            objManual.dtCups       = GeneralC.cargarResultadosSQL(Sentencias.MANUAL_SERVICIO_CONSULTAR_CUPS, parametro);
            navegarCups.DataSource = objManual.dtCups;
            dgvCups.DataSource     = navegarCups.DataSource;
        }
        private void cargarSOAT()
        {
            List <string> parametro = new List <string>();

            parametro.Add(txtCodigo.Text);
            objManual.dtSoat       = GeneralC.cargarResultadosSQL(Sentencias.MANUAL_SERVICIO_CONSULTAR_SOAT, parametro);
            navegarSoat.DataSource = objManual.dtSoat;
            dgvSoat.DataSource     = navegarSoat.DataSource;
        }
        private static DataTable cargarParametrosBD(int codigo)
        {
            List <string> parametro = new List <string>();
            DataTable     dt        = new DataTable();

            parametro.Add(codigo.ToString());
            dt = GeneralC.cargarResultadosSQL(Sentencias.PARAMETROS_CONSULTAR_DESCRIPCION_SABANA, parametro);
            return(dt);
        }
Beispiel #11
0
        private void cargarInformeQxMedicamento()
        {
            List <string> paramtro = new List <string>();

            paramtro.Add(informeQx.Auditoria.ToString());
            paramtro.Add(informeQx.idInformeQX.ToString());
            informeQx.dtMedicamento   = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_INFORME_QX_MEDICAMENTO, paramtro);
            dgvMedicamento.DataSource = informeQx.dtMedicamento;
        }
Beispiel #12
0
        private void cargarInformeQxProcedimiento()
        {
            List <string> paramtro = new List <string>();

            paramtro.Add(informeQx.Auditoria.ToString());
            paramtro.Add(informeQx.idInformeQX.ToString());
            informeQx.dtProcedimiento    = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_INFORME_QX_PROCEDIMIENTO, paramtro);
            dgvProcedimientos.DataSource = informeQx.dtProcedimiento;
        }
Beispiel #13
0
        private void cargarParametroRegistrado()
        {
            List <string> paramtro = new List <string>();

            paramtro.Add(ecocardiograma.idEco.ToString());
            paramtro.Add(ecocardiograma.idAreaAtencion.ToString());
            paramtro.Add(ecocardiograma.auditoria.ToString());
            ecocardiograma.dtParametro = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_PARAMETROS_ECOCARDIOGRAMA_REGISTRADO, paramtro);
            dgvParametro.DataSource    = ecocardiograma.dtParametro;
        }
Beispiel #14
0
        private void cargarExamenesLaboratorio()
        {
            List <string> paramtro = new List <string>();

            paramtro.Add(auditoria.ToString());
            paramtro.Add(idAtencion.ToString());
            paramtro.Add(paraclinico.ToString());
            resultadoLaboratorio.dtResultado   = GeneralC.cargarResultadosSQL(Sentencias.LISTAR_RESULTADO_LABORATORIO, paramtro);
            dgvResultadoLaboratorio.DataSource = resultadoLaboratorio.dtResultado;
        }
Beispiel #15
0
        void cargarDetalleLista(int codigo)
        {
            List <string> param = new List <string>();

            param.Add(codigo.ToString());
            GeneralC.cargarResultadosSQL(ConsultasConfiguracionGeneral.LISTA_PRECIO_EQUIVALENCIA_CARGAR_DETALLE, param);
            objListaPrecio.enlazarDt();
            enlazarGrilla();
            GeneralC.posCargadoForm(this, tstMenuPatron, tsbBuscar, tstModificar, tsbAnular, tstImprimir);
        }
        public void cargarInformacionADatos()
        {
            List <string> paramtro = new List <string>();
            DataRow       dRows;
            DataTable     dtDatos = new DataTable();

            paramtro.Add(resultadoLab.auditoria.ToString());
            paramtro.Add(resultadoLab.idOrdenMedica.ToString());
            paramtro.Add(idProcedimiento.ToString());
            try {
                dtDatos = GeneralC.cargarResultadosSQL(Sentencias.BUSCAR_PACIENTE_RESULTADO_LAB, paramtro);
                dRows   = dtDatos.Rows[0];

                txtAtencion.Text             = dRows.Field <int>("idAtencion").ToString();
                txtPaciente.Text             = dRows.Field <string>("paciente").ToString();
                txtIdentificacion.Text       = dRows.Field <string>("Documento").ToString();
                txtServicio.Text             = dRows.Field <string>("Entorno").ToString();
                txtOrdenMedica.Text          = dRows.Field <int>("IdOrdenMedica").ToString();
                txtProcedimiento.Text        = dRows.Field <string>("procedimiento").ToString();
                txtCodigoAdministradora.Text = dRows.Field <int>("IdContrato").ToString();
                txtAdministradora.Text       = dRows.Field <string>("Nombre").ToString();
                resultadoLab.codigoGenero    = dRows.Field <int>("IdGenero");
                resultadoLab.estadoRegistro  = dRows.Field <bool>("EstadoRegistro");
                lbTitulo.Text       = dRows.Field <string>("nombreExamen").ToString();
                txtObservacion.Text = dRows.Field <string>("Observacion").ToString();
                dtpMuestra.Value    = dRows.Field <DateTime>("FechaMuestra");
                dtpResultado.Value  = dRows.Field <DateTime>("FechaResultado");

                validarGrilla();
                cargarParametrosLaboratorio();

                GeneralC.deshabilitarControles(this);
                GeneralC.deshabilitarBotones(ref tstMenuPatron);
                btnSalir.Enabled = true;

                if (resultadoLab.estadoRegistro == true)
                {
                    resultadoLab.codigoResultado = dRows.Field <int>("idResultado");
                    tstModificar.Enabled         = true;
                    tstImprimir.Enabled          = true;
                    tsbAnular.Enabled            = true;
                }
                else
                {
                    habilitarControles();
                    resultadoLab.codigoResultado = ConstanteGeneral.PREDETERMINADO;
                    tsbGuardar.Enabled           = true;
                    tsbCancelar.Enabled          = true;
                }
            }
            catch (Exception ex) {
                Mensajes.mensajeError(ex);
            }
        }
        private void cargarDatos(DataRow dRows)
        {
            List <string> parametro = new List <string>();
            DataRow       dDatos;
            DataTable     dtDato = new DataTable();

            parametro.Add(dRows.GetParentRow("codigo").ToString());
            dtDato = GeneralC.cargarResultadosSQL("", parametro);
            dDatos = dtDato.Rows[0];
            cargarTxt(dDatos);
        }
        public void listarPacientes()
        {
            auditoria = false;
            List <String> param = new List <string>();

            param.Add(Convert.ToString(auditoria));
            param.Add(Convert.ToString(idArea));
            param.Add(Convert.ToString(idEntorno));
            param.Add(Convert.ToString(idEstadoAtencion));
            param.Add(Convert.ToString(filtro));
            dtPacientes = GeneralC.cargarResultadosSQL(ConsultasHistoriaClinica.LISTAR_PACIENTE, param);
        }
        public void cargarProcedimientos()
        {
            List <string> lista = new List <string>();

            lista.Add(Convert.ToString(Auditoria));
            lista.Add(Convert.ToString(idOrdenMedica));
            dtProcedimientos = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_PROCEDIMIENTOS_ENFERMERIA, lista);
            if (dtProcedimientos.Rows.Count > 0)
            {
                procedimientoAprobado = true;
            }
        }
        public void generoPestañas()
        {
            DataTable     dt    = new DataTable();
            List <string> lista = new List <string>();

            lista.Add(Convert.ToString(IdAtencion));
            dt = GeneralC.cargarResultadosSQL(Sentencias.GENERO_VERIFICAR_INGRESO, lista);
            if (dt.Rows.Count > 0)
            {
                genero = (int)dt.Rows[0]["idGenero"];
            }
        }
        public void cargarGlucometria()
        {
            List <string> lista = new List <string>();

            lista.Add(Convert.ToString(Auditoria));
            lista.Add(Convert.ToString(idOrdenMedica));

            dtGlucometria = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_GLUCOMETRIAS_ENFERMERIA, lista);
            if (dtGlucometria.Rows.Count > 0)
            {
                glucometriaAprobado = true;
            }
        }
        private void cargarExamenLabPendiente()
        {
            List <string> paramtro = new List <string>();

            try
            {
                paramtro.Add(dtpFechaSolicitud.Value.ToString("dd-MM-yyyy"));
                solicitudLab.dtLaboratorio         = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_SOLICITUDES_PENDIENTES, paramtro);
                dgvResultadoLaboratorio.DataSource = solicitudLab.dtLaboratorio;
            }
            catch (Exception ex) {
                Mensajes.mensajeError(ex);
            }
        }
Beispiel #23
0
 public void llenarDocumentos()
 {
     try
     {
         List <string> listaParametros = new List <string>();
         listaParametros.Add(idParametro.ToString());
         dtDocumentos      = GeneralC.cargarResultadosSQL(Sentencias.PARAMETROS_CARGAR_DOCUMENTOS, listaParametros);
         enlace.DataSource = dtDocumentos;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        private void cargarExamenLabEnviado()
        {
            List <string> paramtro = new List <string>();

            try
            {
                paramtro.Add(solicitudLab.idSolicitud.ToString());
                solicitudLab.dtLaboratorio         = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_SOLICITUDES_ENVIADO, paramtro);
                dgvResultadoLaboratorio.DataSource = solicitudLab.dtLaboratorio;
            }
            catch (Exception ex) {
                Mensajes.mensajeError(ex);
            }
        }
Beispiel #25
0
 public void listarEstancia()
 {
     try
     {
         dtEstancia = new DataTable();
         List <string> lista = new List <string>();
         lista.Add(Convert.ToString(auditoria));
         lista.Add(Convert.ToString(idAtencion));
         dtEstancia = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_ESTANCIA, lista);
     }catch (Exception ex)
     {
         throw ex;
     }
 }
        private void cargarParametrosLaboratorio()
        {
            List <string> paramtro = new List <string>();

            paramtro.Add(resultadoLab.auditoria.ToString());
            paramtro.Add(resultadoLab.idOrdenMedica.ToString());
            paramtro.Add(resultadoLab.codigoGenero.ToString());
            paramtro.Add(idProcedimiento.ToString());
            paramtro.Add(Convert.ToUInt32(resultadoLab.estadoRegistro).ToString());

            resultadoLab.dtResultado = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_RESULTADO_LAB, paramtro);
            dgvResultados.DataSource = resultadoLab.dtResultado;
            dgvResultados.Columns["dgCodigo"].Visible = false;
        }
Beispiel #27
0
        public void cargarPacienteAtencion()
        {
            List <string> param = new List <string>();

            param.Add(Convert.ToString(idAdmision));
            DataTable dt = new DataTable();

            dt = GeneralC.cargarResultadosSQL(Sentencias.ATENCION_PACIENTE_ATENCION, param);
            if (dt.Rows.Count > 0)
            {
                idAdmision     = dt.Rows[0].Field <int>("admision");
                nombrePaciente = dt.Rows[0].Field <String>("paciente");
                fechaAdmision  = dt.Rows[0].Field <DateTime>("fechaadmision");
            }
        }
        public void cargarNotas()
        {
            List <string> lista = new List <string>();

            lista.Add(Convert.ToString(Auditoria));
            lista.Add(Convert.ToString(idNota));
            lista.Add(Convert.ToString(tipo));
            dtNotas = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_NOTA_ENFERMERIA, lista);
            if (dtNotas.Rows.Count > 0)
            {
                nota         = dtNotas.Rows[0].Field <String>("nota");
                fechaNota    = dtNotas.Rows[0].Field <DateTime>("fecha");
                notaAprobado = true;
            }
        }
        public void cargarDatosAtencion()
        {
            List <string> list = new List <string>();

            list.Add(Convert.ToString(IdAtencion));
            dtDatosAtencion = GeneralC.cargarResultadosSQL(Sentencias.CARGAR_DATOS_ATENCION, list);
            if (dtDatosAtencion.Rows.Count > 0)
            {
                numeroAutorizacion = dtDatosAtencion.Rows[0].Field <String>("numAutorizacion");
                cama         = dtDatosAtencion.Rows[0].Field <String>("cama");
                institucion  = dtDatosAtencion.Rows[0].Field <String>("institucion");
                causaExterna = dtDatosAtencion.Rows[0].Field <String>("causaExterna");
                viaIngreso   = dtDatosAtencion.Rows[0].Field <String>("viaIngreso");
            }
        }
Beispiel #30
0
        public void cargarPaciente()
        {
            List <string> param = new List <string>();

            param.Add(Convert.ToString(idPaciente));
            dtPaciente = GeneralC.cargarResultadosSQL(Sentencias.ADMISION_PACIENTE_CARGAR, param);

            if (dtPaciente.Rows.Count > 0)
            {
                identificacion = dtPaciente.Rows[0].Field <string>("identificacion");
                nombrePaciente = dtPaciente.Rows[0].Field <string>("Paciente");
                regimen        = dtPaciente.Rows[0].Field <string>("regimen");
                estratoSocial  = dtPaciente.Rows[0].Field <string>("estratoSocial");
                tipoAfiliacion = dtPaciente.Rows[0].Field <string>("tipoAfiliacion");
                nombreEPS      = dtPaciente.Rows[0].Field <string>("nombre");
                idEps          = dtPaciente.Rows[0].Field <int>("idEps");
            }
        }