Exemple #1
0
        public MyBioCheckAssessmentJsonHelper(ISettings settings, IEventCustomerRepository eventCustomerRepository,
                                              ICustomerRepository customerRepository, IHealthAssessmentRepository healthAssessmentRepository,
                                              IKynLabValuesRepository kynLabValuesRepository, IBasicBiometricRepository basicBiometricRepository, ITraleApiService trailApiService,
                                              IMediaRepository mediaRepository, IMediaHelper mediaHelper, IXmlSerializer <BioCheckAssessmentFailedList> bioCheckAssessmentFailedListXmlSerializer,
                                              ICustomerTraleRepository customerTraleRepository, IEventCustomerResultTraleRepository eventCustomerResultTraleRepository,
                                              ICorporateAccountRepository corporateAccountRepository, IOrganizationRepository organizationRepository)
        {
            _eventCustomerRepository = eventCustomerRepository;
            _customerRepository      = customerRepository;

            _healthAssessmentRepository = healthAssessmentRepository;
            _kynLabValuesRepository     = kynLabValuesRepository;
            _basicBiometricRepository   = basicBiometricRepository;
            _trailApiService            = trailApiService;
            _mediaRepository            = mediaRepository;
            _mediaHelper = mediaHelper;
            _bioCheckAssessmentTestResultRepository = new MyBioAssessmentTestRepository();
            _profileId         = settings.ProfileId;
            _testResultService = new Service.TestResultService();
            _bioCheckAssessmentFailedListXmlSerializer = bioCheckAssessmentFailedListXmlSerializer;
            _customerTraleRepository            = customerTraleRepository;
            _eventCustomerResultTraleRepository = eventCustomerResultTraleRepository;
            _corporateAccountRepository         = corporateAccountRepository;
            _organizationRepository             = organizationRepository;
            _bioCheckAssessmentFailedListPath   = settings.BioCheckAssessmentFailedListPath;
            _settings = settings;
        }
Exemple #2
0
 public AbiResultPdfHelper(IResultPdfHelper resultPdfHelper, IStandardFindingRepository standardFindingRepository, IIncidentalFindingRepository incidentalFindingRepository)
 {
     _resultPdfHelper             = resultPdfHelper;
     _standardFindingRepository   = standardFindingRepository;
     _incidentalFindingRepository = incidentalFindingRepository;
     _testResultService           = new Service.TestResultService();
 }
Exemple #3
0
        public KynResultParser(long eventId, string corpCode, long archiveId, string kynDirectoryPath, ISettings settings, ILogger logger, ICustomerRepository customerRepository,
                               IRepository <BasicBiometric> basicBiometricRepository, IEventCustomerRepository eventCustomerRepository, long uploadedBy,
                               ILipidParserHelper lipidParserHelper, ICustomerService customerService)
        {
            _kynDirectoryPath = kynDirectoryPath;
            _eventId          = eventId;
            _archiveId        = archiveId;
            _corpCode         = corpCode;

            _testResultService = new Service.TestResultService();
            _mediaRepository   = new MediaRepository(settings);

            var location = _mediaRepository.GetKynIntegrationOutputDataLocation(eventId);

            _kynIntegrationOutputDataPath = location.PhysicalPath;

            location        = _mediaRepository.GetScannedDocumentStorageFileLocation(eventId);
            _eventFilesPath = location.PhysicalPath;

            _resultParserHelper = new ResultParserHelper();

            _customerRepository = customerRepository;
            _logger             = logger;
            _kynAppLipidParser  = new KynAppLipidParser(_logger, BiomarkerTagName, NameAttrString, ValueAttrString, lipidParserHelper);

            _eventCustomerScreeningAggregates = new List <EventCustomerScreeningAggregate>();

            _basicBiometricRepository = basicBiometricRepository;
            _eventCustomerRepository  = eventCustomerRepository;
            _uploadedBy = uploadedBy;

            _customerService = customerService;
        }
 public BioSoundAaaParser2(string pathToReportXmlFile, string mediaLocation, ILogger logger)
 {
     _pathToReportXmlFile = pathToReportXmlFile;
     _mediaLocation       = mediaLocation;
     _testResultService   = new Service.TestResultService();
     _logger      = logger;
     _mediaHelper = new MediaHelper(logger);
 }
 public BioSoundAaaParser(string pathToReportXmlFile, string mediaLocation, ILogger logger)
 {
     _pathToReportXmlFile = pathToReportXmlFile;
     _mediaLocation       = mediaLocation;
     _testResultService   = new Service.TestResultService();
     _aaaReadings         = new TestResultRepository().GetAllReadings((int)TestType.AAA);
     _logger      = logger;
     _mediaHelper = new MediaHelper(logger);
 }
