Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            revisarLogin();

            try {
                if (!IsPostBack)
                {
                    if (!Convert.ToString(Session["cedula"]).Equals(""))
                    {
                        BLManejadorHistoriaClinica manej       = new BLManejadorHistoriaClinica();
                        BLHistoriaClinica          histClinica = manej.consultarHistorialClinico(Convert.ToString(Session["cedula"]));
                        txtGrupoSanguineo.Text      = histClinica.grupo_Sanguineo;
                        htaCheck.Checked            = histClinica.HTA;
                        dMCheck.Checked             = histClinica.DM;
                        asmaCheck.Checked           = histClinica.Asma;
                        epilepsiaCheck.Checked      = histClinica.Epilepsia;
                        txtenfCardiacas.Text        = histClinica.Enferm_Cardiacas;
                        displidemiaCheck.Checked    = histClinica.Displidemias;
                        txtpsiquiatricas.Text       = histClinica.Enferm_Psiquiatricas;
                        txtOtraspatolog.Text        = histClinica.Otros_Person_Patologic;
                        fumaCheck.Checked           = histClinica.Fuma;
                        licorCheck.Checked          = histClinica.Licor;
                        drogasCheck.Checked         = histClinica.Drogas;
                        Textalergias.Text           = histClinica.Alergias;
                        TextotrasNoPatologicas.Text = histClinica.Otros_Person_No_Patologic;
                        menarcaCheck.Checked        = histClinica.Menarca;
                        furCalend.Text                = histClinica.FUR;
                        embarazosText.Text            = Convert.ToString(histClinica.Embarazos);
                        abortosText.Text              = Convert.ToString(histClinica.Abortos);
                        quistesOvaricosText.Text      = Convert.ToString(histClinica.QuistesOvaricos);
                        endometriosisCheck.Checked    = histClinica.Endometriosis;
                        otrosGinecobstetricoText.Text = histClinica.Otros_Ginecobstetrico;
                        medicamentosText.Text         = histClinica.Medicamentos;
                        otrosMedicamentosText.Text    = histClinica.IndicacionesMedicamentos;
                        fracturasText.Text            = histClinica.Fracturas;
                        vesiculaText.Text             = histClinica.Vesicula;
                        apendiceCheck.Checked         = histClinica.Apendice;
                        cordalesCheck.Checked         = histClinica.Cordales;
                        litiasisText.Text             = histClinica.Litiasis;
                        columnaText.Text              = histClinica.Columna;
                        otrosQuirugicosText.Text      = histClinica.Otros_Quirurgico;
                        dMFamText.Text                = histClinica.DM_Fam;
                        HTAFamText.Text               = histClinica.HTA_Fam;
                        asmaFamText.Text              = histClinica.Asma_Fam;
                        cancerFamText.Text            = histClinica.Cancer_Fam;
                        epilepsiaFamText.Text         = histClinica.Epilepsia_Fam;
                        demenciasFamText.Text         = histClinica.Demencias_Fam;
                        psicofamiliaresText.Text      = histClinica.Enferm_Psiq_Fam;
                        psicofamiliaresText.Text      = histClinica.Otros_Fam;
                    }
                }
            } catch (Exception) {
                lblMensaje.Text    = "<div class=\"alert alert-danger alert - dismissible fade show\" role=\"alert\"> <strong>Error al cargar los datos del historial clínico </strong>Regrese a la página principal.<button type = \"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"> <span aria-hidden=\"true\">&times;</span> </button> </div>";
                lblMensaje.Visible = true;
            }
        }
Пример #2
0
        public void MethinsertarActualizarHistorialClinico()
        {
            BLHistoriaClinica historial = new BLHistoriaClinica(0, "504060873", "O+", false, true, false, false, "Enfermedades cardiacas", false, "No tiene", "otros patologic", true,
                                                                true, true, "alergias", "dsd", false, "14/02/2018", 0, 0, 0, false, "otros gineco", "medicamentos", "indic medicam", "no tiene", "vesicula",
                                                                true, true, "asdas", "rer", "otros quirugic", "dm familiares", "hta familiares", "asma familiar", "cancer familiar", "epilepsia familiar", "demencias familiares",
                                                                "enf psiquiatricas familiares", "otros famili");

            BLManejadorHistoriaClinica manejadHistorClin = new BLManejadorHistoriaClinica();

            manejadHistorClin.insertarActualizarHistorialClinico(historial);

            Assert.AreEqual(historial.cedula, (manejadHistorClin.consultarHistorialClinico(historial.cedula).cedula));
        }