示例#1
0
        /* Resultado utilizando percentiles
         * public Resultado Resultado
         * {
         *  get { return _resultado; }
         *  private set
         *  {
         *      _resultado = value;
         *      PercentilSearch.Deserialize();
         *      if ( this.Paciente == null ) return;
         *      var resultado = (Resultado_AS)_resultado;
         *      var result_SA = (Resultado_AS)_resultado;
         *      ChR_Errores = new List<Ar_ChartingResult>();
         *      ChR_Tiempos = new List<Ar_ChartingResult>();
         *      // filas - los parámetros, columnas - los bloques
         *      PercentilesXbloque = new string[7, 6];
         *      for ( int i = 0; i < resultado.Aciertos.Length; i++ )
         *      {
         *          double iaBloque = FunctionLibrary.AttentionProfit(
         *                      resultado.Aciertos[i],
         *                      resultado.Aciertos_Extrannos[i],
         *                      resultado.Equivocaciones[i],
         *                      resultado.Omisiones[i] );
         *          PercentilesXbloque[i, 0] = Function_Library.ShowDouble(PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.IA, i + 1, Paciente.Edad, iaBloque, Paciente.Sexo));
         *          PercentilesXbloque[i, 1] = Function_Library.ShowDouble(PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.Aciertos, i + 1, Paciente.Edad, resultado.Aciertos[i], Paciente.Sexo));
         *          PercentilesXbloque[i, 2] = Function_Library.ShowDouble(PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.Omisiones, i + 1, Paciente.Edad, resultado.Omisiones[i], Paciente.Sexo));
         *          PercentilesXbloque[i, 3] = Function_Library.ShowDouble(PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.Comisiones, i + 1, Paciente.Edad, resultado.Equivocaciones[i], Paciente.Sexo));
         *          PercentilesXbloque[i, 4] = Function_Library.ShowDouble(PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.TR, i + 1, Paciente.Edad, resultado.MediasTR[i], Paciente.Sexo));
         *          PercentilesXbloque[i, 5] = Function_Library.ShowDouble(PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.DS_TR, i + 1, Paciente.Edad, resultado.DesiacionesTR[i], Paciente.Sexo));
         *      }
         *
         *      float ia_total = FunctionLibrary.AttentionProfit(result_SA.Aciertos.Sum(),
         *                                               result_SA.Aciertos_Extrannos.Sum(),
         *                                               result_SA.Equivocaciones.Sum(),
         *                                               result_SA.Omisiones.Sum() );
         *      ChR_Percentiles = new List<Ar_ChartingResult>();
         *      Parametros = new[]
         *      {
         *          PDF_Resources.EP_IA_Total,
         *          PDF_Resources.EP_Aciertos,
         *          PDF_Resources.EP_Omisiones,
         *          PDF_Resources.EP_Comisiones,
         *          PDF_Resources.EP_TR,
         *          PDF_Resources.EP_Error_TR
         *      };
         *
         *      var indices = new double[resultado.Aciertos.Length];
         *      for ( int bloque = 0; bloque < resultado.Aciertos.Length; bloque++ )
         *      {
         *          float ia = FunctionLibrary.AttentionProfit(resultado.Aciertos[bloque],
         *                                                   resultado.Aciertos_Extrannos[bloque],
         *                                                   resultado.Equivocaciones[bloque],
         *                                                   resultado.Omisiones[bloque] );
         *          var ch_result1 = new Ar_ChartingResult
         *          (
         *              string.Format( PDF_Resources.BloqueGraphicAxisLabelFormat, bloque+1 ),
         *              PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.Comisiones, bloque + 1, Paciente.Edad, resultado.Equivocaciones[bloque], Paciente.Sexo),
         *              PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.Omisiones, bloque + 1, Paciente.Edad, resultado.Omisiones[bloque], Paciente.Sexo),
         *              PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.IA, bloque + 1, Paciente.Edad, ia, Paciente.Sexo)
         *          );
         *          var ch_result2 = new Ar_ChartingResult
         *          (
         *              string.Format( PDF_Resources.BloqueGraphicAxisLabelFormat, bloque+1 ),
         *              PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.TR, bloque + 1, Paciente.Edad, resultado.MediasTR[bloque], Paciente.Sexo),
         *              PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.DS_TR, bloque + 1, Paciente.Edad, resultado.DesiacionesTR[bloque], Paciente.Sexo)
         *          );
         *          indices[bloque] = ia;
         *          ChR_Errores.Add( ch_result1 );
         *          ChR_Tiempos.Add( ch_result2 );
         *      }
         *      this.ValoresGenerales = new[]
         *      {
         *          Function_Library.ShowDouble( ia_total ),
         *          result_SA.Aciertos.Sum().ToString(),
         *          result_SA.Omisiones.Sum().ToString(),
         *          result_SA.Equivocaciones.Sum().ToString(),
         *          Function_Library.ShowDouble(result_SA.Media),
         *          Function_Library.ShowDouble(Math.Sqrt(result_SA.Desviacion))
         *      };
         *      this.PercentilesGenerales = new[]
         *      {
         *          PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.IA, Paciente.Edad, ia_total, Paciente.Sexo),
         *          PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.Aciertos, Paciente.Edad, result_SA.Aciertos.Sum(), Paciente.Sexo),
         *          PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.Omisiones, Paciente.Edad, result_SA.Omisiones.Sum(), Paciente.Sexo),
         *          PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.Comisiones, Paciente.Edad, result_SA.Equivocaciones.Sum(), Paciente.Sexo),
         *          PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.TR, Paciente.Edad, result_SA.Media, Paciente.Sexo),
         *          PercentilSearch.Percentil(result_SA.TipoAtencion, result_SA.TipoPrueba, AS_TestParameter.DS_TR, Paciente.Edad, result_SA.Desviacion, Paciente.Sexo)
         *      };
         *      STR_PercentilesGenerales = new string[PercentilesGenerales.Length];
         *      for ( int i = 0; i < PercentilesGenerales.Length; i++ )
         *      {
         *          var ch_result = new Ar_ChartingResult
         *          (
         *              this.Parametros[i],
         *              PercentilesGenerales[i]
         *          );
         *          ChR_Percentiles.Add( ch_result );
         *          STR_PercentilesGenerales[i] = Function_Library.ShowDouble( PercentilesGenerales[i] );
         *      }
         *
         *      SetOrientaciones(result_SA);
         *  }
         * }
         */

        private double IA_Bloque(int bloque, Resultado_AS resultado)
        {
            return(FunctionLibrary.AttentionProfit(resultado.Aciertos[bloque],
                                                   resultado.Aciertos_Extrannos[bloque],
                                                   resultado.Equivocaciones[bloque],
                                                   resultado.Omisiones[bloque]));
        }