Exemple #6
0
 public GeAaaResultParser(IEnumerable <string> pathToMediaFolder, string mediaLocation, ILogger logger)
 {
     _errorSummary      = string.Empty;
     _logger            = logger;
     _testResultService = new Service.TestResultService();
     _pathToMediaFolder = pathToMediaFolder;
     _mediaLocation     = mediaLocation;
     _movieMaker        = new MovieMaker(Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName, _logger);
 }
Exemple #7
0
 public BioSound2ResultParser(string resultOutputPath, long eventId, ILogger logger)
 {
     _resultOutputPath   = resultOutputPath;
     _eventId            = eventId;
     _mediaRepository    = new MediaRepository(new Settings());
     _logger             = logger;
     _testResultService  = new Service.TestResultService();
     _resultParserHelper = new ResultParserHelper();
 }
 public MicroalbuminParserPollingAgent(ISettings settings, ILogManager logManager, ICustomerRepository customerRepository, IEventCustomerRepository eventCustomerRepository)
 {
     _settings = settings;
     _microalbuminTestResultPath         = _settings.MicroalbuminTestResultPath;
     _microalbuminArchivedTestResultPath = _settings.MicroalbuminArchivedTestResultPath;
     _customerRepository      = customerRepository;
     _eventCustomerRepository = eventCustomerRepository;
     _logger            = logManager.GetLogger("MicroalbuminTestResult");
     _testResultService = new Service.TestResultService();
 }
 public AwvAAAResultPdfHelper(ISettings settings, IResultPdfHelper resultPdfHelper, IStandardFindingRepository standardFindingRepository,
                              IEventCustomerResultRepository eventCustomerResultRepository, IIncidentalFindingRepository incidentalFindingRepository)
 {
     _settings                      = settings;
     _resultPdfHelper               = resultPdfHelper;
     _standardFindingRepository     = standardFindingRepository;
     _eventCustomerResultRepository = eventCustomerResultRepository;
     _incidentalFindingRepository   = incidentalFindingRepository;
     _testResultService             = new Service.TestResultService();
 }
Exemple #10
0
 public QuantaFloABIParser(string resultOutputPath, long eventId, ILogger logger, IMediaRepository mediaRepository)
 {
     _resultOutputPath   = resultOutputPath;
     _eventId            = eventId;
     _logger             = logger;
     _mediaRepository    = mediaRepository;
     _testResultService  = new Service.TestResultService();
     _resultParserHelper = new ResultParserHelper();
     _mediaHelper        = new MediaHelper(logger);
 }
 public BioSoundAwvAaaParser(string pathToReportXmlFile, string mediaLocation, ILogger logger, long eventId, long customerId)
 {
     _pathToReportXmlFile = pathToReportXmlFile;
     _mediaLocation       = mediaLocation;
     _testResultService   = new Service.TestResultService();
     _awvAaaReadings      = new TestResultRepository().GetAllReadings((int)TestType.AwvAAA);
     _logger      = logger;
     _mediaHelper = new MediaHelper(logger);
     _eventId     = eventId;
     _customerId  = customerId;
 }
Exemple #12
0
 public BloodTestParser(string bloodTestFile, ILogger logger, IExcelReader excelReader, ICsvReader csvReader, bool readDataFromNewLab)
 {
     _logger            = logger;
     _excelReader       = excelReader;
     _csvReader         = csvReader;
     _bloodTestFile     = bloodTestFile;
     _testResultService = new Service.TestResultService();
     _eventCustomerScreeningAggregates = new List <EventCustomerScreeningAggregate>();
     _resultParserHelper = new ResultParserHelper();
     ReadDataFromNewLab  = readDataFromNewLab;
 }
Exemple #13
0
 public AwvParser(string resultOutputPreventionPlanPath, string resultOutputSanpShotPath, long eventId, ILogger logger)
 {
     _resultOutputPreventionPlanPath = resultOutputPreventionPlanPath;
     _resultOutputSanpShotPath       = resultOutputSanpShotPath;
     _eventId            = eventId;
     _logger             = logger;
     _mediaRepository    = new MediaRepository(new Settings());
     _testResultService  = new Service.TestResultService();
     _resultParserHelper = new ResultParserHelper();
     _mediaHelper        = new MediaHelper(_logger);
 }
