Beispiel #1
0
        public LabUI(YellowstonePathology.Business.User.SystemIdentity systemIdentity, System.Windows.Controls.TabItem writer)
        {
            this.m_SystemIdentity = systemIdentity;
            this.m_Writer = writer;

            this.m_SearchEngine = new Business.Test.SearchEngine();
            this.m_MedTechUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.MedTech, true);
            this.m_LogUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Log, true);

            this.m_PanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetMolecularLabPanelSets();

            this.m_DigeneImportFileList = new YellowstonePathology.Business.FileList();

            this.m_AcknowledgeOrders = new YellowstonePathology.Business.Domain.XElementFromSql();
            this.m_PanelOrderIds = string.Empty;
            this.m_HasDataError = false;

            this.m_PathologistSearch = new YellowstonePathology.Business.Search.PathologistSearch(this.m_Writer);

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);

            this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler();

            this.m_PanelSetCaseTypeCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPanelSetCaseTypeCollection();
        }
        //private bool m_Closing;
        public ProviderDistributionPage(string reportNo, 
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
            Visibility nextButtonVisibility,
            Visibility closeButtonVisibility,
            Visibility backButtonVisibility)
        {
            this.m_PageNavigator = pageNavigator;

            this.m_AccessionOrder = accessionOrder;
            this.m_PanelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);

            this.m_NextButtonVisibility = nextButtonVisibility;
            this.m_CloseButtonVisibility = closeButtonVisibility;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;

            this.m_ClientPhysicianNotSetAuditCollection = new Business.Audit.Model.AuditCollection();
            this.m_ClientPhysicianNotSetAuditCollection.Add(new YellowstonePathology.Business.Audit.Model.ClientNotSetAudit(this.m_AccessionOrder));
            this.m_ClientPhysicianNotSetAuditCollection.Add(new YellowstonePathology.Business.Audit.Model.PhysicianNotSetAudit(this.m_AccessionOrder));

            InitializeComponent();

            DataContext = this;

            this.Loaded += new RoutedEventHandler(ProviderDetailPage_Loaded);
            Close += ProviderDistributionPage_Close;
        }
        public PathologistSearch(object writer)
        {
            this.m_Writer = writer;

            this.m_FinalDates = new List<string>();
            this.m_FinalDates.Add("Not Final");
            this.m_FinalDates.Add("Final Today");
            this.m_FinalDates.Add("Final Yesterday");
            this.m_FinalDates.Add("Final Last 7 Days");
            this.m_FinalDates.Add("Final Last 30 Days");

            this.m_Pathologists = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers();
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.m_Pathologists, true);
            this.m_Pathologists[0].UserId = -1;
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddUnassignedToUserList(this.m_Pathologists, true);

            this.m_PanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll();

            this.m_PathologistCaseTypes = this.m_PanelSets.GetPathologistsCaseTypes();
            this.m_SelectedCaseType = "All Case Types";

            this.m_Results = new YellowstonePathology.Business.Search.PathologistSearchResultCollection();

            this.m_SelectedPanelSetId = 0;
            this.m_SelectedPathologistId = -1;
            if (YellowstonePathology.Business.User.SystemIdentity.Instance.User.IsUserInRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist))
            {
                this.m_SelectedPathologistId = YellowstonePathology.Business.User.SystemIdentity.Instance.User.UserId;
            }

            m_SearchValue = string.Empty;
        }
Beispiel #4
0
        public TypingUIV2(System.Windows.Controls.TabItem writer)
        {
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_ParagraphTemplateCollection = new ParagraphTemplateCollection();

            this.m_CaseListDate = DateTime.Today;

            Business.Specimen.Model.Specimen fluid = Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMFLUID");  // Definition.Fluid();
            Business.Specimen.Model.Specimen urine = Specimen.Model.SpecimenCollection.Instance.GetSpecimen("SPCMNURINE"); // Definition.Urine();
            this.m_FluidSpecimenList = new List <Specimen.Model.Specimen>();
            this.m_FluidSpecimenList.Add(fluid);
            this.m_FluidSpecimenList.Add(urine);

            this.m_TypingUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Typing, true);

            this.m_SurgicalOrderList = new YellowstonePathology.Business.Surgical.SurgicalOrderList();
            this.m_SurgicalOrderList.FillByAccessionDate(DateTime.Today);

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.PathologistUsers, true);

            this.m_BillingSpecimenViewCollection = new View.BillingSpecimenViewCollection();

            this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler();
            this.m_Writer       = writer;
        }
