public frmChangeDatabase(IMainForm parent, ISystemDataProvider systemDataProvider)
 {
     InitializeComponent();
     this.parent = parent;
     gvDatabases.TableElement.AlternatingRowColor = System.Drawing.Color.BlanchedAlmond;
     SystemDataProvider = systemDataProvider;
     LoadDatabases();
 }
 // public constructors...
 /// <summary>
 /// Initializes a new instance of the ProcessCommunityUpdate class.
 /// </summary>
 public ProcessCommunityUpdate(ISystemDataProvider irmDbDataProvider)
     : base(irmDbDataProvider)
 {
     ExpectedType = ProcessFileType.CommunityDataFile;
     UpdateProductionData = true;
     // TODO: Check this value
     CommunityDataProvider = new CommunityUpdateDataProvider(SystemDataProvider.ClientDataProvider.ConnectionString);
 }
Пример #3
0
 public frmAddToDB(ISystemDataProvider irmDbDataProvider, IClientDataProvider encounterDataProvider)
 {
     InitializeComponent();
     DataProvider = encounterDataProvider;
     IrmDbDataProvider = irmDbDataProvider;
     gvClientOrgs.TableElement.AlternatingRowColor = System.Drawing.Color.BlanchedAlmond;
     LoadDropDowns();
 }
Пример #4
0
        public frmMain()
        {
            InitializeComponent();
            SystemDataProvider = new SystemDataProvider(ConfigurationManager.ConnectionStrings["IrmDBContext"].ConnectionString);
            SettingsHelper.LoadSettings(SystemDataProvider.ConnectionString);
            GlobalContext.Properties["JobID"] = 0;// will be replaced when a job is running
            SetupLogger();
            SetGridProperties();

            LoadDatabases();
        }
