コード例 #1
0
 public ExtractHeiHandler(IHeiSourceExtractor heiSourceExtractor, IMnchExtractValidator extractValidator, IHeiLoader heiLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _heiSourceExtractor       = heiSourceExtractor;
     _extractValidator         = extractValidator;
     _heiLoader                = heiLoader;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #2
0
        public async void Handle(HtsExtractActivityNotification domainEvent)
        {
            _extractHistoryRepository = Startup.ServiceProvider.GetService <IExtractHistoryRepository>();

            SaveExtractHistory(domainEvent);
            await Startup.HtsHubContext.Clients.All.SendAsync("ShowHtsProgress", domainEvent);
        }
コード例 #3
0
 public ExtractAncVisitHandler(IAncVisitSourceExtractor ancVisitSourceExtractor, IMnchExtractValidator extractValidator, IAncVisitLoader ancVisitLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _ancVisitSourceExtractor  = ancVisitSourceExtractor;
     _extractValidator         = extractValidator;
     _ancVisitLoader           = ancVisitLoader;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #4
0
 public ExtractCwcVisitHandler(ICwcVisitSourceExtractor cwcVisitSourceExtractor, IMnchExtractValidator extractValidator, ICwcVisitLoader cwcVisitLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _cwcVisitSourceExtractor  = cwcVisitSourceExtractor;
     _extractValidator         = extractValidator;
     _cwcVisitLoader           = cwcVisitLoader;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #5
0
 public ExtractMnchArtHandler(IMnchArtSourceExtractor mnchArtSourceExtractor, IMnchExtractValidator extractValidator, IMnchArtLoader mnchArtLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _mnchArtSourceExtractor   = mnchArtSourceExtractor;
     _extractValidator         = extractValidator;
     _mnchArtLoader            = mnchArtLoader;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #6
0
 public ExtractPncVisitHandler(IPncVisitSourceExtractor pncVisitSourceExtractor, IMnchExtractValidator extractValidator, IPncVisitLoader pncVisitLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _pncVisitSourceExtractor  = pncVisitSourceExtractor;
     _extractValidator         = extractValidator;
     _pncVisitLoader           = pncVisitLoader;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #7
0
 public ExtractMotherBabyPairHandler(IMotherBabyPairSourceExtractor motherBabyPairSourceExtractor, IMnchExtractValidator extractValidator, IMotherBabyPairLoader motherBabyPairLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _motherBabyPairSourceExtractor = motherBabyPairSourceExtractor;
     _extractValidator         = extractValidator;
     _motherBabyPairLoader     = motherBabyPairLoader;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #8
0
 public ExtractHTSClientLinkageHandler(IHTSClientLinkageSourceExtractor patientAdverseEventSourceExtractor, IHtsExtractValidator extractValidator, IHTSClientLinkageLoader patientAdverseEventLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _patientAdverseEventSourceExtractor = patientAdverseEventSourceExtractor;
     _extractValidator          = extractValidator;
     _patientAdverseEventLoader = patientAdverseEventLoader;
     _extractHistoryRepository  = extractHistoryRepository;
 }
コード例 #9
0
 public ExtractMatVisitHandler(IMatVisitSourceExtractor matVisitSourceExtractor, IMnchExtractValidator extractValidator, IMatVisitLoader matVisitLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _matVisitSourceExtractor  = matVisitSourceExtractor;
     _extractValidator         = extractValidator;
     _matVisitLoader           = matVisitLoader;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #10
0
 public ExtractHTSClientPartnerHandler(IHTSClientPartnerSourceExtractor patientLaboratorySourceExtractor, IHtsExtractValidator extractValidator, IHTSClientPartnerLoader patientLaboratoryLoader, IExtractHistoryRepository extractHistoryRepository)
 {
     _patientLaboratorySourceExtractor = patientLaboratorySourceExtractor;
     _extractValidator         = extractValidator;
     _patientLaboratoryLoader  = patientLaboratoryLoader;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #11
0
 public ExtractDrugAlcoholScreeningHandler(IDrugAlcoholScreeningSourceExtractor DrugAlcoholScreeningSourceExtractor, IExtractValidator extractValidator, IDrugAlcoholScreeningLoader DrugAlcoholScreeningLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _DrugAlcoholScreeningSourceExtractor = DrugAlcoholScreeningSourceExtractor;
     _extractValidator           = extractValidator;
     _DrugAlcoholScreeningLoader = DrugAlcoholScreeningLoader;
     _clearDwhExtracts           = clearDwhExtracts;
     _extractHistoryRepository   = extractHistoryRepository;
 }
コード例 #12
0
 public ExtractCovidHandler(ICovidSourceExtractor CovidSourceExtractor, IExtractValidator extractValidator, ICovidLoader CovidLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _CovidSourceExtractor     = CovidSourceExtractor;
     _extractValidator         = extractValidator;
     _CovidLoader              = CovidLoader;
     _clearDwhExtracts         = clearDwhExtracts;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #13
0
 public ExtractPatientBaselinesHandler(IPatientBaselinesSourceExtractor patientBaselinesSourceExtractor, IExtractValidator extractValidator, IPatientBaselinesLoader patientBaselinesLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _patientBaselinesSourceExtractor = patientBaselinesSourceExtractor;
     _extractValidator         = extractValidator;
     _patientBaselinesLoader   = patientBaselinesLoader;
     _clearDwhExtracts         = clearDwhExtracts;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #14
0
 public ExtractOtzHandler(IOtzSourceExtractor OtzSourceExtractor, IExtractValidator extractValidator, IOtzLoader OtzLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _OtzSourceExtractor       = OtzSourceExtractor;
     _extractValidator         = extractValidator;
     _OtzLoader                = OtzLoader;
     _clearDwhExtracts         = clearDwhExtracts;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #15
0
 public ExtractHTSClientHandler(IHTSClientSourceExtractor patientSourceExtractor, IHtsExtractValidator extractValidator, IHTSClientLoader patientLoader, ITempHTSClientExtractRepository tempPatientExtractRepository, IExtractHistoryRepository extractHistoryRepository)
 {
     _patientSourceExtractor       = patientSourceExtractor;
     _extractValidator             = extractValidator;
     _patientLoader                = patientLoader;
     _tempPatientExtractRepository = tempPatientExtractRepository;
     _extractHistoryRepository     = extractHistoryRepository;
 }
コード例 #16
0
 public ExtractDepressionScreeningHandler(IDepressionScreeningSourceExtractor DepressionScreeningSourceExtractor, IExtractValidator extractValidator, IDepressionScreeningLoader DepressionScreeningLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _DepressionScreeningSourceExtractor = DepressionScreeningSourceExtractor;
     _extractValidator          = extractValidator;
     _DepressionScreeningLoader = DepressionScreeningLoader;
     _clearDwhExtracts          = clearDwhExtracts;
     _extractHistoryRepository  = extractHistoryRepository;
 }
コード例 #17
0
 public ExtractEnhancedAdherenceCounsellingHandler(IEnhancedAdherenceCounsellingSourceExtractor EnhancedAdherenceCounsellingSourceExtractor, IExtractValidator extractValidator, IEnhancedAdherenceCounsellingLoader EnhancedAdherenceCounsellingLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _EnhancedAdherenceCounsellingSourceExtractor = EnhancedAdherenceCounsellingSourceExtractor;
     _extractValidator = extractValidator;
     _EnhancedAdherenceCounsellingLoader = EnhancedAdherenceCounsellingLoader;
     _clearDwhExtracts         = clearDwhExtracts;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #18
0
 public ExtractMetricMigrationHandler(IMetricMigrationSourceExtractor metricMigrationSourceExtractor, IMetricExtractValidator extractValidator, IMetricMigrationLoader migrationLoader, ITempMetricMigrationExtractRepository tempMetricMigrationExtractRepository, IExtractHistoryRepository extractHistoryRepository)
 {
     _metricMigrationSourceExtractor = metricMigrationSourceExtractor;
     _extractValidator = extractValidator;
     _migrationLoader  = migrationLoader;
     _tempMetricMigrationExtractRepository = tempMetricMigrationExtractRepository;
     _extractHistoryRepository             = extractHistoryRepository;
 }
コード例 #19
0
 public ExtractMtsHandler(IIndicatorSourceExtractor indicatorSourceExtractor, IMetricExtractValidator extractValidator, IMtsMigrationLoader migrationLoader, ITempIndicatorExtractRepository tempIndicatorExtractRepository, IExtractHistoryRepository extractHistoryRepository)
 {
     _indicatorSourceExtractor       = indicatorSourceExtractor;
     _extractValidator               = extractValidator;
     _migrationLoader                = migrationLoader;
     _tempIndicatorExtractRepository = tempIndicatorExtractRepository;
     _extractHistoryRepository       = extractHistoryRepository;
 }
コード例 #20
0
 public ExtractPatientMnchHandler(IPatientMnchSourceExtractor patientSourceExtractor, IMnchExtractValidator extractValidator, IPatientMnchLoader patientLoader, ITempPatientMnchExtractRepository tempPatientMnchExtractRepository, IExtractHistoryRepository extractHistoryRepository)
 {
     _patientSourceExtractor           = patientSourceExtractor;
     _extractValidator                 = extractValidator;
     _patientLoader                    = patientLoader;
     _tempPatientMnchExtractRepository = tempPatientMnchExtractRepository;
     _extractHistoryRepository         = extractHistoryRepository;
 }
コード例 #21
0
 public ExtractAllergiesChronicIllnessHandler(IAllergiesChronicIllnessSourceExtractor AllergiesChronicIllnessSourceExtractor, IExtractValidator extractValidator, IAllergiesChronicIllnessLoader AllergiesChronicIllnessLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _AllergiesChronicIllnessSourceExtractor = AllergiesChronicIllnessSourceExtractor;
     _extractValidator = extractValidator;
     _AllergiesChronicIllnessLoader = AllergiesChronicIllnessLoader;
     _clearDwhExtracts         = clearDwhExtracts;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #22
0
 public ExtractSenderController(IPsmartSendService psmartSendService,
                                IPsmartStageRepository psmartStageRepository, IExtractHistoryRepository extractHistoryRepository, IPsmartExtractService psmartExtractService)
 {
     _psmartSendService        = psmartSendService;
     _psmartStageRepository    = psmartStageRepository;
     _extractHistoryRepository = extractHistoryRepository;
     _psmartExtractService     = psmartExtractService;
 }
コード例 #23
0
 public ExtractIptHandler(IIptSourceExtractor IptSourceExtractor, IExtractValidator extractValidator, IIptLoader IptLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _IptSourceExtractor       = IptSourceExtractor;
     _extractValidator         = extractValidator;
     _IptLoader                = IptLoader;
     _clearDwhExtracts         = clearDwhExtracts;
     _extractHistoryRepository = extractHistoryRepository;
 }
コード例 #24
0
 public ExtractGbvScreeningHandler(IGbvScreeningSourceExtractor GbvScreeningSourceExtractor, IExtractValidator extractValidator, IGbvScreeningLoader GbvScreeningLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository)
 {
     _GbvScreeningSourceExtractor = GbvScreeningSourceExtractor;
     _extractValidator            = extractValidator;
     _GbvScreeningLoader          = GbvScreeningLoader;
     _clearDwhExtracts            = clearDwhExtracts;
     _extractHistoryRepository    = extractHistoryRepository;
 }
コード例 #25
0
 public ExtractPatientHandler(IPatientSourceExtractor patientSourceExtractor, IExtractValidator extractValidator, IPatientLoader patientLoader, IClearDwhExtracts clearDwhExtracts, ITempPatientExtractRepository tempPatientExtractRepository, IExtractHistoryRepository extractHistoryRepository)
 {
     _patientSourceExtractor       = patientSourceExtractor;
     _extractValidator             = extractValidator;
     _patientLoader                = patientLoader;
     _clearDwhExtracts             = clearDwhExtracts;
     _tempPatientExtractRepository = tempPatientExtractRepository;
     _extractHistoryRepository     = extractHistoryRepository;
 }
コード例 #26
0
 public ExtractPatientAdverseEventHandler(IPatientAdverseEventSourceExtractor patientAdverseEventSourceExtractor,
                                          IExtractValidator extractValidator, IPatientAdverseEventLoader patientAdverseEventLoader,
                                          IExtractHistoryRepository extractHistoryRepository)
 {
     _patientAdverseEventSourceExtractor = patientAdverseEventSourceExtractor;
     _extractValidator          = extractValidator;
     _patientAdverseEventLoader = patientAdverseEventLoader;
     _extractHistoryRepository  = extractHistoryRepository;
 }
コード例 #27
0
 public ExtractHtsClientTracingHandler(IHtsClientTracingSourceExtractor patientSourceExtractor, IHtsExtractValidator extractValidator, IHtsClientTracingLoader patientLoader, IClearHtsExtracts clearDwhExtracts, ITempHtsClientTracingExtractRepository tempPatientExtractRepository, IExtractHistoryRepository extractHistoryRepository)
 {
     _patientSourceExtractor       = patientSourceExtractor;
     _extractValidator             = extractValidator;
     _patientLoader                = patientLoader;
     _clearDwhExtracts             = clearDwhExtracts;
     _tempPatientExtractRepository = tempPatientExtractRepository;
     _extractHistoryRepository     = extractHistoryRepository;
 }
コード例 #28
0
 public ExtractHtsPartnerNotificationServicesHandler(IHtsPartnerNotificationServicesSourceExtractor patientSourceExtractor, IHtsExtractValidator extractValidator, IHtsPartnerNotificationServicesLoader patientLoader, IClearHtsExtracts clearDwhExtracts, ITempHtsPartnerNotificationServicesExtractRepository tempPatientExtractRepository, IExtractHistoryRepository extractHistoryRepository)
 {
     _patientSourceExtractor       = patientSourceExtractor;
     _extractValidator             = extractValidator;
     _patientLoader                = patientLoader;
     _clearDwhExtracts             = clearDwhExtracts;
     _tempPatientExtractRepository = tempPatientExtractRepository;
     _extractHistoryRepository     = extractHistoryRepository;
 }
コード例 #29
0
        public PsmartExtractService(IPsmartSourceReader psmartSourceReader, IPsmartStageRepository psmartStageRepository, IExtractHistoryRepository extractHistoryRepository)
        {
            _psmartSourceReader       = psmartSourceReader;
            _psmartStageRepository    = psmartStageRepository;
            _extractHistoryRepository = extractHistoryRepository;

            var config = new MapperConfiguration(cfg => {
                cfg.CreateMissingTypeMaps = false;
                cfg.AllowNullCollections  = true;
                cfg.CreateMap <PsmartSource, PsmartStage>();
            });

            _mapper = new Mapper(config);
        }
コード例 #30
0
        public void SetUp()
        {
            _context = new ExtractsContext(_options);
            _context.Database.EnsureDeleted();
            _context.Database.EnsureCreated();

            _dbExtractProtocolDtos = new List <DbExtractProtocolDTO>();
            _mssql    = new DbProtocol(DatabaseType.MicrosoftSQL, @".\koske14", "sa", "maun", "IQTools_KeHMIS");
            _extractA = new DbExtract {
                Id = _iqcareId, Emr = "IQCare", ExtractSql = @" select [Id],[shr],[date_created],[status],[status_date],[uuid] FROM [psmart_store]"
            };
            _mysql    = new DbProtocol(DatabaseType.MySQL, @"localhost", "root", "test", "openmrs");
            _extractB = new DbExtract {
                Id = _kenyaEmrId, Emr = "KenyaEMR", ExtractSql = @" select id,shr,date_created,status,status_date,uuid FROM psmart_store"
            };
            _dbExtractProtocolDtos.Add(new DbExtractProtocolDTO(_extractA, _mssql));
            _dbExtractProtocolDtos.Add(new DbExtractProtocolDTO(_extractB, _mysql));
            _extractHistoryRepository = new ExtractHistoryRepository(_context);
            _psmartExtractService     =
                new PsmartExtractService(new PsmartSourceReader(), new PsmartStageRepository(_context), _extractHistoryRepository);
        }