Beispiel #5
0
        public PathologistSearch(object writer)
        {
            this.m_Writer = writer;

            this.m_FinalDates = new List <string>();
            this.m_FinalDates.Add("Not Final");
            this.m_FinalDates.Add("Final Today");
            this.m_FinalDates.Add("Final Yesterday");
            this.m_FinalDates.Add("Final Last 7 Days");
            this.m_FinalDates.Add("Final Last 30 Days");

            this.m_Pathologists = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers();
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.m_Pathologists, true);
            this.m_Pathologists[0].UserId = -1;
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddUnassignedToUserList(this.m_Pathologists, true);

            this.m_PanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll();

            this.m_PathologistCaseTypes = this.m_PanelSets.GetPathologistsCaseTypes();
            this.m_SelectedCaseType     = "All Case Types";

            this.m_Results = new YellowstonePathology.Business.Search.PathologistSearchResultCollection();

            this.m_SelectedPanelSetId    = 0;
            this.m_SelectedPathologistId = -1;
            if (YellowstonePathology.Business.User.SystemIdentity.Instance.User.IsUserInRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist))
            {
                this.m_SelectedPathologistId = YellowstonePathology.Business.User.SystemIdentity.Instance.User.UserId;
            }

            m_SearchValue = string.Empty;
        }
        public ProviderDistributionPage(string reportNo,
                                        YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                        YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
                                        Visibility nextButtonVisibility,
                                        Visibility closeButtonVisibility,
                                        Visibility backButtonVisibility)
        {
            this.m_PageNavigator = pageNavigator;

            this.m_AccessionOrder = accessionOrder;
            this.m_PanelSetOrder  = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);

            this.m_NextButtonVisibility  = nextButtonVisibility;
            this.m_CloseButtonVisibility = closeButtonVisibility;
            this.m_BackButtonVisibility  = backButtonVisibility;

            this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;

            this.m_ClientPhysicianNotSetAuditCollection = new Business.Audit.Model.AuditCollection();
            this.m_ClientPhysicianNotSetAuditCollection.Add(new YellowstonePathology.Business.Audit.Model.ClientNotSetAudit(this.m_AccessionOrder));
            this.m_ClientPhysicianNotSetAuditCollection.Add(new YellowstonePathology.Business.Audit.Model.PhysicianNotSetAudit(this.m_AccessionOrder));

            InitializeComponent();
            this.ExpanderOptions.IsExpanded = true;

            DataContext = this;

            this.Loaded += new RoutedEventHandler(ProviderDetailPage_Loaded);
            Close       += ProviderDistributionPage_Close;
        }
Beispiel #7
0
        public LabUI(YellowstonePathology.Business.User.SystemIdentity systemIdentity, System.Windows.Controls.TabItem writer)
        {
            this.m_SystemIdentity = systemIdentity;
            this.m_Writer         = writer;

            this.m_SearchEngine = new Business.Test.SearchEngine();
            this.m_MedTechUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.MedTech, true);
            this.m_LogUsers     = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Log, true);

            this.m_PanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetMolecularLabPanelSets();

            this.m_DigeneImportFileList = new YellowstonePathology.Business.FileList();

            this.m_AcknowledgeOrders = new YellowstonePathology.Business.Domain.XElementFromSql();
            this.m_PanelOrderIds     = string.Empty;
            this.m_HasDataError      = false;

            this.m_PathologistSearch = new YellowstonePathology.Business.Search.PathologistSearch(this.m_Writer);

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);

            this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler();

            this.m_PanelSetCaseTypeCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPanelSetCaseTypeCollection();
        }
Beispiel #8
0
        public PathologistUI(System.Windows.Controls.TabItem writer)
        {
            this.m_Writer         = writer;
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_OrderCollection        = new YellowstonePathology.Business.Test.PanelOrderCollection();
            this.m_PathologistHistoryList = new YellowstonePathology.Business.Surgical.PathologistHistoryList();

            this.m_SelectedTabIndex = 0;

            this.m_PathologistSearch = new YellowstonePathology.Business.Search.PathologistSearch(this.m_Writer);
            this.m_PathologistUsers  = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers();

            this.m_FieldEnabler   = new YellowstonePathology.Business.Common.FieldEnabler();
            this.m_AmendmentUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.AmendmentSigner, true);

            this.m_PanelSetIdsThatCanOrderStains = new List <int>();
            YellowstonePathology.Business.Test.Surgical.SurgicalTest surgicalTest = new Business.Test.Surgical.SurgicalTest();
            this.m_PanelSetIdsThatCanOrderStains.Add(surgicalTest.PanelSetId);
            YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest technicalOnlyTest = new Business.Test.TechnicalOnly.TechnicalOnlyTest();
            this.m_PanelSetIdsThatCanOrderStains.Add(technicalOnlyTest.PanelSetId);
            YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest reviewForAdditionalTestingTest = new Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest();
            this.m_PanelSetIdsThatCanOrderStains.Add(reviewForAdditionalTestingTest.PanelSetId);

            this.m_Facility = Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId);
            this.m_Location = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.HostName;
        }