示例#2
0
        protected InformacionGeneral(Paciente paciente, Resultado_AS resultado)
        {
            this.resultado = resultado;
            this.paciente  = paciente;
            this.ia_total  = FunctionLibrary.AttentionProfit(resultado.Aciertos.Sum(),
                                                             resultado.Aciertos_Extrannos.Sum(),
                                                             resultado.Equivocaciones.Sum(),
                                                             resultado.Omisiones.Sum());
            this.md_bloques = new MD_ByBlock();
            md_bloques.LoadBlock(FunctionLibrary.GetTopBlocks(paciente.Edad) + 1, paciente);

            this.zNotationAciertos = StatFunctionLibrary.ZNotation(resultado.Aciertos.Sum(),
                                                                   md_bloques.Aciertos.Media,
                                                                   md_bloques.Aciertos.Desviacion);
            this.zNotationComisiones = StatFunctionLibrary.ZNotation(resultado.Equivocaciones.Sum(),
                                                                     md_bloques.Comisiones.Media,
                                                                     md_bloques.Comisiones.Desviacion);
            Parametros = new[]
            {
                PDF_Resources.EP_IA_Total,
                PDF_Resources.EP_Aciertos,
                PDF_Resources.EP_Omisiones,
                PDF_Resources.EP_Comisiones,
                PDF_Resources.EP_TR,
                PDF_Resources.EP_Error_TR,
                PDF_Resources.EP_Sensibilidad,
                PDF_Resources.EP_Criterio
            };
            this.Init();
        }