Exemple #14
0
 public DiabeticRetinopathyParserPollingAgent(ISettings settings, ILogManager logManager, IEventCustomerRepository eventCustomerRepository, IDiabeticRetinopathyParserlogRepository diabeticRetinopathyParserlogRepository, IEventRepository eventRepository)
 {
     _settings = settings;
     _diabeticRetinopathyFolderLocation        = _settings.DiabeticRetinopathyFolderLocation;
     _diabeticRetinopathyArchiveFolderLocation = _settings.DiabeticRetinopathyArchiveFolderLocation;
     _diabeticRetinopathyParserlogRepository   = diabeticRetinopathyParserlogRepository;
     _eventRepository         = eventRepository;
     _logger                  = logManager.GetLogger("DiabeticRetinopathyTestResult");
     _testResultService       = new Service.TestResultService();
     _eventCustomerRepository = eventCustomerRepository;
 }
        public UltrasoundTransducerResultParser(string ultrasoundFolderPath, long eventId, ILogger logger, ISettings settings)
        {
            _ultrasoundFolderPath = ultrasoundFolderPath;
            _eventId = eventId;
            _logger  = logger;

            _resultParserHelper = new ResultParserHelper();
            _testResultService  = new Service.TestResultService();
            _mediaRepository    = new MediaRepository(settings);
            _mediaHelper        = new MediaHelper(logger);
            _eventCustomerScreeningAggregates = new List <EventCustomerScreeningAggregate>();
        }
Exemple #16
0
        public CardiovisionResultParser(string resultOutputPath, long eventId, ILogger logger, bool isNewResultFlow)
        {
            _resultOutputPath = resultOutputPath;
            _eventId          = eventId;
            _logger           = logger;

            _asiParser         = new CardiovisionAsiParser(logger);
            _padParser         = new CardiovisionPadParser(logger);
            _awvAbiParser      = new CardiovisionAwvAbiParser(logger);
            _testResultService = new Service.TestResultService();
            _isNewResultFlow   = isNewResultFlow;
        }
Exemple #17
0
 public GeResultParser(long eventId, string geDirectoryPath, ILogger logger, IExcelReader excelReader)
 {
     _eventId                 = eventId;
     _logger                  = logger;
     _excelReader             = excelReader;
     _geDirectoryPath         = geDirectoryPath;
     _resultArchiveLogs       = null;
     _mediaRepository         = new MediaRepository(new Settings());
     _dicomExtractor          = new DicomExtractor(logger);
     _testResultService       = new Service.TestResultService();
     _eventCustomerRepository = new EventCustomerRepository();
 }
Exemple #18
0
 public EawvHraParser(ISettings settings, ILogger logger, ICorporateAccountRepository corporateAccountRepository, IXmlSerializer <HraResultTags> eawvHraSerializer, IMediaHelper mediaHelper, IEventCustomerRepository eventCustomerRepository)
 {
     _mediaRepository            = new MediaRepository(settings);
     _corporateAccountRepository = corporateAccountRepository;
     _eawvHraSerializer          = eawvHraSerializer;
     _mediaHelper             = mediaHelper;
     _eventCustomerRepository = eventCustomerRepository;
     _logger             = logger;
     _testResultService  = new Service.TestResultService();
     _resultParserHelper = new ResultParserHelper();
     _eventRepository    = new EventRepository();
     _accountHraChatQuestionnaireHistoryServices = new AccountHraChatQuestionnaireHistoryServices();
 }