Beispiel #9
0
 public LoginUIV2(object writer)
 {
     this.m_Writer             = writer;
     this.m_LogUsers           = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Log, true);
     this.m_CaseTypeList       = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetCaseTypes();
     this.m_AccessionOrderDate = DateTime.Today;
     this.m_SystemIdentity     = Business.User.SystemIdentity.Instance;
 }
Beispiel #10
0
 public LoginUIV2(object writer)
 {
     this.m_Writer = writer;
     this.m_LogUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Log, true);
     this.m_CaseTypeList = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetCaseTypes();
     this.m_AccessionOrderDate = DateTime.Today;
     this.m_SystemIdentity = Business.User.SystemIdentity.Instance;
 }
Beispiel #11
0
        private void ButtonNewUser_Click(object sender, RoutedEventArgs e)
        {
            SystemUserDialog dlg = new UI.SystemUserDialog(null);

            dlg.ShowDialog();
            this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserGateway.GetSystemUserCollection();
            this.NotifyPropertyChanged("SystemUserCollection");
        }
        public SpecimenMappingPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_TimeToFixationTypeCollection = YellowstonePathology.Business.Specimen.Model.TimeToFixationType.GetTimeToFixationTypeCollection();

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            InitializeComponent();

            DataContext = this;
        }
Beispiel #13
0
        public static YellowstonePathology.Business.User.SystemUserCollection GetSystemUserCollection()
        {
            SqlCommand cmd = new SqlCommand();

            cmd.CommandText = "select su.UserId, su.Active, su.UserName, su.FirstName, su.LastName, su.Initials, su.Signature, su.DisplayName, su.EmailAddress, su.NationalProviderId, (select sr.* from tblSystemUserRole sr where sr.UserId = su.UserId " +
                              "for xml Path('SystemUserRole'), type) [SystemUserRoleCollection] from tblSystemUser su order by su.UserName for xml Path('SystemUser'), root('SystemUserCollection')";
            cmd.CommandType = System.Data.CommandType.Text;
            YellowstonePathology.Business.User.SystemUserCollection systemUserCollection = YellowstonePathology.Business.Domain.Persistence.SqlXmlPersistence.CrudOperations.ExecuteCollectionCommand <YellowstonePathology.Business.User.SystemUserCollection>(cmd, YellowstonePathology.Business.Domain.Persistence.DataLocationEnum.ProductionData);
            return(systemUserCollection);
        }
Beispiel #14
0
        public TaskUI(object writer)
        {
            this.m_Writer = writer;
            this.m_LogUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Log, true);
            this.m_TaskAcknowledgementTypeList = YellowstonePathology.Business.Task.Model.TaskAcknowledgementType.GetAll();

            this.GetTaskOrderCollection();
            this.GetDailyTaskOrderCollection();

            YellowstonePathology.UI.TaskNotifier.Instance.Notifier.Alert += new TaskNotifier.AlertEventHandler(Notifier_Alert);
        }
Beispiel #15
0
 private void ListBoxSystemUsers_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (this.ListBoxSystemUsers.SelectedItem != null)
     {
         YellowstonePathology.Business.User.SystemUser user = (YellowstonePathology.Business.User.SystemUser) this.ListBoxSystemUsers.SelectedItem;
         SystemUserDialog dlg = new UI.SystemUserDialog(user);
         dlg.ShowDialog();
         this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserGateway.GetSystemUserCollection();
         this.NotifyPropertyChanged("SystemUserCollection");
     }
 }
        public SpecimenMappingPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;

            this.m_TimeToFixationTypeCollection = YellowstonePathology.Business.Specimen.Model.TimeToFixationType.GetTimeToFixationTypeCollection();

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            InitializeComponent();

            DataContext = this;
        }
Beispiel #17
0
        public TaskUI(object writer)
        {
            this.m_Writer   = writer;
            this.m_LogUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Log, true);
            this.m_TaskAcknowledgementTypeList = YellowstonePathology.Business.Task.Model.TaskAcknowledgementType.GetAll();

            this.GetTaskOrderViewList();
            this.GetDailyTaskOrderCollection();

            YellowstonePathology.UI.TaskNotifier.Instance.Notifier.Alert += new TaskNotifier.AlertEventHandler(Notifier_Alert);
        }