示例#3
0
 /// <summary>
 /// a)	Si no hay aciertos durante todo un bloque
 /// </summary>
 private bool ProtocoloValidoA(Resultado_AS result_SA, int TOP)
 {
     for (int bloque = 0; bloque < TOP; bloque++)
     {
         if (result_SA.Aciertos[bloque] == 0)
         {
             return(false);
         }
     }
     return(true);
 }
示例#4
0
        public FormExport2PDF(Paciente paciente, Resultado_AS r)
        {
            InitializeComponent();
            var ToolTipMostrar = new ToolTip();

            ToolTipMostrar.SetToolTip(this.buttonImprimir, "Muestra el reporte en formato pdf y permite imprimirlo desde esa ventana");
            var ToolTipExportar = new ToolTip();

            ToolTipExportar.SetToolTip(this.buttonExportar, "Exporta reporte a formato pdf en la dirección especificada por el usuario");
            this.paciente  = paciente;
            this.resultado = r;
            this.datos     = new ExportData(this.paciente, resultado);
            this.pdfReportViewerUC1.Datos = datos;
        }
示例#5
0
        /// <summary>
        /// b)	Si se dan en dos o más bloques IA de valor negativo (pero al menos ha habido 1 acierto en cada bloque).
        /// </summary>
        private bool ProtocoloValidoB(Resultado_AS result_SA, double[] ia_bloques, int TOP)
        {
            int ia_Count        = 0;
            int aciertosBloques = 0;

            for (int bloque = 0; bloque < TOP; bloque++)
            {
                if (ia_bloques[bloque] < 0)
                {
                    ia_Count++;
                }
                if (result_SA.Aciertos[bloque] > 0)
                {
                    aciertosBloques++;
                }
            }
            return(!(ia_Count >= 2 && aciertosBloques == TOP));
        }
示例#6
0
        private void tsbReporte_Click(object sender, EventArgs e)
        {
            if (this.listViewPacientes.SelectedItems.Count == 0)
            {
                return;
            }
            string   cod = this.listViewPacientes.SelectedItems[0].SubItems[1].Text;
            Paciente p   = ap.Seleccionar_Paciente(cod);

            Resultado_AS res = ap.ExtractResultFromPaciente();

            if (res == null)
            {
                var resp = new Resp("Este paciente no ha realizado ninguna prueba", "Paciente sin consultarse");
                resp.ShowDialog(this);
                return;
            }
            var e2pdf = new FormExport2PDF(p, res);

            e2pdf.ShowDialog(this);
        }
