Exemplo n.º 1
0
        //TEST POR EDADES
        private bool CorrectTestForAge()
        {
            int edad = this.ap.Paciente.Edad;

            if (edad == FunctionLibrary.AgeFirstLevel)
            {
                return(this.ap.Configuracion.Estimulo_ASC == 0 && this.comboBoxTest.Text == Resources.ComboValue_ASC);
            }
            if (FunctionLibrary.InRange(edad, FunctionLibrary.AgeMinSecondLevel, FunctionLibrary.AgeMaxSecondLevel))
            {
                return(this.comboBoxTest.Text == Resources.ComboValue_ASC_L);
            }
            return(false);
        }
Exemplo n.º 2
0
 public Resultado_AS ExtractResultFromPaciente()
 {
     if (Paciente.Edad == FunctionLibrary.AgeFirstLevel)
     {
         foreach (Resultado_AS r in Paciente.Resultados)
         {
             if (r.TipoPrueba == TypeOf_AS_Test.H_Imagenes && r.TipoAtencion == TypeAS.Compleja)
             {
                 return(r);
             }
         }
     }
     if (FunctionLibrary.InRange(Paciente.Edad, FunctionLibrary.AgeMinSecondLevel, FunctionLibrary.AgeMaxSecondLevel))
     {
         foreach (Resultado_AS r in Paciente.Resultados)
         {
             if (r.TipoPrueba == TypeOf_AS_Test.H_Letras && r.TipoAtencion == TypeAS.Compleja)
             {
                 return(r);
             }
         }
     }
     return(null);
 }