Beispiel #18
0
        public ClientSupplyOrderDialog(string clientSupplyOrderId)
        {
            this.m_ClientSupplyOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientSupplyOrder(clientSupplyOrderId, this);
            this.m_UserCollection    = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(Business.User.SystemUserRoleDescriptionEnum.Log, true);

            InitializeComponent();

            this.DataContext = this;
            Closing         += ClientSupplyOrderDialog_Closing;
            Loaded          += ClientSupplyOrderDialog_Loaded;
            Unloaded        += ClientSupplyOrderDialog_Unloaded;
        }
        public ClientSupplyOrderDialog(string clientSupplyOrderId)
        {
            this.m_ClientSupplyOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientSupplyOrder(clientSupplyOrderId, this);
            this.m_UserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(Business.User.SystemUserRoleDescriptionEnum.Log, true);

            InitializeComponent();

            this.DataContext = this;
            Closing += ClientSupplyOrderDialog_Closing;
            Loaded += ClientSupplyOrderDialog_Loaded;
            Unloaded += ClientSupplyOrderDialog_Unloaded;
        }
Beispiel #20
0
        public AssignmentPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_IsLoaded           = false;
            this.m_AccessionOrder     = accessionOrder;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);

            InitializeComponent();

            DataContext  = this;
            this.Loaded += new RoutedEventHandler(AssignmentPage_Loaded);
            Unloaded    += AssignmentPage_Unloaded;
        }
Beispiel #21
0
        public DictationTemplatePage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;

            this.m_SurgicalTestOrder = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical();
            this.m_PathologistUsers  = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_UserPreference    = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference;

            InitializeComponent();
            this.Loaded += DictationTemplatePage_Loaded;

            DataContext = this;
        }
        public AmendmentV2(YellowstonePathology.Business.Amendment.Model.Amendment amendment, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_Amendment = amendment;
            this.m_AccessionOrder = accessionOrder;

            this.m_Users = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.AmendmentSigner, true);
            InitializeComponent();

            this.DataContext = this.m_Amendment;
            this.comboBoxAmendmentUsers.ItemsSource = this.m_Users;

            Loaded += AmendmentV2_Loaded;
            Unloaded += AmendmentV2_Unloaded;
        }
Beispiel #23
0
        public AmendmentV2(YellowstonePathology.Business.Amendment.Model.Amendment amendment, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_Amendment      = amendment;
            this.m_AccessionOrder = accessionOrder;

            this.m_Users = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.AmendmentSigner, true);
            InitializeComponent();

            this.DataContext = this.m_Amendment;
            this.comboBoxAmendmentUsers.ItemsSource = this.m_Users;

            Loaded   += AmendmentV2_Loaded;
            Unloaded += AmendmentV2_Unloaded;
        }
        public AssignmentPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_IsLoaded = false;
            this.m_AccessionOrder = accessionOrder;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);

            InitializeComponent();

            DataContext = this;
            this.Loaded += new RoutedEventHandler(AssignmentPage_Loaded);
            Unloaded += AssignmentPage_Unloaded;
        }
        public DictationTemplatePage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;

            this.m_SurgicalTestOrder = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical();
            this.m_DictationTemplateCollection = YellowstonePathology.UI.Gross.DictationTemplateCollection.GetAll();
            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference;

            InitializeComponent();
            this.Loaded += DictationTemplatePage_Loaded;

            DataContext = this;
        }