示例#7
0
        public void Init(Resultado_AS result_SA, double[] ia_bloques, TNotaciones TNotaciones, int edad)
        {
            var perc     = new[] { int.MinValue, 0, 30, 40, 61, 66 };
            var ori_IA_A = new[]
            {
                "Puntaje probablemente inválido",
                "Altamente Atípico",
                "Moderadamente Atípico",
                "Promedio",
                "Buen desempeño",
                "Muy buen desempeño"
            };
            var ori_O_C_DE = new[]
            {
                "Puntaje probablemente inválido",
                "Muy Buen desempeño",
                "Buen desempeño",
                "Promedio",
                "Moderadamente Atípico",
                "Altamente Atípico"
            };
            var ori_TR = new[]
            {
                "Puntaje probablemente inválido",
                "Atípicamente rápidos",
                "Moderadamente rápidos",
                "Promedio",
                "Moderadamente lentos",
                "Muy lento"
            };
            int countPerc = perc.Length;

            for (int i = 0; i < countPerc; i++)
            {
                if (TNotaciones.IndiceAtencion >= perc[i])
                {
                    this.o_ia = ori_IA_A[i];
                }
                else
                {
                    break;
                }
            }
            for (int i = 0; i < countPerc; i++)
            {
                if (TNotaciones.Aciertos >= perc[i])
                {
                    this.o_aciertos = ori_IA_A[i];
                }
                else
                {
                    break;
                }
            }
            for (int i = 0; i < countPerc; i++)
            {
                if (TNotaciones.Omisiones >= perc[i])
                {
                    this.o_omisiones = ori_O_C_DE[i];
                }
                else
                {
                    break;
                }
            }
            for (int i = 0; i < countPerc; i++)
            {
                if (TNotaciones.Comisiones >= perc[i])
                {
                    this.o_comisiones = ori_O_C_DE[i];
                }
                else
                {
                    break;
                }
            }
            for (int i = 0; i < countPerc; i++)
            {
                if (TNotaciones.DesviacionTiempoReaccion >= perc[i])
                {
                    this.o_error_tr = ori_O_C_DE[i];
                }
                else
                {
                    break;
                }
            }
            for (int i = 0; i < countPerc; i++)
            {
                if (TNotaciones.TiempoReaccion >= perc[i])
                {
                    this.o_tr = ori_TR[i];
                }
                else
                {
                    break;
                }
            }

            #region Conclusiones de los percentiles
            //// a)
            //if ( PercentilesGenerales[IA_index] <= 25 && PercentilesGenerales[Omisiones_index] >= 75 )
            //    this.o_conclusiones +=
            //        "Los resultados en el Índice de Atención y el número elevado de errores por omisión, sugieren la presencia de dificultades atencionales.\n";
            //// b)
            //if ( PercentilesGenerales[IA_index] <= 25 && PercentilesGenerales[Omisiones_index] <= 75 && PercentilesGenerales[Comisiones_index] >= 75 )
            //    this.o_conclusiones +=
            //        "Los resultados en el Índice de Atención y el número elevado de errores por acción, sugieren la presencia de dificultades en el control de los impulsos que pueden perturbar el rendimiento atencional, esta conclusión será tan válida como válido se considere el protocolo.\n";
            //// c)
            //if ( PercentilesGenerales[Error_TR_index] <= 75 )
            //    this.o_conclusiones +=
            //        "Los resultados en la desviación estándar de los TR sugieren variabilidad en la calidad de la  atención.\n";
            //// f)
            //if ( result_SA.Aciertos_Extrannos.Sum() >= 3 )
            //    this.o_conclusiones +=
            //        "Dado el número de Aciertos Extemporáneos establezca una correlación entre éstos, los tiempos de reacción y el IA antes de conjeturar posibles dificultades de control inhibitorio.\n";
            //// g)
            //if ( string.IsNullOrEmpty( o_conclusiones ) )
            //    this.o_conclusiones =
            //        "Protocolo que no indica altas probabilidades de ser compatible con dificultades atencionales.\n";
            //// protocolo válido por omisiones de un bloque
            //if ( !ProtocoloVálido1( result_SA ) )
            //    this.o_conclusiones +=
            //        "Hubo una larga serie de omisiones, el administrador debe decidir si este protocolo es válido.\n";
            //// protocolo válido por atencion deficiente
            //if ( !ProtocoloVálidoMAS( result_SA ) )
            //    this.o_conclusiones +=
            //        "Hubo bloques de la prueba en que el sujeto parece no haber respondido, o respondido al azar. El administrador debe decidir si este protocolo es válido.\n";
            #endregion

            if (!ProtocoloValidoA(result_SA, FunctionLibrary.GetTopBlocks(edad)))
            {
                this.o_conclusiones +=
                    "Hubo una larga serie de omisiones, el administrador debe decidir si este protocolo es válido\n";
            }
            if (!ProtocoloValidoB(result_SA, ia_bloques, FunctionLibrary.GetTopBlocks(edad)))
            {
                this.o_conclusiones +=
                    "Hubo bloques de la prueba en que el sujeto parece no haber respondido, o respondido al azar. El administrador debe decidir si este protocolo es válido.\n";
            }
            if (string.IsNullOrEmpty(o_conclusiones))
            {
                this.o_conclusiones =
                    "El análisis de los parámetros de esta administración sugieren que el protocolo es válido";
            }
        }