Пример #5
0
        public static ImportBase GetProcessor(ProcessFileType fileType, int healthSystemID, ISystemDataProvider irmDbDataProvider)
        {
            ImportBase result = null;

            switch (fileType)
            {
                case ProcessFileType.CommunityDataFile:
                    
                    break;
                case ProcessFileType.DiagnosisFile:
                    result = new ProcessDiagnosisFile(irmDbDataProvider);
                    break;
                case ProcessFileType.EncounterFile:
                    result = new ProcessEncounterFile(irmDbDataProvider);
                    break;
                case ProcessFileType.HealthSystemHierarchy:
                    
                    break;
                case ProcessFileType.PayerTypeMappingFile:
                    
                    break;
                case ProcessFileType.PhysicianFile:
                    
                    break;
                case ProcessFileType.ProcedureFile:
                    result = new ProcessProcedureFile(irmDbDataProvider);
                    break;
                case ProcessFileType.ServiceLineMappingFile:
                    
                    break;
                case ProcessFileType.SpecialInterestList:
                    
                    break;
                case ProcessFileType.StarkDefinedServiceAreaFile:
                    
                    break;
                case ProcessFileType.StateDischargeData:
                    
                    break;
                case ProcessFileType.Unknown:
                    
                    break;
                case ProcessFileType.ZipcodeFile:
                    
                    break;
                case ProcessFileType.NationalMarketDataFile:
                    result = new ProcessNationalMarketUpdate(irmDbDataProvider);
                    break;
                default:
                    break;                

            }
            return result;
        }
        public ProcessUploadedFile(ISystemDataProvider irmDbDataProvider)
        {
            try
            {
                if (irmDbDataProvider == null)
                {
                    throw new ArgumentNullException("IRM DB Data Provider cannot be null!");
                }

                SystemDataProvider = irmDbDataProvider;
            }
            catch (Exception ex)
            {
                log.Error("Error creating HealthSystem object", ex);
            }

            log.InfoFormat("Checking Path {0} for new files.", SystemDataProvider.CurrentSettings.FileProcessingPath);
        }
 public ProcessNationalMarketUpdate(ISystemDataProvider irmDbDataProvider) : base(irmDbDataProvider)
 { 
     UpdateProductionData = true;
     ProgressIndicator = 100000;
     ExpectedType = ProcessFileType.NationalMarketDataFile;
 }
 public IRMReportDataProvider(ISystemDataProvider  dataProvider)
 {
     _healthcareSystemId = dataProvider.CurrentHealthSystemID.Value;
     sqlHelper = new SqlHelper(dataProvider);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EncounterImport"/> class.
 /// </summary>
 /// <param name="timerInterval"></param>
 public ServiceImport(ISystemDataProvider irmDbDataProvider, int timerInterval)
     : base(irmDbDataProvider, timerInterval)
 {
 }
        //private List<Physician> physicians = new List<Physician>();

        public ProcessPhysicianFile(ISystemDataProvider irmDbDataProvider)
            : base(irmDbDataProvider)
        {
           // keep
        }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the ImportRunner class.
 /// </summary>
 public ImportRunner(ImportOptions options, ISystemDataProvider irmDbDataProvider)
 {
     this.options = options;
     SystemDataProvider = irmDbDataProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientBaseService"/> class.
 /// </summary>
 /// <param name="healthSystemID"></param>
 public DatabaseServiceBase(ISystemDataProvider irmDbDataProvider, int timerInterval) :base(timerInterval)
 {
     SystemDataProvider = irmDbDataProvider;
 }
Пример #13
0
 public UserViewModel(ISystemDataProvider dataProvider)
 {
     this.DataProvider = dataProvider;
 }
 public GeographicViewModel(ISystemDataProvider systemDataProvider)
 {            
     Regions = new List<GeographicModel>();
     ServicCenters = new List<IRM.Web.Models.ClientOrganization>();
     SystemDataProvider = systemDataProvider;
 }
Пример #15
0
 // public constructors...
 public ImportBase(ISystemDataProvider irmDbDataProvider)
 {
     HealthSystemID = irmDbDataProvider.CurrentHealthSystemID.Value;
     SystemDataProvider = irmDbDataProvider;
 }
 // public constructors...
 /// <summary>
 /// Initializes a new instance of the ProcessEncounterFile class.
 /// </summary>
 public ProcessEncounterFile(ISystemDataProvider irmDbDataProvider)
     : base(irmDbDataProvider)
 {
     UpdateProductionData = true;
     ExpectedType = ProcessFileType.EncounterFile;
 }
 /// <summary>
 /// Initializes a new instance of the ProcessDiagnosisFile class.
 /// </summary>
 public ProcessDiagnosisFile(ISystemDataProvider irmDbDataProvider) : base(irmDbDataProvider)
 {
     UpdateProductionData = true;
     ExpectedType = ProcessFileType.DiagnosisFile;
 }
Пример #18
0
 public SqlHelper(ISystemDataProvider systemDataProvider)
 {
     SystemDataProvider = systemDataProvider;
 }
Пример #19
0
 /// <summary>
 /// Initializes a new instance of the InitialValidation class.
 /// </summary>
 public InitialValidation(ISystemDataProvider irmDbDataProvider)
 {
     SystemDataProvider = irmDbDataProvider;
 }
Пример #20
0
        public ReportsViewModel(IReportDataProvider dataProvider, ISystemDataProvider systemDataProvider)
        {            
            _reportDataProvider = dataProvider;
            SystemDataProvider = systemDataProvider;
            DiagnosisCodeIDlist = new List<DiagnosisCodeGroup>();
            EncounterTypesIDlist = new List<FilterLookupType>();
            ClientOrganizationIDList = new List<ClientOrganization>();
            GenderIDlist = new List<FilterLookupType>();
            AgeRangeIDlist = new List<FilterLookupType>();
            HomeOwnerTypeIDlist = new List<FilterLookupType>();
            HasChildrenIDlist = new List<FilterLookupType>();
            
            IncomeRangeIDlist = new List<FilterLookupType>();
            PayerTypeIDlist = new List<FilterLookupType>();
            Filters = new FiltersViewModel();
            ServiceLineExplorerResults = new List<ServiceLineExplorerResults>();
            ServiceLineExplorerResultsByFacility = new List<ServiceLineExplorerResults>();
                        
            PatientDataByGender = new List<PatientReportDataModel>();
            PatientDataByAge = new List<PatientReportDataModel>();
            PatientDataByIncome = new List<PatientReportDataModel>();
            PatientDataByHomeOwner = new List<PatientReportDataModel>();
            PatientDataByHasChildren = new List<PatientReportDataModel>();
            PatientDataByPayerType = new List<PatientReportDataModel>();

            CommunityDataByGender = new List<CommunityReportDataModel>();
            CommunityDataByAge = new List<CommunityReportDataModel>();
            CommunityDataByIncome = new List<CommunityReportDataModel>();
            CommunityDataByHomeOwner = new List<CommunityReportDataModel>();
            CommunityDataByHasChildren = new List<CommunityReportDataModel>();
            CommunitytDataByPayerType = new List<CommunityReportDataModel>();
            GeographicViewmodel = new GeographicViewModel(SystemDataProvider);

            StartDate = new DateTime(2010, 1, 01, 12, 00, 00);  
            EndDate = DateTime.Now;
            ExplorerType = ExplorerTypeEnum.Unknown;

        }