Beispiel #26
0
        public CytologyScreeningSearch()
        {
            this.m_Screeners = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.CytologyScreener, true);
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.m_Screeners, true);
            this.m_AccessionDate = new Search.AccessionDateField(DateTime.Today.AddDays(-1));
            this.NotifyPropertyChanged("AccessionDate");

            this.m_Results        = new List <YellowstonePathology.Business.Search.CytologyScreeningSearchResult>();
            this.m_AccessionDates = new Search.DateList();

            this.m_SearchTypes = new List <string>();
            this.m_SearchTypes.Add("Final");
            this.m_SearchTypes.Add("Pending");
            this.m_SearchTypes.Add("Not Final");
        }
        public ReportOrderDetailPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_PanelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
            this.m_SystemIdentity = systemIdentity;
            this.m_UserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            this.m_ReportDocumentPath = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNamePDF(orderIdParser);

            InitializeComponent();

            DataContext = this;
            this.Closing += new System.ComponentModel.CancelEventHandler(ReportOrderDetailPage_Closing);
        }
        public ReportOrderDetailPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder     = accessionOrder;
            this.m_PanelSetOrder      = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
            this.m_SystemIdentity     = systemIdentity;
            this.m_UserCollection     = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            this.m_ReportDocumentPath = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNamePDF(orderIdParser);

            InitializeComponent();

            DataContext   = this;
            this.Closing += new System.ComponentModel.CancelEventHandler(ReportOrderDetailPage_Closing);
        }
        public PeerReviewResultPage(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_PeerReviewTypeCollection = new YellowstonePathology.Business.Test.PeerReview.PeerReviewTypeCollection();

            this.m_PanelSetOrder = panelSetOrder;
            this.m_AccessionOrder = accessionOrder;

            this.m_PageHeaderText = "Peer Review for: " + this.m_AccessionOrder.PatientDisplayName;
            this.m_PeerReviewTestOrderCollection = this.m_AccessionOrder.PanelSetOrderCollection.GetPeerReviewCollection();
            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);

            InitializeComponent();

            DataContext = this;
        }
Beispiel #30
0
        public ProspectiveReviewResultPage(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder,
                                           YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_ProspectiveReviewTypeCollection = new YellowstonePathology.Business.Test.ProspectiveReview.ProspectiveReviewTypeCollection();

            this.m_PanelSetOrder  = panelSetOrder;
            this.m_AccessionOrder = accessionOrder;

            this.m_PageHeaderText = "Peer Review for: " + this.m_AccessionOrder.PatientDisplayName;
            this.m_ProspectiveReviewTestOrderCollection = this.m_AccessionOrder.PanelSetOrderCollection.GetProspectiveReviewCollection();
            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);

            InitializeComponent();

            DataContext = this;
        }
Beispiel #31
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            string result = string.Empty;

            if (value != null)
            {
                int systemUserId = (int)value;
                if (systemUserId != 0)
                {
                    YellowstonePathology.Business.User.SystemUserCollection systemUserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
                    YellowstonePathology.Business.User.SystemUser           user = systemUserCollection.GetSystemUserById(systemUserId);
                    result = user.DisplayName;
                }
            }
            return(result);
        }
Beispiel #32
0
        public PathologistUI(System.Windows.Controls.TabItem writer)
        {
            this.m_Writer = writer;
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_OrderCollection = new YellowstonePathology.Business.Test.PanelOrderCollection();
            this.m_PathologistHistoryList = new YellowstonePathology.Business.Surgical.PathologistHistoryList();

            this.m_SelectedTabIndex = 0;

            this.m_PathologistSearch = new YellowstonePathology.Business.Search.PathologistSearch(this.m_Writer);
            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers();

            this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler();
            this.m_AmendmentUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.AmendmentSigner, true);
        }
        public CytologyScreeningSearch()
        {
            this.m_Screeners = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.CytologyScreener, true);
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.m_Screeners, true);
            this.m_AccessionDate = new Search.AccessionDateField(DateTime.Today.AddDays(-1));
            this.NotifyPropertyChanged("AccessionDate");

            this.m_Results = new List<YellowstonePathology.Business.Search.CytologyScreeningSearchResult>();
            this.m_AccessionDates = new Search.DateList();

            this.m_SearchTypes = new List<string>();
            this.m_SearchTypes.Add("Final");
            this.m_SearchTypes.Add("Pending");
            this.m_SearchTypes.Add("Not Final");
            this.m_SearchTypes.Add("At Loggerheads");
        }
Beispiel #34
0
        public PathologistUI(System.Windows.Controls.TabItem writer)
        {
            this.m_Writer         = writer;
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_OrderCollection        = new YellowstonePathology.Business.Test.PanelOrderCollection();
            this.m_PathologistHistoryList = new YellowstonePathology.Business.Surgical.PathologistHistoryList();

            this.m_SelectedTabIndex = 0;

            this.m_PathologistSearch = new YellowstonePathology.Business.Search.PathologistSearch(this.m_Writer);
            this.m_PathologistUsers  = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers();

            this.m_FieldEnabler   = new YellowstonePathology.Business.Common.FieldEnabler();
            this.m_AmendmentUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.AmendmentSigner, true);
        }
        public TypingShorcutDialog(string objectId, bool isNewShortcut)
        {
            this.m_IsNewItem = isNewShortcut;
            if (isNewShortcut == false)
            {
                this.m_TypingShortcut = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullTypingShortcut(objectId, this);
            }

            InitializeComponent();

            this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Typing, true);

            this.DataContext = this.m_TypingShortcut;
            this.comboBoxTypingUsers.ItemsSource = this.m_SystemUserCollection;

            this.Closing += TypingShorcutDialog_Closing;
        }
