Esempio n. 1
0
        public void UpdateSendStatus(ExtractType extractType, List <SentItem> sentItems)
        {
            try
            {
                switch (extractType)
                {
                case ExtractType.Patient:
                    _patientExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientArt:
                    _artExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientBaseline:
                    _baselinesExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientLab:
                    _laboratoryExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientPharmacy:
                    _pharmacyExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientStatus:
                    _statusExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientVisit:
                    _visitExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientAdverseEvent:
                    _adverseEventExtractRepository.UpdateSendStatus(sentItems);
                    break;
                }
            }
            catch (Exception e)
            {
                Log.Error(e, "Sent status");
            }
        }
        public void UpdateSendStatus(ExtractType extractType, List <SentItem> sentItems)
        {
            try
            {
                switch (extractType)
                {
                case ExtractType.Patient:
                    _patientExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientArt:
                    _artExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientBaseline:
                    _baselinesExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientLab:
                    _laboratoryExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientPharmacy:
                    _pharmacyExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientStatus:
                    _statusExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientVisit:
                    _visitExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.PatientAdverseEvent:
                    _adverseEventExtractRepository.UpdateSendStatus(sentItems);
                    break;


                case ExtractType.AllergiesChronicIllness:
                    _allergiesChronicIllnessExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.ContactListing:
                    _contactListingExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.DepressionScreening:
                    _depressionScreeningExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.DrugAlcoholScreening:
                    _drugAlcoholScreeningExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.EnhancedAdherenceCounselling:
                    _enhancedAdherenceCounsellingExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.GbvScreening:
                    _gbvScreeningExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.Ipt:
                    _iptExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.Otz:
                    _otzExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.Ovc:
                    _ovcExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.Covid:
                    _covidExtractRepository.UpdateSendStatus(sentItems);
                    break;

                case ExtractType.DefaulterTracing:
                    _defaulterTracingExtractRepository.UpdateSendStatus(sentItems);
                    break;
                }
            }
            catch (Exception e)
            {
                Log.Error(e, "Sent status");
            }
        }