Example #1
0
        void _othListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e)
        {
            int rowid = (int)e.ListVItem.Tag;
            OtherTestNameEnum tname = (OtherTestNameEnum)e.SubItem.ColumnName;

            try
            {
                double value             = Convert.ToDouble(e.SubItem.Text);
                PSymptomDirectedTest pdt = _protocol.GetSymptomDirectedTestByTestName(tname);
                if (rowid == 1)
                {
                    pdt.AdultInTreatmeant = value;
                }
                else if (rowid == 2)
                {
                    pdt.PediatricInTreatmeant = value;
                }
                else if (rowid == 3)
                {
                    pdt.AdultPreART = value;
                }
                else
                {
                    pdt.PediatricPreART = value;
                }
            }
            catch
            {
            }
        }
Example #2
0
 public OtherSymptomDirectedTest GetOtherSymptomDirectedTestById(OtherTestNameEnum test)
 {
     foreach (OtherSymptomDirectedTest c in OtherSymptomDirectedTest)
     {
         if (c.TestName == test)
             return c;
     }
     return null;
 }
Example #3
0
        public double GetSumOfOtherTest(OtherTestNameEnum test)
        {
            double result = 0d;

            foreach (OtherTestByPannel c in OtherTestByPanel)
            {
                result += c.GetOtherTestValue(test);
            }
            return(result);
        }
Example #4
0
 public virtual PSymptomDirectedTest GetSymptomDirectedTestByTestName(OtherTestNameEnum testname)
 {
     foreach (PSymptomDirectedTest sdt in _symptomDirectedTests)
     {
         if (sdt.OtherTestNameToEnum == testname)
         {
             return(sdt);
         }
     }
     return(null);
 }
Example #5
0
        private double GetSumofTest(OtherTestNameEnum testname)
        {
            double result = 0d;

            for (int i = 1; i <= 12; i++)
            {
                result += _othMonthlyOutputs[i].GetOtherSymptomDirectedTestById(testname).TestsReferredtoAnotherFacility;
            }
            result += SubtotalBufferTestBeyondForecast(testname);
            return(result);
        }
Example #6
0
 public virtual PanelTest GetOtherPanelTest(OtherTestNameEnum testname)
 {
     foreach (PanelTest pt in PanelTests)
     {
         if (pt.OtherTestNameToEnum == testname)
         {
             return(pt);
         }
     }
     return(null);
 }
Example #7
0
 public OtherSymptomDirectedTest GetOtherSymptomDirectedTestById(OtherTestNameEnum test)
 {
     foreach (OtherSymptomDirectedTest c in OtherSymptomDirectedTest)
     {
         if (c.TestName == test)
         {
             return(c);
         }
     }
     return(null);
 }
Example #8
0
 public virtual bool IsOtherTestSelected(OtherTestNameEnum testname)
 {
     foreach (PanelTest pt in PanelTests)
     {
         if (pt.OtherTestNameToEnum == testname)
         {
             return(true);
         }
     }
     return(false);
 }
Example #9
0
        private void SelectOtherTest(ItemCheckedEventArgs e)
        {
            OtherTestNameEnum tname = (OtherTestNameEnum)e.Item.Tag;

            if (e.Item.Checked)
            {
                _panel.PanelTests.Add(new PanelTest()
                {
                    OtherTestName = tname.ToString(), Panel = _panel
                });
            }
            else
            {
                PanelTest pt = _panel.GetOtherPanelTest(tname);
                if (pt != null)
                {
                    _panel.PanelTests.Remove(pt);
                }
            }
        }
Example #10
0
        public double GetOtherTestValue(OtherTestNameEnum test)
        {
            double result = 0d;

            switch (test)
            {
            case OtherTestNameEnum.Genotype_Resistance_Testing:
                result = _genotypeResistanceTesting;
                break;

            case OtherTestNameEnum.Hepatitis_Anti_HCV:
                result = _HepatitisAntiHCV;
                break;

            case OtherTestNameEnum.Hepatitis_HBsAG:
                result = _HepatitisHBsAG;
                break;

            case OtherTestNameEnum.PAP_Smear:
                result = _PAPSmear;
                break;

            case OtherTestNameEnum.Syphilis_RPR:
                result = _syphilisRPR;
                break;

            case OtherTestNameEnum.TB_AFB:
                result = _TBAFB;
                break;

            case OtherTestNameEnum.TB_Culture:
                result = _TBCulture;
                break;

            case OtherTestNameEnum.TB_DST:
                result = _TBDST;
                break;
            }
            return(result);
        }