Beispiel #36
0
        public FlowUI(object writer)
        {
            this.m_Writer = writer;
            this.m_FlowLogSearch = new FlowLogSearch();

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;
            if (this.m_SystemIdentity.User.IsUserInRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist))
            {
                this.m_FlowLogSearch.SetByLeukemiaNotFinal();
            }
            else
            {
                this.m_FlowLogSearch.SetByAccessionMonth(DateTime.Now);
            }

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_MedTechUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.MedTech, true);

            this.m_FlowPanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetFlowPanelSets(false);

            this.m_FlowComment = new FlowComment();
            this.m_FlowComment.FlowCommentCollection.SetFillCommandAll();
            this.m_FlowComment.FlowCommentCollection.Fill();

            this.m_Marker = new Marker();
            this.m_Marker.MarkerCollection.SetFillCommandAll();
            this.m_Marker.MarkerCollection.Fill();

            this.m_FlowCaseValidation = new FlowCaseValidation();

            this.m_ICDCodeList = new YellowstonePathology.Business.Billing.ICDCodeList();
            this.m_ICDCodeList.SetFillCommandByFlowCodes();
            this.m_ICDCodeList.Fill();

            this.m_FlowPanelList = new FlowPanelList();
            this.m_FlowPanelList.SetFillCommandByAll();
            this.m_FlowPanelList.Fill();

            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_CaseDocumentCollection = new Document.CaseDocumentCollection();
            this.m_PatientHistoryList = new YellowstonePathology.Business.Patient.Model.PatientHistoryList();
            this.m_PanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll();

            this.Search();
        }
Beispiel #37
0
        public FlowUI(object writer)
        {
            this.m_Writer        = writer;
            this.m_FlowLogSearch = new FlowLogSearch();

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;
            if (this.m_SystemIdentity.User.IsUserInRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist))
            {
                this.m_FlowLogSearch.SetByLeukemiaNotFinal();
            }
            else
            {
                this.m_FlowLogSearch.SetByAccessionMonth(DateTime.Now);
            }

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_MedTechUsers     = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.MedTech, true);

            this.m_FlowPanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetFlowPanelSets(false);

            this.m_FlowComment = new FlowComment();
            this.m_FlowComment.FlowCommentCollection.SetFillCommandAll();
            this.m_FlowComment.FlowCommentCollection.Fill();

            this.m_Marker = new Marker();
            this.m_Marker.MarkerCollection.SetFillCommandAll();
            this.m_Marker.MarkerCollection.Fill();

            this.m_FlowCaseValidation = new FlowCaseValidation();

            this.m_ICDCodeList = new YellowstonePathology.Business.Billing.ICDCodeList();
            this.m_ICDCodeList.SetFillCommandByFlowCodes();
            this.m_ICDCodeList.Fill();

            this.m_FlowPanelList = new FlowPanelList();
            this.m_FlowPanelList.SetFillCommandByAll();
            this.m_FlowPanelList.Fill();

            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_CaseDocumentCollection = new Document.CaseDocumentCollection();
            this.m_PatientHistoryList     = new YellowstonePathology.Business.Patient.Model.PatientHistoryList();
            this.m_PanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll();

            this.Search();
        }
Beispiel #38
0
        public static YellowstonePathology.Business.User.SystemUserCollection GetSystemUserCollection()
        {
            Type            t  = typeof(YellowstonePathology.Business.User.SystemUserCollection);
            ConstructorInfo ci = t.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic, null, new Type[0], null);

            YellowstonePathology.Business.User.SystemUserCollection systemUserCollection = (YellowstonePathology.Business.User.SystemUserCollection)ci.Invoke(null);

            MySqlCommand cmd = new MySqlCommand();

            cmd.CommandText = "select UserId, Active, UserName, FirstName, LastName, MiddleInitial, Initials, Signature, DisplayName, " +
                              "EmailAddress, NationalProviderId from tblSystemUser order by UserName; " +
                              "select * from tblSystemUserRole;";
            cmd.CommandType = System.Data.CommandType.Text;
            using (MySqlConnection cn = new MySqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (MySqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        YellowstonePathology.Business.User.SystemUser systemUser = new SystemUser();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(systemUser, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        systemUserCollection.Add(systemUser);
                    }
                    dr.NextResult();
                    while (dr.Read())
                    {
                        YellowstonePathology.Business.User.SystemUserRole systemUserRole = new SystemUserRole();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(systemUserRole, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        foreach (SystemUser systemUser in systemUserCollection)
                        {
                            if (systemUser.UserId == systemUserRole.UserID)
                            {
                                systemUser.SystemUserRoleCollection.Add(systemUserRole);
                                break;
                            }
                        }
                    }
                }
            }
            return(systemUserCollection);
        }
        public TypingShorcutDialog(YellowstonePathology.Business.Typing.TypingShortcut typingShortcut, bool isNewShortcut)
        {
            this.m_TypingShortcut = typingShortcut;
            this.m_IsNewItem      = isNewShortcut;

            InitializeComponent();

            this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Typing, true);

            this.DataContext = this.m_TypingShortcut;
            this.comboBoxTypingUsers.ItemsSource = this.m_SystemUserCollection;

            if (isNewShortcut == false)
            {
                YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullTypingShortcut(typingShortcut, this);
            }

            this.Closing += TypingShorcutDialog_Closing;
        }
