public ExtractHeiHandler(IHeiSourceExtractor heiSourceExtractor, IMnchExtractValidator extractValidator, IHeiLoader heiLoader, IExtractHistoryRepository extractHistoryRepository) { _heiSourceExtractor = heiSourceExtractor; _extractValidator = extractValidator; _heiLoader = heiLoader; _extractHistoryRepository = extractHistoryRepository; }
public async void Handle(HtsExtractActivityNotification domainEvent) { _extractHistoryRepository = Startup.ServiceProvider.GetService <IExtractHistoryRepository>(); SaveExtractHistory(domainEvent); await Startup.HtsHubContext.Clients.All.SendAsync("ShowHtsProgress", domainEvent); }
public ExtractAncVisitHandler(IAncVisitSourceExtractor ancVisitSourceExtractor, IMnchExtractValidator extractValidator, IAncVisitLoader ancVisitLoader, IExtractHistoryRepository extractHistoryRepository) { _ancVisitSourceExtractor = ancVisitSourceExtractor; _extractValidator = extractValidator; _ancVisitLoader = ancVisitLoader; _extractHistoryRepository = extractHistoryRepository; }
public ExtractCwcVisitHandler(ICwcVisitSourceExtractor cwcVisitSourceExtractor, IMnchExtractValidator extractValidator, ICwcVisitLoader cwcVisitLoader, IExtractHistoryRepository extractHistoryRepository) { _cwcVisitSourceExtractor = cwcVisitSourceExtractor; _extractValidator = extractValidator; _cwcVisitLoader = cwcVisitLoader; _extractHistoryRepository = extractHistoryRepository; }
public ExtractMnchArtHandler(IMnchArtSourceExtractor mnchArtSourceExtractor, IMnchExtractValidator extractValidator, IMnchArtLoader mnchArtLoader, IExtractHistoryRepository extractHistoryRepository) { _mnchArtSourceExtractor = mnchArtSourceExtractor; _extractValidator = extractValidator; _mnchArtLoader = mnchArtLoader; _extractHistoryRepository = extractHistoryRepository; }
public ExtractPncVisitHandler(IPncVisitSourceExtractor pncVisitSourceExtractor, IMnchExtractValidator extractValidator, IPncVisitLoader pncVisitLoader, IExtractHistoryRepository extractHistoryRepository) { _pncVisitSourceExtractor = pncVisitSourceExtractor; _extractValidator = extractValidator; _pncVisitLoader = pncVisitLoader; _extractHistoryRepository = extractHistoryRepository; }
public ExtractMotherBabyPairHandler(IMotherBabyPairSourceExtractor motherBabyPairSourceExtractor, IMnchExtractValidator extractValidator, IMotherBabyPairLoader motherBabyPairLoader, IExtractHistoryRepository extractHistoryRepository) { _motherBabyPairSourceExtractor = motherBabyPairSourceExtractor; _extractValidator = extractValidator; _motherBabyPairLoader = motherBabyPairLoader; _extractHistoryRepository = extractHistoryRepository; }
public ExtractHTSClientLinkageHandler(IHTSClientLinkageSourceExtractor patientAdverseEventSourceExtractor, IHtsExtractValidator extractValidator, IHTSClientLinkageLoader patientAdverseEventLoader, IExtractHistoryRepository extractHistoryRepository) { _patientAdverseEventSourceExtractor = patientAdverseEventSourceExtractor; _extractValidator = extractValidator; _patientAdverseEventLoader = patientAdverseEventLoader; _extractHistoryRepository = extractHistoryRepository; }
public ExtractMatVisitHandler(IMatVisitSourceExtractor matVisitSourceExtractor, IMnchExtractValidator extractValidator, IMatVisitLoader matVisitLoader, IExtractHistoryRepository extractHistoryRepository) { _matVisitSourceExtractor = matVisitSourceExtractor; _extractValidator = extractValidator; _matVisitLoader = matVisitLoader; _extractHistoryRepository = extractHistoryRepository; }
public ExtractHTSClientPartnerHandler(IHTSClientPartnerSourceExtractor patientLaboratorySourceExtractor, IHtsExtractValidator extractValidator, IHTSClientPartnerLoader patientLaboratoryLoader, IExtractHistoryRepository extractHistoryRepository) { _patientLaboratorySourceExtractor = patientLaboratorySourceExtractor; _extractValidator = extractValidator; _patientLaboratoryLoader = patientLaboratoryLoader; _extractHistoryRepository = extractHistoryRepository; }
public ExtractDrugAlcoholScreeningHandler(IDrugAlcoholScreeningSourceExtractor DrugAlcoholScreeningSourceExtractor, IExtractValidator extractValidator, IDrugAlcoholScreeningLoader DrugAlcoholScreeningLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _DrugAlcoholScreeningSourceExtractor = DrugAlcoholScreeningSourceExtractor; _extractValidator = extractValidator; _DrugAlcoholScreeningLoader = DrugAlcoholScreeningLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
public ExtractCovidHandler(ICovidSourceExtractor CovidSourceExtractor, IExtractValidator extractValidator, ICovidLoader CovidLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _CovidSourceExtractor = CovidSourceExtractor; _extractValidator = extractValidator; _CovidLoader = CovidLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
public ExtractPatientBaselinesHandler(IPatientBaselinesSourceExtractor patientBaselinesSourceExtractor, IExtractValidator extractValidator, IPatientBaselinesLoader patientBaselinesLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _patientBaselinesSourceExtractor = patientBaselinesSourceExtractor; _extractValidator = extractValidator; _patientBaselinesLoader = patientBaselinesLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
public ExtractOtzHandler(IOtzSourceExtractor OtzSourceExtractor, IExtractValidator extractValidator, IOtzLoader OtzLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _OtzSourceExtractor = OtzSourceExtractor; _extractValidator = extractValidator; _OtzLoader = OtzLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
public ExtractHTSClientHandler(IHTSClientSourceExtractor patientSourceExtractor, IHtsExtractValidator extractValidator, IHTSClientLoader patientLoader, ITempHTSClientExtractRepository tempPatientExtractRepository, IExtractHistoryRepository extractHistoryRepository) { _patientSourceExtractor = patientSourceExtractor; _extractValidator = extractValidator; _patientLoader = patientLoader; _tempPatientExtractRepository = tempPatientExtractRepository; _extractHistoryRepository = extractHistoryRepository; }
public ExtractDepressionScreeningHandler(IDepressionScreeningSourceExtractor DepressionScreeningSourceExtractor, IExtractValidator extractValidator, IDepressionScreeningLoader DepressionScreeningLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _DepressionScreeningSourceExtractor = DepressionScreeningSourceExtractor; _extractValidator = extractValidator; _DepressionScreeningLoader = DepressionScreeningLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
public ExtractEnhancedAdherenceCounsellingHandler(IEnhancedAdherenceCounsellingSourceExtractor EnhancedAdherenceCounsellingSourceExtractor, IExtractValidator extractValidator, IEnhancedAdherenceCounsellingLoader EnhancedAdherenceCounsellingLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _EnhancedAdherenceCounsellingSourceExtractor = EnhancedAdherenceCounsellingSourceExtractor; _extractValidator = extractValidator; _EnhancedAdherenceCounsellingLoader = EnhancedAdherenceCounsellingLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
public ExtractMetricMigrationHandler(IMetricMigrationSourceExtractor metricMigrationSourceExtractor, IMetricExtractValidator extractValidator, IMetricMigrationLoader migrationLoader, ITempMetricMigrationExtractRepository tempMetricMigrationExtractRepository, IExtractHistoryRepository extractHistoryRepository) { _metricMigrationSourceExtractor = metricMigrationSourceExtractor; _extractValidator = extractValidator; _migrationLoader = migrationLoader; _tempMetricMigrationExtractRepository = tempMetricMigrationExtractRepository; _extractHistoryRepository = extractHistoryRepository; }
public ExtractMtsHandler(IIndicatorSourceExtractor indicatorSourceExtractor, IMetricExtractValidator extractValidator, IMtsMigrationLoader migrationLoader, ITempIndicatorExtractRepository tempIndicatorExtractRepository, IExtractHistoryRepository extractHistoryRepository) { _indicatorSourceExtractor = indicatorSourceExtractor; _extractValidator = extractValidator; _migrationLoader = migrationLoader; _tempIndicatorExtractRepository = tempIndicatorExtractRepository; _extractHistoryRepository = extractHistoryRepository; }
public ExtractPatientMnchHandler(IPatientMnchSourceExtractor patientSourceExtractor, IMnchExtractValidator extractValidator, IPatientMnchLoader patientLoader, ITempPatientMnchExtractRepository tempPatientMnchExtractRepository, IExtractHistoryRepository extractHistoryRepository) { _patientSourceExtractor = patientSourceExtractor; _extractValidator = extractValidator; _patientLoader = patientLoader; _tempPatientMnchExtractRepository = tempPatientMnchExtractRepository; _extractHistoryRepository = extractHistoryRepository; }
public ExtractAllergiesChronicIllnessHandler(IAllergiesChronicIllnessSourceExtractor AllergiesChronicIllnessSourceExtractor, IExtractValidator extractValidator, IAllergiesChronicIllnessLoader AllergiesChronicIllnessLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _AllergiesChronicIllnessSourceExtractor = AllergiesChronicIllnessSourceExtractor; _extractValidator = extractValidator; _AllergiesChronicIllnessLoader = AllergiesChronicIllnessLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
public ExtractSenderController(IPsmartSendService psmartSendService, IPsmartStageRepository psmartStageRepository, IExtractHistoryRepository extractHistoryRepository, IPsmartExtractService psmartExtractService) { _psmartSendService = psmartSendService; _psmartStageRepository = psmartStageRepository; _extractHistoryRepository = extractHistoryRepository; _psmartExtractService = psmartExtractService; }
public ExtractIptHandler(IIptSourceExtractor IptSourceExtractor, IExtractValidator extractValidator, IIptLoader IptLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _IptSourceExtractor = IptSourceExtractor; _extractValidator = extractValidator; _IptLoader = IptLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
public ExtractGbvScreeningHandler(IGbvScreeningSourceExtractor GbvScreeningSourceExtractor, IExtractValidator extractValidator, IGbvScreeningLoader GbvScreeningLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) { _GbvScreeningSourceExtractor = GbvScreeningSourceExtractor; _extractValidator = extractValidator; _GbvScreeningLoader = GbvScreeningLoader; _clearDwhExtracts = clearDwhExtracts; _extractHistoryRepository = extractHistoryRepository; }
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; }
public ExtractPatientAdverseEventHandler(IPatientAdverseEventSourceExtractor patientAdverseEventSourceExtractor, IExtractValidator extractValidator, IPatientAdverseEventLoader patientAdverseEventLoader, IExtractHistoryRepository extractHistoryRepository) { _patientAdverseEventSourceExtractor = patientAdverseEventSourceExtractor; _extractValidator = extractValidator; _patientAdverseEventLoader = patientAdverseEventLoader; _extractHistoryRepository = extractHistoryRepository; }
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; }
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; }
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); }
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); }