示例#8
0
        private void buttonEjecutar_Click(object sender, EventArgs e)
        {
            if (comboBoxPaciente.SelectedItem == null)
            {
                var r = new Resp(Resources.MSG_Select_Patient);
                r.ShowDialog(this);
                return;
            }
            if (comboBoxTest.SelectedItem == null)
            {
                var r = new Resp(Resources.MSG_Select_Test);
                r.ShowDialog(this);
                return;
            }
            if (ap.Paciente != null)
            {
                #region OTHERS tests
                //if (this.comboBoxTest.Text == Resources.ComboValue_MF)
                //{
                //    int presentacion = (int)this.numericUpDown1.Value;
                //    int muestra = (int)this.numericUpDown2.Value;
                //    FullScreenBlack f = new FullScreenBlack(presentacion, muestra);
                //    f.ShowDialog(this);
                //    this.ap.Adicionar_Resultado(f.Resultado);
                //    if (this.checkBoxMostrarResultado.Checked)
                //    {
                //        Reporte r = new Reporte(ap.Paciente, f.Resultado);
                //        r.ShowDialog(this);
                //    }
                //    return;
                //}
                //if (this.comboBoxTest.Text == Resources.ComboValue_PVA)
                //{
                //    //FullScreenBlack f = new FullScreenBlack(p, "PVA");
                //    int presentacion = this.ap.Configuracion.Presentacion_PVA;
                //    int muestra = this.ap.Configuracion.Muestra_PVA;
                //    int descanso = this.ap.Configuracion.Descanso_PVA;
                //    Color[] colores = new Color[]{this.ap.Configuracion.Colores_PVA[0],
                //                                  this.ap.Configuracion.Colores_PVA[1],
                //                                  this.ap.Configuracion.Colores_PVA[2],
                //                                  this.ap.Configuracion.Colores_PVA[3],
                //                                  this.ap.Configuracion.Colores_PVA[4],
                //                                  this.ap.Configuracion.Colores_PVA[5]};
                //    FullScreenBlack f = new FullScreenBlack(presentacion, muestra, descanso, colores, false, this.ap.Configuracion.Imagenes_PVA);
                //    f.ShowDialog(this);
                //    if (f.Resultado == null) return;
                //    this.ap.Adicionar_Resultado(f.Resultado);
                //    if (this.checkBoxResultado.Checked)
                //    {
                //        Reporte r = new Reporte(ap.Paciente, f.Resultado);
                //        r.ShowDialog(this);
                //    }
                //    return;
                //}
                //if (this.comboBoxTest.Text == Resources.ComboValue_PVA2)
                //{
                //    //FullScreenBlack f = new FullScreenBlack(p, "PVA");
                //    int presentacion = this.ap.Configuracion.Presentacion_PVA;
                //    int muestra = this.ap.Configuracion.Muestra_PVA;
                //    int descanso = this.ap.Configuracion.Descanso_PVA;
                //    Color[] colores = new Color[]{this.ap.Configuracion.Colores_PVA[0],
                //                                  this.ap.Configuracion.Colores_PVA[1],
                //                                  this.ap.Configuracion.Colores_PVA[2],
                //                                  this.ap.Configuracion.Colores_PVA[3],
                //                                  this.ap.Configuracion.Colores_PVA[4],
                //                                  this.ap.Configuracion.Colores_PVA[5]};
                //    FullScreenBlack f = new FullScreenBlack(presentacion, muestra, descanso, colores, true, this.ap.Configuracion.Imagenes_PVA);
                //    f.ShowDialog(this);
                //    this.ap.Adicionar_Resultado(f.Resultado);
                //    if (this.checkBoxResultado.Checked)
                //    {
                //        Reporte r = new Reporte(ap.Paciente, f.Resultado);
                //        r.ShowDialog(this);
                //    }
                //    return;
                //}
                //if (this.comboBoxTest.Text == Resources.ComboValue_AM)
                //{
                //    int digito = ap.Configuracion.Exp_Digito_AM;
                //    int intervalo = ap.Configuracion.Intervalo_AM;
                //    int reaccion = ap.Configuracion.Reaccion_AM;
                //    int desasiertos = ap.Configuracion.Desasiertos_AM;
                //    NumScreen n = new NumScreen(digito, intervalo, reaccion, desasiertos);
                //    n.ShowDialog(this);
                //    this.ap.Adicionar_Resultado(n.Resultado);
                //    if (this.checkBoxResultado.Checked)
                //    {
                //        Reporte r = new Reporte(ap.Paciente, n.Resultado);
                //        r.ShowDialog(this);
                //    }
                //    return;
                //}
                //if (this.comboBoxTest.Text == Resources.ComboValue_TRC)
                //{
                //    Complementos.Figura figura = this.ap.Configuracion.Figura_TRC;
                //    int estimulos = this.ap.Configuracion.MaxEstimulos_TRC;
                //    int visualizacion = this.ap.Configuracion.TiempoVisualizacion_TRC;
                //    int reaccion = this.ap.Configuracion.TiempoReaccion_TRC;
                //    int tecla_reaccion = (this.ap.Configuracion.Tecla1_TRC == "[Enter]") ? 13 : 32;
                //    int tecla_reaccion1 = (this.ap.Configuracion.Tecla1_TRC == "[Enter]") ? 13 : 32;
                //    Color color = this.ap.Configuracion.Color1_TRC;
                //    Color color1 = this.ap.Configuracion.Color2_TRC;

                //    FormTR f = new FormTR(color, color1, estimulos, visualizacion, reaccion, tecla_reaccion, tecla_reaccion1, figura);
                //    f.ShowDialog(this);
                //    this.ap.Adicionar_Resultado(f.Resultado);
                //    if (this.checkBoxResultado.Checked)
                //    {
                //        Reporte r = new Reporte(ap.Paciente, f.Resultado);
                //        r.ShowDialog(this);
                //    }
                //    return;
                //}
                //if (this.comboBoxTest.Text == Resources.ComboValue_TRS)
                //{
                //    Complementos.Figura figura = this.ap.Configuracion.Figura_TRS;
                //    int estimulos = this.ap.Configuracion.MaxEstimulos_TRS;
                //    int visualizacion = this.ap.Configuracion.TiempoVisualizacion_TRS;
                //    int reaccion = this.ap.Configuracion.TiempoReaccion_TRS;
                //    int tecla_reaccion = (this.ap.Configuracion.Tecla1_TRS == "[Enter]") ? 13 : 32;
                //    Color color = this.ap.Configuracion.Color1_TRS;
                //    FormTRS f = new FormTRS(tecla_reaccion, color, estimulos, visualizacion, reaccion, figura);
                //    f.ShowDialog(this);
                //    this.ap.Adicionar_Resultado(f.Resultado);
                //    if (this.checkBoxResultado.Checked)
                //    {
                //        Reporte r = new Reporte(ap.Paciente, f.Resultado);
                //        r.ShowDialog(this);
                //    }
                //    return;
                //}
                //if (this.comboBoxTest.Text == Resources.ComboValue_RL)
                //{
                //    int vis1 = this.ap.Configuracion.TiempoVisualizacion1_RL;
                //    int oc1 = this.ap.Configuracion.TiempoOcultamiento1_RL;
                //    int vis15 = this.ap.Configuracion.TiempoVisualizacion15_RL;
                //    int vis2 = this.ap.Configuracion.TiempoVisualizacion2_RL;
                //    int oc2 = this.ap.Configuracion.TiempoOcultamiento2_RL;
                //    int teclacorrecta = (this.ap.Configuracion.Tecla1_TRS == "[Enter]") ? 13 : 32;
                //    int teclaincorrecta = (this.ap.Configuracion.Tecla1_TRS == "[Enter]") ? 13 : 32;
                //    Recuerdo r = new Recuerdo(this, vis1, oc1, vis15, vis2, oc2, teclacorrecta, teclaincorrecta);
                //    r.ShowDialog(this);
                //    this.ap.Adicionar_Resultado(r.Resultado);

                //    if (this.checkBoxResultado.Checked)
                //    {
                //        Reporte rep = new Reporte(ap.Paciente, r.Resultado);
                //        rep.ShowDialog(this);
                //    }
                //    r = null;
                //    return;
                //}
                //if (this.comboBoxTest.Text == Resources.Combovalue_EM)
                //{
                //    int maxEst = (int)this.numericUpDown1.Value;
                //    int interv = (int)this.numericUpDown2.Value;
                //    int anchEst = (int)this.numericUpDown3.Value;
                //    int altoEst = (int)this.numericUpDown4.Value;
                //    int anchoZO = (int)this.numericUpDown5.Value;
                //    int areaCorrecta = (int)this.numericUpDown6.Value;
                //    Color colorEst = this.panelColor1.BackColor;
                //    Color colorZO = this.panelColor2.BackColor;
                //    int teclaReaccion = (this.comboBox1.Text == "[Espacio]") ? 32 : 13;

                //    TimeEstimation t = new TimeEstimation(maxEst, interv, anchEst, altoEst, anchoZO, areaCorrecta, colorEst, colorZO, teclaReaccion);
                //    t.ShowDialog(this);
                //    this.ap.Adicionar_Resultado(t.r);

                //    if (this.checkBoxMostrarResultado.Checked)
                //    {
                //        Reporte rep = new Reporte(ap.Paciente, t.r);
                //        rep.ShowDialog(this);
                //    }
                //}
                #endregion

                // PARCHE PARA TEST POR EDADES
                //if (!CorrectTestForAge())
                //{
                //    var r = new Resp(string.Format(Resources.MSG_Select_Test, ap.Paciente.Edad));
                //    r.ShowDialog(this);
                //    return;
                //}

                if (this.comboBoxTest.Text == Resources.ComboValue_ASS)
                {
                    int     bloques        = this.ap.Configuracion.Bloques_ASS;
                    int     estimulos      = this.ap.Configuracion.EstimulosBloques_ASS;
                    int     visualizacion  = this.ap.Configuracion.TiempoVisualizacion_ASS;
                    int     ocultamiento   = this.ap.Configuracion.TiempoOcultamiento_ASS;
                    int     tecla_reaccion = (this.ap.Configuracion.TeclaTarget_ASS == "[Enter]") ? 13 : 32;
                    int     index          = this.ap.Configuracion.ImageIndex_ASS;
                    FormASS f2             = this.ap.Configuracion.Estimulo_ASS == 0 ?
                                             new FormASS(false, this.ap.Paciente.Codigo, this.ap.Configuracion.Imagenes_ASS_IMG, index, bloques, estimulos, visualizacion, ocultamiento, tecla_reaccion, this.ap.Configuracion.Color_Fondo_ASS, (TypeOf_AS_Test)this.ap.Configuracion.Estimulo_ASS) :
                                             new FormASS(false, this.ap.Paciente.Codigo, this.ap.Configuracion.Imagenes_ASS_FIG, index, bloques, estimulos, visualizacion, ocultamiento, tecla_reaccion, this.ap.Configuracion.Color_Fondo_ASS, (TypeOf_AS_Test)this.ap.Configuracion.Estimulo_ASS);
                    this.ap.ManageRunTest(this, f2, 10, true);
                    if (this.checkBoxResultado.Checked)
                    {
                        Resultado_AS res = ap.ExtractResultFromPaciente();
                        if (res == null)
                        {
                            var resp = new Resp("Este paciente no ha realizado ninguna prueba", "Paciente sin consultarse");
                            resp.ShowDialog(this);
                            return;
                        }
                        var r = new FormExport2PDF(ap.Paciente, res);
                        r.ShowDialog(this);
                    }
                    return;
                }
                if (this.comboBoxTest.Text == Resources.ComboValue_ASS_L)
                {
                    int   bloques        = this.ap.Configuracion.Bloques_ASS_L;
                    int   estimulos      = this.ap.Configuracion.EstimulosBloques_ASS_L;
                    int   visualizacion  = this.ap.Configuracion.TiempoVisualizacion_ASS_L;
                    int   ocultamiento   = this.ap.Configuracion.TiempoOcultamiento_ASS_L;
                    int   tecla_reaccion = (this.ap.Configuracion.TeclaTarget_ASS_L == "[Enter]") ? 13 : 32;
                    int   index          = this.ap.Configuracion.Letra_Diana_ASS_L;
                    Color color          = this.ap.Configuracion.Color_Letras_ASS_L;
                    var   f2             = new FormASSL(false, this.ap.Paciente.Codigo, this.ap.Configuracion.Letras_ASS_L, index, bloques, estimulos, visualizacion, ocultamiento, tecla_reaccion, this.ap.Configuracion.Color_Fondo_ASS_L, color);
                    this.ap.ManageRunTest(this, f2, 10, true);
                    if (this.checkBoxResultado.Checked)
                    {
                        Resultado_AS res = ap.ExtractResultFromPaciente();
                        if (res == null)
                        {
                            var resp = new Resp("Este paciente no ha realizado ninguna prueba", "Paciente sin consultarse");
                            resp.ShowDialog(this);
                            return;
                        }
                        var r = new FormExport2PDF(ap.Paciente, res);
                        r.ShowDialog(this);
                    }
                    return;
                }
                if (this.comboBoxTest.Text == Resources.ComboValue_ASC)
                {
                    int bloques        = this.ap.Configuracion.Bloques_ASC;
                    int estimulos      = this.ap.Configuracion.EstimulosBloques_ASC;
                    int visualizacion  = this.ap.Configuracion.TiempoVisualizacion_ASC;
                    int ocultamiento   = this.ap.Configuracion.TiempoOcultamiento_ASC;
                    int tecla_reaccion = (this.ap.Configuracion.TeclaTarget_ASS == "[Enter]") ? 13 : 32;
                    int index          = this.ap.Configuracion.ImageIndex1_ASC;
                    int index1         = this.ap.Configuracion.ImageIndex2_ASC;

                    FormASC f2 = this.ap.Configuracion.Estimulo_ASC == 0 ?
                                 new FormASC(false, this.ap.Paciente.Codigo, index, index1, this.ap.Configuracion.Imagenes_ASC_IMG, bloques, estimulos, visualizacion, ocultamiento, tecla_reaccion, this.ap.Configuracion.Color_Fondo_ASC, (TypeOf_AS_Test)this.ap.Configuracion.Estimulo_ASC) :
                                 new FormASC(false, this.ap.Paciente.Codigo, index, index1, this.ap.Configuracion.Imagenes_ASC_FIG, bloques, estimulos, visualizacion, ocultamiento, tecla_reaccion, this.ap.Configuracion.Color_Fondo_ASC, (TypeOf_AS_Test)this.ap.Configuracion.Estimulo_ASC);
                    this.ap.ManageRunTest(this, f2, 10, true);
                    if (this.checkBoxResultado.Checked)
                    {
                        Resultado_AS res = ap.ExtractResultFromPaciente();
                        if (res == null)
                        {
                            var resp = new Resp("Este paciente no ha realizado ninguna prueba", "Paciente sin consultarse");
                            resp.ShowDialog(this);
                            return;
                        }
                        var r = new FormExport2PDF(ap.Paciente, res);
                        r.ShowDialog(this);
                    }
                    return;
                }
                if (this.comboBoxTest.Text == Resources.ComboValue_ASC_L)
                {
                    int bloques        = this.ap.Configuracion.Bloques_ASC_L;
                    int estimulos      = this.ap.Configuracion.EstimulosBloques_ASC_L;
                    int visualizacion  = this.ap.Configuracion.TiempoVisualizacion_ASC_L;
                    int ocultamiento   = this.ap.Configuracion.TiempoOcultamiento_ASC_L;
                    int tecla_reaccion = (this.ap.Configuracion.TeclaTarget_ASC_L == "[Enter]") ? 13 : 32;
                    int index          = this.ap.Configuracion.Index_Diana1_ASC_L;
                    int index1         = this.ap.Configuracion.Index_Diana2_ASC_L;
                    //string secuencia_letras = this.ap.Configuracion.Letras_ASC_L;
                    var f2 = new FormASCL(false, this.ap.Paciente.Codigo, index, index1, this.ap.Configuracion.Letras_ASC_L, bloques, estimulos, visualizacion, ocultamiento, tecla_reaccion, this.ap.Configuracion.Color_Fondo_ASC, this.ap.Configuracion.Color_Letras_ASC_L);
                    this.ap.ManageRunTest(this, f2, 10, true);
                    if (this.checkBoxResultado.Checked)
                    {
                        Resultado_AS res = ap.ExtractResultFromPaciente();
                        if (res == null)
                        {
                            var resp = new Resp("Este paciente no ha realizado ninguna prueba", "Paciente sin consultarse");
                            resp.ShowDialog(this);
                            return;
                        }
                        var r = new FormExport2PDF(ap.Paciente, res);
                        r.ShowDialog(this);
                    }
                    return;
                }
            }
        }
示例#9
0
 public Puntuaciones(Paciente paciente, Resultado_AS resultado) : base(paciente, resultado)
 {
 }
示例#10
0
 public TNotaciones(Paciente paciente, Resultado_AS resultado) : base(paciente, resultado)
 {
 }