Esempio n. 1
0
        private void InitalizeCalculaterEngine()
        {
            _artSites = DataRepository.GetAllARTSite(_forecast.Id);

            _mCalculaterEngine = new MorbidityCalculater(_forecast, _artSites, _invAssumption);
            _mCalculaterEngine.UpdateCalculationEvent += new MorbidityCalculater.PerformMorbidityCalculationOnSite(CalculaterEngine_UpdateCalculationEvent);

            _mCalculaterEngine.TargetSelected     = _forecast.PatientTreatmentTargetEnum == Core.Util.OptPatientTreatmentTargetEnum.OnTreatment ? 1 : 2;
            _mCalculaterEngine.RapidTestAlgorithm = new RapidTestAlgorithm(_forecast.TypeofAlgorithmEnum);
            _mCalculaterEngine.BudgetPeridoInfo   = InitPeriodInfo();

            MorbidityForecastUtil.OnSaveCalculatedMorbidityEvent += new MorbidityForecastUtil.SaveCalculatedMorbidityOutPutOnSite(MorbidityForecastUtil_OnSaveCalculatedMorbidityEvent);
        }
Esempio n. 2
0
        private void InitalizeCalculaterEngine()
        {
            _artSites = DataRepository.GetAllARTSite(_forecast.Id);

            _mCalculaterEngine = new MorbidityCalculater(_forecast, _artSites, _invAssumption);
            _mCalculaterEngine.UpdateCalculationEvent += new MorbidityCalculater.PerformMorbidityCalculationOnSite(CalculaterEngine_UpdateCalculationEvent);

            _mCalculaterEngine.TargetSelected        = _forecast.PatientTreatmentTargetEnum == Core.Util.OptPatientTreatmentTargetEnum.OnTreatment ? 1 : 2;
            _mCalculaterEngine.RapidTestAlgorithm    = new RapidTestAlgorithm(_forecast.TypeofAlgorithmEnum);
            _mCalculaterEngine.BudgetPeridoInfo      = InitPeriodInfo();
            _mCalculaterEngine.CD4TestingArea        = DataRepository.GetTestingAreaByClassOfMorbidity(ClassOfMorbidityTestEnum.CD4);
            _mCalculaterEngine.ChemistryTestingArea  = DataRepository.GetTestingAreaByClassOfMorbidity(ClassOfMorbidityTestEnum.Chemistry);
            _mCalculaterEngine.HematologyTestingArea = DataRepository.GetTestingAreaByClassOfMorbidity(ClassOfMorbidityTestEnum.Hematology);
            _mCalculaterEngine.ViralLoadTestingArea  = DataRepository.GetTestingAreaByClassOfMorbidity(ClassOfMorbidityTestEnum.ViralLoad);
            _mCalculaterEngine.OtherTestTestingArea  = DataRepository.GetTestingAreaByClassOfMorbidity(ClassOfMorbidityTestEnum.OtherTest);

            MorbidityForecastUtil.OnSaveCalculatedMorbidityEvent += new MorbidityForecastUtil.SaveCalculatedMorbidityOutPutOnSite(MorbidityForecastUtil_OnSaveCalculatedMorbidityEvent);
        }