Exemple #19
0
 public LabReportParserPollingAgent(ISettings settings, ILogManager logManager, IEventCustomerRepository eventCustomerRepository, IEventRepository eventRepository)
 {
     _settings   = settings;
     _logManager = logManager;
     _labReportTestResultPath         = _settings.LabReportTestResultPath;
     _labReportArchivedTestResultPath = _settings.LabReportArchivedTestResultPath;
     _eventCustomerRepository         = eventCustomerRepository;
     _eventRepository = eventRepository;
     // _logger = logManager.GetLogger("LabReportParseResult");
     _loggerForClient   = logManager.GetLogger("LabReportClientLogger");
     _testResultService = new Service.TestResultService();
     _isDevEnvironment  = settings.IsDevEnvironment;
 }
 public BloodPressureSynchronizer(ILogger logger, long customerId, long eventId, long updateBy, bool isNewResultFlow)
 {
     _errorSummary             = "";
     _logger                   = logger;
     _customerId               = customerId;
     _eventId                  = eventId;
     _updatedBy                = updateBy;
     _asiTestRepository        = new ASITestRepository(ReadingSource.Manual);
     _basicBiometricRepository = new BasicBiometricRepository();
     _eventCustomerRepository  = new EventCustomerRepository();
     _testResultService        = new Service.TestResultService();
     _isNewResultFlow          = isNewResultFlow;
 }
        public BloodTestResultParserPollingAgent(ISettings settings, ILogManager logManager, IEventCustomerResultBloodLabRepository eventCustomerResultBloodLabRepository,
                                                 IEventRepository eventRepository)
        {
            _settings        = settings;
            _bloodTestFolder = _settings.BloodTestFolderLocation;
            _bloodTestArchiveFolderLocation = _settings.BloodTestArchiveFolderLocation;
            _logManager = logManager;

            _logger            = logManager.GetLogger("BloodTestResult");
            _testResultService = new Service.TestResultService();
            _eventCustomerResultBloodLabRepository = eventCustomerResultBloodLabRepository;
            _eventRepository = eventRepository;
        }
Exemple #22
0
        public EkgFileParser2(string resultOutputPath, long eventId, ILogger logger, ISettings settings, bool isNewResultFlow)
        {
            _resultOutputPath     = resultOutputPath;
            _eventId              = eventId;
            _logger               = logger;
            _mediaRepository      = new MediaRepository(new Settings());
            _testResultService    = new Service.TestResultService();
            _resultParserHelper   = new ResultParserHelper();
            _mediaHelper          = new MediaHelper(_logger);
            _settings             = settings;
            _testResultRepository = new EKGTestRepository();

            _isNewResultFlow = isNewResultFlow;
        }
 public BloodResultParsePollingAgent(ISettings settings, ILogManager logManager, IMediaRepository mediaRepository, ICsvReader csvReader, IEventRepository eventRepository,
                                     IEventCustomerResultBloodLabRepository eventCustomerResultBloodLabRepository, Service.TestResultService testResultService, IEventCustomerResultBloodLabParserRepository eventCustomerResultBloodLabParserRepository)
 {
     _settings        = settings;
     _mediaRepository = mediaRepository;
     _csvReader       = csvReader;
     _eventRepository = eventRepository;
     _eventCustomerResultBloodLabRepository = eventCustomerResultBloodLabRepository;
     _testResultService                           = testResultService;
     _logger                                      = logManager.GetLogger("NewBloodResultParser");
     _logManager                                  = logManager;
     _bloodResultFolderLocation                   = settings.BloodResultFolderLocation;
     _bloodResultArchiveFolderLocation            = settings.BloodResultArchiveFolderLocation;
     _eventCustomerResultBloodLabParserRepository = eventCustomerResultBloodLabParserRepository;
 }
        public MicroalbuminParser(string microalbuminResultOutputPath, string microalbuminResultArchivedPath,
                                  ILogger logger, ISettings settings, ICustomerRepository customerRepository, IEventCustomerRepository eventCustomerRepository)
        {
            _microalbuminResultOutputPath   = microalbuminResultOutputPath;
            _microalbuminResultArchivedPath = microalbuminResultArchivedPath;
            _logger = logger;

            _mediaRepository    = new MediaRepository(settings);
            _resultParserHelper = new ResultParserHelper();
            _mediaHelper        = new MediaHelper(_logger);
            _customerRepository = customerRepository;

            _eventCustomerRepository = eventCustomerRepository;
            _testResultService       = new Service.TestResultService();
        }
        public BloodworksResultParser2(long eventId, string bloodworkDirectoryPath, ILogger logger, IRepository <BasicBiometric> basicBiometricRepository, IEventCustomerRepository eventCustomerRepository, long uploadedBy, ILipidParserHelper lipidParserHelper)
        {
            _bloodworkDirectoryPath = bloodworkDirectoryPath;
            _eventId = eventId;
            _logger  = logger;

            _testResultService       = new Service.TestResultService();
            _resultParserHelper      = new ResultParserHelper();
            _bloodworkAppLipidParser = new BloodworkAppLipidParser(_logger, lipidParserHelper);

            _eventCustomerScreeningAggregates = new List <EventCustomerScreeningAggregate>();

            _basicBiometricRepository = basicBiometricRepository;
            _eventCustomerRepository  = eventCustomerRepository;
            _uploadedBy = uploadedBy;
        }
        private CompoundResultReading <int?> CalculateLdlReading(decimal?hdl, decimal?tchol, decimal?triglycerides, TestType testType)
        {
            if (!hdl.HasValue || hdl.Value <= 0 || !tchol.HasValue || tchol.Value <= 0 || !triglycerides.HasValue || triglycerides.Value <= 0)
            {
                return(null);
            }
            var testResultService = new Service.TestResultService();
            var ldl = tchol.Value - hdl.Value - (triglycerides.Value / 5);

            return(new CompoundResultReading <int?>
            {
                Reading = Convert.ToInt32(ldl),
                Label = ReadingLabels.LDL,
                ReadingSource = ReadingSource.Manual,
                Finding = new StandardFinding <int?>(testResultService.GetCalculatedStandardFinding(Convert.ToInt32(ldl), (int)testType, (int)ReadingLabels.LDL))
            });
        }