Beispiel #40
0
        public FrozenFinalDialog(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                 YellowstonePathology.Business.Test.Surgical.IntraoperativeConsultationResult intraoperativeConsultation,
                                 YellowstonePathology.UI.TypingShortcutUserControl typingShortcutUserControl)
        {
            this.m_PathologistUsers           = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_AccessionOrder             = accessionOrder;
            this.m_IntraoperativeConsultation = intraoperativeConsultation;
            this.m_TypingShortcutUserControl  = typingShortcutUserControl;

            YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder panelSetOrderSurgical = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder)accessionOrder.PanelSetOrderCollection.GetSurgical();
            YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen  surgicalSpecimen      = (from ssr in panelSetOrderSurgical.SurgicalSpecimenCollection
                                                                                                   where ssr.SurgicalSpecimenId == intraoperativeConsultation.SurgicalSpecimenId
                                                                                                   select ssr).Single <YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen>();
            this.m_SpecimenOrder = surgicalSpecimen.SpecimenOrder;
            InitializeComponent();

            this.DataContext = this;
            Closing         += new System.ComponentModel.CancelEventHandler(FrozenFinalDialog_Closing);
        }
        public FrozenFinalDialog(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.Business.Test.Surgical.IntraoperativeConsultationResult intraoperativeConsultation,
            YellowstonePathology.UI.TypingShortcutUserControl typingShortcutUserControl)
        {
            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_AccessionOrder = accessionOrder;
            this.m_IntraoperativeConsultation = intraoperativeConsultation;
            this.m_TypingShortcutUserControl = typingShortcutUserControl;

            YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder panelSetOrderSurgical = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder)accessionOrder.PanelSetOrderCollection.GetSurgical();
            YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen = (from ssr in panelSetOrderSurgical.SurgicalSpecimenCollection
                                                                                                            where ssr.SurgicalSpecimenId == intraoperativeConsultation.SurgicalSpecimenId
                                                                                           select ssr).Single<YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen>();
            this.m_SpecimenOrder = surgicalSpecimen.SpecimenOrder;
            InitializeComponent();

            this.DataContext = this;
            Closing += new System.ComponentModel.CancelEventHandler(FrozenFinalDialog_Closing);
        }
        public SystemUserDialog(YellowstonePathology.Business.User.SystemUser systemUser)
        {
            this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
            if (systemUser == null)
            {
                YellowstonePathology.Business.User.SystemUser user = this.m_SystemUserCollection.OrderByDescending(item => item.UserId).First();
                this.m_SystemUser        = new Business.User.SystemUser();
                this.m_SystemUser.UserId = user.UserId + 1;
            }
            else
            {
                this.m_SystemUser = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullSystemUser(systemUser.UserId, this);
            }

            this.m_SystemRoleViewCollection = new Business.User.SystemRoleViewCollection(this.m_SystemUser);

            InitializeComponent();
            this.DataContext = this;
            this.Closed     += SystemUserDialog_Closed;
        }
Beispiel #43
0
        public TypingUIV2(System.Windows.Controls.TabItem writer)
        {
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_ParagraphTemplateCollection = new ParagraphTemplateCollection();

            this.m_CaseListDate = DateTime.Today;

            this.m_TypingUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Typing, true);

            this.m_SurgicalOrderList = new YellowstonePathology.Business.Surgical.SurgicalOrderList();
            this.m_SurgicalOrderList.FillByAccessionDate(DateTime.Today);

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.PathologistUsers, true);

            this.m_BillingSpecimenViewCollection = new View.BillingSpecimenViewCollection();

            this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler();
            this.m_Writer       = writer;
        }