Example #11
0
        public void SetOtherTestValue(OtherTestNameEnum test, double value)
        {
            switch (test)
            {
            case OtherTestNameEnum.Genotype_Resistance_Testing:
                _genotypeResistanceTesting = value;
                break;

            case OtherTestNameEnum.Hepatitis_Anti_HCV:
                _HepatitisAntiHCV = value;
                break;

            case OtherTestNameEnum.Hepatitis_HBsAG:
                _HepatitisHBsAG = value;
                break;

            case OtherTestNameEnum.PAP_Smear:
                _PAPSmear = value;
                break;

            case OtherTestNameEnum.Syphilis_RPR:
                _syphilisRPR = value;
                break;

            case OtherTestNameEnum.TB_AFB:
                _TBAFB = value;
                break;

            case OtherTestNameEnum.TB_Culture:
                _TBCulture = value;
                break;

            case OtherTestNameEnum.TB_DST:
                _TBDST = value;
                break;
            }
        }
Example #12
0
 private double BufferTestBeyondForecast(OtherTestNameEnum test)
 {
     return(_othMonthlyOutputs[12].GetSumOfOtherTest(test) * PeriodInfo.NumberofBufferMonthsBeyondForecast);
 }
Example #13
0
 public virtual PSymptomDirectedTest GetSymptomDirectedTestByTestName(OtherTestNameEnum testname)
 {
     foreach (PSymptomDirectedTest sdt in _symptomDirectedTests)
     {
         if (sdt.OtherTestNameToEnum == testname)
             return sdt;
     }
     return null;
 }
Example #14
0
 private double BufferTestBeyondForecast(OtherTestNameEnum test)
 {
     return _othMonthlyOutputs[12].GetSumOfOtherTest(test) * PeriodInfo.NumberofBufferMonthsBeyondForecast;
 }
Example #15
0
 public void SetOtherTestValue(OtherTestNameEnum test, double value)
 {
     switch (test)
     {
         case OtherTestNameEnum.Genotype_Resistance_Testing:
             _genotypeResistanceTesting = value;
             break;
         case OtherTestNameEnum.Hepatitis_Anti_HCV:
             _HepatitisAntiHCV = value;
             break;
         case OtherTestNameEnum.Hepatitis_HBsAG:
             _HepatitisHBsAG = value;
             break;
         case OtherTestNameEnum.PAP_Smear:
             _PAPSmear = value;
             break;
         case OtherTestNameEnum.Syphilis_RPR:
             _syphilisRPR = value;
             break;
         case OtherTestNameEnum.TB_AFB:
             _TBAFB = value;
             break;
         case OtherTestNameEnum.TB_Culture:
             _TBCulture = value;
             break;
         case OtherTestNameEnum.TB_DST:
             _TBDST = value;
             break;
     }
 }
Example #16
0
 public double GetOtherTestValue(OtherTestNameEnum test)
 {
     double result = 0d;
     switch (test)
     {
         case OtherTestNameEnum.Genotype_Resistance_Testing:
             result = _genotypeResistanceTesting;
             break;
         case OtherTestNameEnum.Hepatitis_Anti_HCV:
             result = _HepatitisAntiHCV;
             break;
         case OtherTestNameEnum.Hepatitis_HBsAG:
             result = _HepatitisHBsAG;
             break;
         case OtherTestNameEnum.PAP_Smear:
             result = _PAPSmear;
             break;
         case OtherTestNameEnum.Syphilis_RPR:
             result = _syphilisRPR;
             break;
         case OtherTestNameEnum.TB_AFB:
             result = _TBAFB;
             break;
         case OtherTestNameEnum.TB_Culture:
             result = _TBCulture;
             break;
         case OtherTestNameEnum.TB_DST:
             result = _TBDST;
             break;
     }
     return result;
 }
Example #17
0
 private double SubtotalBufferTestBeyondForecast(OtherTestNameEnum test)
 {
     double sum = BufferTestBeyondForecast(test);
     return sum + (sum * _othAdditionalTestsDuetoWastage);
 }
Example #18
0
        private double SubtotalBufferTestBeyondForecast(OtherTestNameEnum test)
        {
            double sum = BufferTestBeyondForecast(test);

            return(sum + (sum * _othAdditionalTestsDuetoWastage));
        }
Example #19
0
        public virtual bool IsOtherTestSelected(OtherTestNameEnum testname)
        {
            foreach (PanelTest pt in PanelTests)
            {
                if (pt.OtherTestNameToEnum == testname)
                    return true;

            }
            return false;
        }
Example #20
0
        public virtual PanelTest GetOtherPanelTest(OtherTestNameEnum testname)
        {
            foreach (PanelTest pt in PanelTests)
            {
                if (pt.OtherTestNameToEnum == testname)
                    return pt;

            }
            return null;
        }
Example #21
0
 public double GetSumOfOtherTest(OtherTestNameEnum test)
 {
     double result =0d;
     foreach (OtherTestByPannel c in OtherTestByPanel)
     {
         result += c.GetOtherTestValue(test);
     }
     return result;
 }
Example #22
0
        private double GetSumofTest(OtherTestNameEnum testname)
        {
            double result = 0d;
            for (int i = 1; i <= 12; i++)
            {
                result += _othMonthlyOutputs[i].GetOtherSymptomDirectedTestById(testname).TestsReferredtoAnotherFacility;

            }
            result += SubtotalBufferTestBeyondForecast(testname);
            return result;
        }