Exemple #27
0
        public EawvHraParserPollingAgent(ISettings settings, ILogManager logManager, IMediaRepository mediaRepository,
                                         ICorporateAccountRepository corporateAccountRepository, IXmlSerializer <HraResultTags> eawvHraSerializer,
                                         IMediaHelper mediaHelper, IEventCustomerRepository eventCustomerRepository, IEventRepository eventRepository, ITestResultService testResultServiceForResultState)
        {
            _settings                        = settings;
            _mediaRepository                 = mediaRepository;
            _corporateAccountRepository      = corporateAccountRepository;
            _eawvHraSerializer               = eawvHraSerializer;
            _mediaHelper                     = mediaHelper;
            _eventCustomerRepository         = eventCustomerRepository;
            _eventRepository                 = eventRepository;
            _testResultServiceForResultState = testResultServiceForResultState;

            _testResultService = new Service.TestResultService();

            _isDevEnvironment = settings.IsDevEnvironment;
            _logger           = logManager.GetLogger("EawhraParser");
        }
Exemple #28
0
        public LabReportParser(string labReportOutputPath, string labReportArchivedPath,
                               ILogger loggerForClient, ISettings settings, IEventCustomerRepository eventCustomerRepository, ILogManager logManager)
        {
            _labReportOutputPath   = labReportOutputPath;
            _labReportArchivedPath = labReportArchivedPath;
            _loggerForClient       = loggerForClient;
            // _logger = logger;
            _mediaRepository         = new MediaRepository(settings);
            _resultParserHelper      = new ResultParserHelper();
            _mediaHelper             = new MediaHelper(_loggerForClient);
            _eventCustomerRepository = eventCustomerRepository;
            _testResultService       = new Service.TestResultService();

            _logManager = logManager;

            _pipeDelimitedReportHelper = new PipeDelimitedReportHelper();
            _standardFindingRepository = new StandardFindingRepository();
        }
Exemple #29
0
        public BloodworksResultParser(string resultOutputPath, long eventId, ILogger logger, long updateBy, bool isNewResultFlow)
        {
            _resultOutputPath  = resultOutputPath;
            _logger            = logger;
            _eventId           = eventId;
            _lipidParser       = new BloodworksLipidParser(logger);
            _hba1CParser       = new BloodworksHemaglobinParser(logger);
            _testResultService = new Service.TestResultService();
            _updatedBy         = updateBy;

            _ekgTestResultRepository    = new EKGTestRepository();
            _echoTestResultRepository   = new EchocardiogramTestRepository();
            _strokeTestResultRepository = new StrokeTestRepository();
            _padTestResultRepository    = new PadTestRepository();
            _aaaTestResultRepository    = new AAATestRepository();
            _asiTestResultRepository    = new ASITestRepository();
            _unableToScreenRepository   = new UnableToScreenStatusRepository();

            _isNewResultFlow = isNewResultFlow;
        }
        private CompoundResultReading <decimal?> CalculateTchdlRatio(decimal?totalCholesterol, decimal?hdl, TestType testType)
        {
            if (hdl == null || totalCholesterol == null)
            {
                return(null);
            }
            var testResultService = new Service.TestResultService();

            var s = totalCholesterol.Value / hdl.Value;

            s = decimal.Round(s, 2);

            return(new CompoundResultReading <decimal?>
            {
                Reading = s,
                Label = ReadingLabels.TCHDLRatio,
                ReadingSource = ReadingSource.Manual,
                Finding = new StandardFinding <decimal?>(testResultService.GetCalculatedStandardFinding(s, (int)testType, (int)ReadingLabels.TCHDLRatio))
            });
        }