Beispiel #44
0
        public TypingUIV2(System.Windows.Controls.TabItem writer)
        {
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_ParagraphTemplateCollection = new ParagraphTemplateCollection();

            this.m_CaseListDate = DateTime.Today;

            this.m_TypingUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Typing, true);

            this.m_SurgicalOrderList = new YellowstonePathology.Business.Surgical.SurgicalOrderList();
            this.m_SurgicalOrderList.FillByAccessionDate(DateTime.Today);

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.PathologistUsers, true);

            this.m_BillingSpecimenViewCollection = new View.BillingSpecimenViewCollection();

            this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler();
            this.m_Writer = writer;
        }
        public ReportOrderDetailPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder     = accessionOrder;
            this.m_PanelSetOrder      = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
            this.m_SystemIdentity     = systemIdentity;
            this.m_UserCollection     = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.Instance;

            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            this.m_ReportDocumentPath = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNamePDF(orderIdParser);

            this.m_ResultDocumentSources = new List <string>();
            this.m_ResultDocumentSources.Add(YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.YPIDatabase.ToString());
            this.m_ResultDocumentSources.Add(YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.PublishedDocument.ToString());
            this.m_ResultDocumentSources.Add(YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.RetiredTestDocument.ToString());
            this.m_ResultDocumentSources.Add(YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.None.ToString());

            InitializeComponent();

            DataContext   = this;
            this.Closing += new System.ComponentModel.CancelEventHandler(ReportOrderDetailPage_Closing);
        }
Beispiel #46
0
        public StainStatusDialog(int pathologistId)
        {
            this.m_PathologistId = pathologistId;
            this.m_Pathologists  = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers();
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddUnassignedToUserList(this.m_Pathologists, true);
            YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.AddAllToUserList(this.m_Pathologists, true);
            this.m_Pathologists[0].UserId = -1;
            this.m_OrderDate  = DateTime.Today;
            this.m_Status     = "ALL";
            this.m_StatusList = new List <string>();
            this.m_StatusList.Add("ALL");
            this.m_StatusList.Add("ORDERED");
            this.m_StatusList.Add("CUTTING");
            this.m_StatusList.Add("STAINING");
            this.m_StatusList.Add("STAINED");
            this.m_StatusList.Add("PERFORMEDBYHAND");

            InitializeComponent();

            DataContext = this;

            this.Loaded += StainStatusDialog_Loaded;
        }
Beispiel #47
0
        public PathologistUI(System.Windows.Controls.TabItem writer)
        {
            this.m_Writer = writer;
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_OrderCollection = new YellowstonePathology.Business.Test.PanelOrderCollection();
            this.m_PathologistHistoryList = new YellowstonePathology.Business.Surgical.PathologistHistoryList();

            this.m_SelectedTabIndex = 0;

            this.m_PathologistSearch = new YellowstonePathology.Business.Search.PathologistSearch(this.m_Writer);
            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetPathologistUsers();

            this.m_FieldEnabler = new YellowstonePathology.Business.Common.FieldEnabler();
            this.m_AmendmentUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.AmendmentSigner, true);

            this.m_PanelSetIdsThatCanOrderStains = new List<int>();
            YellowstonePathology.Business.Test.Surgical.SurgicalTest surgicalTest = new Business.Test.Surgical.SurgicalTest();
            this.m_PanelSetIdsThatCanOrderStains.Add(surgicalTest.PanelSetId);
            YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest technicalOnlyTest = new Business.Test.TechnicalOnly.TechnicalOnlyTest();
            this.m_PanelSetIdsThatCanOrderStains.Add(technicalOnlyTest.PanelSetId);
            YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest reviewForAdditionalTestingTest = new Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTest();
            this.m_PanelSetIdsThatCanOrderStains.Add(reviewForAdditionalTestingTest.PanelSetId);
        }
 public PathologistSelectionDialog(YellowstonePathology.Business.User.SystemUserCollection pathologistUsers)
 {
     this.m_PathologistUsers = pathologistUsers;
     InitializeComponent();
     this.DataContext = this;
 }
 public PathologistSelectionDialog(YellowstonePathology.Business.User.SystemUserCollection pathologistUsers)
 {
     this.m_PathologistUsers = pathologistUsers;
     InitializeComponent();
     this.DataContext = this;
 }
Beispiel #50
0
 public SystemUserListDialog()
 {
     this.m_SystemUserCollection = YellowstonePathology.Business.User.SystemUserGateway.GetSystemUserCollection();
     InitializeComponent();
     DataContext = this;
 }