public void Execute(string containerId, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection)
 {
     this.m_ContainerId           = containerId;
     this.m_ClientOrder           = clientOrder;
     this.m_ClientOrderCollection = clientOrderCollection;
     this.m_Rule.Execute();
 }
        public void LetsUseANewClientOrder()
        {
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            this.m_ClientOrder = new Business.ClientOrder.Model.SurgicalClientOrder(objectId);
            this.m_ClientOrder.SetDefaults(this.m_Client.ClientId, this.m_Client.ClientName);
            this.m_ClientOrder.ClientLocation = this.m_Client.ClientLocationCollection.CurrentLocation;
            this.m_ClientOrder.OrderedById    = this.m_SystemIdentity.User.UserId.ToString();
            this.m_ClientOrder.OrderedBy      = this.m_SystemIdentity.User.UserName;
            this.m_ClientOrder.CollectionDate = DateTime.Today;

            YellowstonePathology.Business.ClientOrder.Model.UniversalServiceDefinitions.UniversalServiceYPI universalServiceYPI = new Business.ClientOrder.Model.UniversalServiceDefinitions.UniversalServiceYPI();
            this.m_ClientOrder.UniversalServiceId = universalServiceYPI.UniversalServiceId;

            switch (this.m_ExpectedOrderType)
            {
            default:
                this.m_ClientOrder.PanelSetId = 13;
                break;
            }

            this.m_ClientOrder.OrderType       = "Routine Surgical Pathology";
            this.m_AClientOrderHasBeenAcquired = true;

            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(this.m_ClientOrder, this.m_Writer);
        }
        public ReviewClientOrderPage(YellowstonePathology.Business.Rules.Surgical.PatientRecentAccessions patientRecentAccessions,
			YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
			UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_PatientRecentAccessions = patientRecentAccessions;
            this.m_ClientOrder = clientOrder;
            this.m_PageNavigator = pageNavigator;

            InitializeComponent();

            this.DataContext = this;

            if (this.m_ClientOrder.Accessioned == true)
            {
                this.m_CloseButtonVisibility = System.Windows.Visibility.Collapsed;
                this.m_NextButtonVisibility = System.Windows.Visibility.Visible;
            }
            else
            {
                this.m_CloseButtonVisibility = System.Windows.Visibility.Visible;
                this.m_NextButtonVisibility = System.Windows.Visibility.Collapsed;
            }

            this.Loaded += new RoutedEventHandler(ReviewClientOrderPage_Loaded);
        }
Exemple #4
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrder GetClientOrderByExternalOrderId(string externalOrderId)
        {
            SqlCommand cmd = new SqlCommand();

            cmd.CommandText = "gwGetClientOrderByExternalOrderId";

            SqlParameter externalOrderIdParameter = new SqlParameter("@ExternalOrderId", SqlDbType.VarChar, 100);

            externalOrderIdParameter.Value = externalOrderId;
            cmd.Parameters.Add(externalOrderIdParameter);
            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = null;

            using (SqlConnection cn = new SqlConnection(ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    clientOrder = BuildClientOrder(dr);
                    dr.NextResult();
                    BuildClientOrderDetailCollection(clientOrder.ClientOrderDetailCollection, dr);
                }
            }

            if (clientOrder.ClientOrderId == null)
            {
                return(null);
            }

            return(clientOrder);
        }
Exemple #5
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrder BuildClientOrder(MySqlDataReader dr)
        {
            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = null;
            Nullable <int> panelSetId = null;

            while (dr.Read())
            {
                if (dr["PanelSetId"] != DBNull.Value)
                {
                    panelSetId = Convert.ToInt32(dr["PanelSetId"].ToString());
                }
            }

            clientOrder = YellowstonePathology.Business.ClientOrder.Model.ClientOrderFactory.GetClientOrder(panelSetId);
            dr.NextResult();

            while (dr.Read())
            {
                YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new Persistence.SqlDataReaderPropertyWriter(clientOrder, dr);
                propertyWriter.WriteProperties();
            }

            dr.NextResult();
            while (dr.Read())
            {
                YellowstonePathology.Business.Client.Model.ClientLocation             clientLocation = new YellowstonePathology.Business.Client.Model.ClientLocation();
                YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter propertyWriter = new YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter(clientLocation, dr);
                propertyWriter.WriteProperties();
                clientOrder.ClientLocation = clientLocation;
            }

            return(clientOrder);
        }
 public void Execute(string containerId, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection)
 {
     this.m_ContainerId = containerId;
     this.m_ClientOrder = clientOrder;
     this.m_ClientOrderCollection = clientOrderCollection;
     this.m_Rule.Execute();
 }
        public AccessionOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                  YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
                                  PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder     = accessionOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_ClientOrder = clientOrder;

            if (YellowstonePathology.Business.User.SystemIdentity.Instance.User.IsUserInRole(Business.User.SystemUserRoleDescriptionEnum.Pathologist) == true)
            {
                this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetPathologistPanelSets();
            }
            else
            {
                this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets();
            }

            this.m_FacilityCollection     = Business.Facility.Model.FacilityCollection.Instance;
            this.m_CaseTypeList           = new OrderPageCaseTypeList();
            this.m_OrderAsResearchTesting = false;

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(AccessionOrderPage_Loaded);
        }
Exemple #8
0
        public static void BuildClientOrderCollection(MySqlDataReader dr, YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection)
        {
            int clientOrderIdCount = 0;

            while (dr.Read())
            {
                if (dr["ClientOrderIdCount"] != DBNull.Value)
                {
                    clientOrderIdCount = Convert.ToInt32(dr["ClientOrderIdCount"].ToString());
                }
            }

            for (int i = 0; i < clientOrderIdCount; i++)
            {
                dr.NextResult();
                YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = BuildClientOrder(dr);
                dr.NextResult();
                BuildClientOrderDetailCollection(clientOrder.ClientOrderDetailCollection, dr);

                if (clientOrder.ClientOrderId != null)
                {
                    clientOrderCollection.Add(clientOrder);
                }
            }
        }
Exemple #9
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrder GetClientOrderByExternalOrderId(string externalOrderId)
        {
            MySqlCommand cmd = new MySqlCommand();

            cmd.CommandText = "gwGetClientOrderByExternalOrderId";
            cmd.Parameters.AddWithValue("ExternalOrderId", externalOrderId);
            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = null;

            using (MySqlConnection cn = new MySqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (MySqlDataReader dr = cmd.ExecuteReader())
                {
                    clientOrder = BuildClientOrder(dr);
                    dr.NextResult();
                    BuildClientOrderDetailCollection(clientOrder.ClientOrderDetailCollection, dr);
                }
            }

            if (clientOrder.ClientOrderId == null)
            {
                return(null);
            }

            return(clientOrder);
        }
        public AccessionOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,             
            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,        
            PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_ClientOrder = clientOrder;

            if (YellowstonePathology.Business.User.SystemIdentity.Instance.User.IsUserInRole(Business.User.SystemUserRoleDescriptionEnum.Pathologist) == true)
            {
                this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetPathologistPanelSets();
            }
            else
            {
                this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets();
            }

            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_CaseTypeList = new OrderPageCaseTypeList();
            this.m_OrderAsResearchTesting = false;

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(AccessionOrderPage_Loaded);
        }
        private void TileFinalize_MouseUp(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewAccessionOrders.SelectedItems.Count != 0)
            {
                YellowstonePathology.Business.Search.ReportSearchItem reportSearchItem = (YellowstonePathology.Business.Search.ReportSearchItem) this.ListViewAccessionOrders.SelectedItem;

                if (this.m_LoginUI.AccessionOrder.PanelSetOrderCollection.HasThinPrepPapOrder() == true)
                {
                    if (string.IsNullOrEmpty(this.m_LoginUI.AccessionOrder.ClientOrderId) == false)
                    {
                        YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrderByClientOrderId(this.m_LoginUI.AccessionOrder.ClientOrderId, this.m_Writer);

                        YellowstonePathology.Business.User.SystemIdentity systemIdentity = Business.User.SystemIdentity.Instance;
                        this.m_LoginPageWindow = new LoginPageWindow();
                        this.m_LoginPageWindow.Show();

                        YellowstonePathology.UI.Login.FinalizeAccession.FinalizeCytologyPath finalizeCytologyPath = new YellowstonePathology.UI.Login.FinalizeAccession.FinalizeCytologyPath(clientOrder, this.m_LoginUI.AccessionOrder, this.m_LoginUI.ReportNo, this.m_LoginPageWindow.PageNavigator);
                        finalizeCytologyPath.Start();
                        finalizeCytologyPath.Finish += new YellowstonePathology.UI.Login.FinalizeAccession.FinalizeCytologyPath.FinishEventHandler(CytologyFinalizationPath_Finish);
                        finalizeCytologyPath.Return += new FinalizeAccession.FinalizeCytologyPath.ReturnEventHandler(FinalizeCytologyPath_Return);
                    }
                }
                else
                {
                    YellowstonePathology.UI.Login.FinalizeAccession.FinalizeAccessionPathWithSecurity finalizeAccessionPathWithSecurity = new FinalizeAccession.FinalizeAccessionPathWithSecurity(this.m_LoginUI.ReportNo, this.m_LoginUI.AccessionOrder);
                    finalizeAccessionPathWithSecurity.Start();
                }
            }
        }
Exemple #12
0
        private void ShowClientOrderShortDetailsPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            ClientOrderShortDetailsPage clientOrderShortDetailsPage = new ClientOrderShortDetailsPage(clientOrder);

            clientOrderShortDetailsPage.Return += new ClientOrderShortDetailsPage.ReturnEventHandler(ClientOrderShortDetailsPage_Return);
            this.m_PageNavigator.Navigate(clientOrderShortDetailsPage);
        }
Exemple #13
0
        public ReviewClientOrderPage(YellowstonePathology.Business.Rules.Surgical.PatientRecentAccessions patientRecentAccessions,
                                     YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
                                     UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_PatientRecentAccessions = patientRecentAccessions;
            this.m_ClientOrder             = clientOrder;
            this.m_PageNavigator           = pageNavigator;

            this.SetClientOrderCollection();

            InitializeComponent();

            this.DataContext = this;

            if (this.m_ClientOrder.Accessioned == true)
            {
                this.m_CloseButtonVisibility = System.Windows.Visibility.Collapsed;
                this.m_NextButtonVisibility  = System.Windows.Visibility.Visible;
            }
            else
            {
                this.m_CloseButtonVisibility = System.Windows.Visibility.Visible;
                this.m_NextButtonVisibility  = System.Windows.Visibility.Collapsed;
            }

            this.Loaded += new RoutedEventHandler(ReviewClientOrderPage_Loaded);
        }
Exemple #14
0
        private void LoadData()
        {
            if (this.m_AccessionOrder != null)
            {
                this.SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderCytology.OrderedOnId);

                this.m_DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.NotFound;
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_AccessionOrder.MasterAccessionNo);
                if (clientOrderCollection.Count == 0)
                {
                    this.m_ClientOrder = null;
                    this.m_DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.Successful;
                    this.DataLoaded();
                }
                else
                {
                    this.m_ClientOrder = clientOrderCollection[0];
                    this.m_DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.Successful;
                    this.DataLoaded();
                }

                this.NotifyPropertyChanged("ClientOrder");
            }
            else
            {
                MessageBox.Show("The ReportNo entered cannot be found.");
            }
        }
Exemple #15
0
        public ClientOrderShortDetailsPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            InitializeComponent();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(CreateClientOrderPage_Loaded);
        }
        public ViewClientOrderPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            InitializeComponent();
            DataContext = this;

            Loaded += new RoutedEventHandler(ViewClientOrderPage_Loaded);
        }
        public ClientOrderShortDetailsPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            InitializeComponent();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(CreateClientOrderPage_Loaded);
        }
 public EpicStatusMessage(string clientOrderId, OrderStatus orderStatus, YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService, object writer)
 {
     this.m_ClientOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrderByClientOrderId(clientOrderId, writer);
     this.m_OrderingPhysician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByNpi(this.m_ClientOrder.ProviderId);
     this.m_OrderStatus = orderStatus;
     this.m_UniversalService = universalService;
     this.SetupFileNames();
 }
 public EpicStatusMessage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, OrderStatus orderStatus, YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService)
 {
     this.m_ClientOrder = clientOrder;
     this.m_OrderingPhysician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByNpi(this.m_ClientOrder.ProviderId);
     this.m_OrderStatus = orderStatus;
     this.m_UniversalService = universalService;
     this.SetupFileNames();
 }
 private void ShowSurgicalOrderEntryPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
 {
     YellowstonePathology.Business.Persistence.ObjectTracker objectTracker = new Business.Persistence.ObjectTracker();
     objectTracker.RegisterObject(clientOrder);
     OrderEntry.SurgicalOrderEntryPage orderEntryPage = new OrderEntry.SurgicalOrderEntryPage((YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder)clientOrder, objectTracker);
     orderEntryPage.Return += new SurgicalOrderEntryPage.ReturnEventHandler(OrderEntryPage_Return);
     ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(orderEntryPage);
 }
Exemple #21
0
        private void ShowViewClientOrderPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            ViewClientOrderPage viewClientOrderPage = new ViewClientOrderPage(clientOrder);

            viewClientOrderPage.UseThisClientOrder += new ViewClientOrderPage.UseThisClientOrderEventHandler(ViewClientOrderPage_UseThisClientOrder);
            viewClientOrderPage.Back += new ViewClientOrderPage.BackEventHandler(ViewClientOrderPage_Back);
            this.m_PageNavigator.Navigate(viewClientOrderPage);
        }
Exemple #22
0
 public ClientOrderCaseDocument(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
 {
     this.m_ClientOrder = clientOrder;
     FullFileName       = null;
     FileName           = "Client Order Data Sheet.xps";
     FilePath           = null;
     CaseDocumentType   = "ClientOrderDataSheet";
 }
 public EpicStatusMessage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, OrderStatus orderStatus, YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService)
 {
     this.m_ClientOrder       = clientOrder;
     this.m_OrderingPhysician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByNpi(this.m_ClientOrder.ProviderId);
     this.m_OrderStatus       = orderStatus;
     this.m_UniversalService  = universalService;
     this.SetupFileNames();
 }
 public EpicStatusMessage(string clientOrderId, OrderStatus orderStatus, YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService, object writer)
 {
     this.m_ClientOrder       = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrderByClientOrderId(clientOrderId, writer);
     this.m_OrderingPhysician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByNpi(this.m_ClientOrder.ProviderId);
     this.m_OrderStatus       = orderStatus;
     this.m_UniversalService  = universalService;
     this.SetupFileNames();
 }
 public ClientOrderCaseDocument(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
 {
     this.m_ClientOrder = clientOrder;
     FullFileName = null;
     FileName = "Client Order Data Sheet.xps";
     FilePath = null;
     CaseDocumentType = "ClientOrderDataSheet";
 }
Exemple #26
0
        public ViewClientOrderPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            InitializeComponent();
            DataContext = this;

            Loaded += new RoutedEventHandler(ViewClientOrderPage_Loaded);
        }
        public WomensHealthProfilePage(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder,
                                       YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                       YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
                                       System.Windows.Visibility backButtonVisibility) : base(womensHealthProfileTestOrder, accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;

            this.m_HPVReflexOrderCollection       = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders();
            this.m_HPVStandingOrderCollection     = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders();
            this.m_HPV1618ReflexOrderCollection   = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders();
            this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders();

            this.m_ClientOrder = clientOrder;
            this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder;
            this.m_SystemIdentity       = Business.User.SystemIdentity.Instance;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId);

            this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15);

            this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder);
            this.m_AuditCollection.Run();

            if (string.IsNullOrEmpty(accessionOrder.PatientId) == false)
            {
                YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId);
                this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value);
            }

            YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode);
            this.m_HPVStandingOrderDescription = standingOrder.ToString();

            InitializeComponent();

            this.DataContext = this;

            this.m_ParentWindow = Window.GetWindow(this);

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonClose);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalize);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockNext);

            this.m_ControlsNotEnabledOnUnFinal.Add(this.CheckBoxAccepted);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.CheckBoxFinal);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.ComboBoxStandingOrderDescription);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockLastHPVDate);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockPatientAge);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockScreeningImpression);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockStandingOrderDescription);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxAcceptedBy);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxAcceptedTime);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxFinalTime);
            this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxSignaure);
        }
Exemple #28
0
        public OrderCommentPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_OrderCommentLogCollection = YellowstonePathology.Business.Gateway.OrderCommentGateway.GetOrderCommentLogCollectionByClientOrderId(clientOrder.ClientOrderId);
            this.m_PageHeaderText            = "Events for " + clientOrder.PatientDisplayName;

            InitializeComponent();

            this.DataContext = this;
        }
Exemple #29
0
 private void ButtonUseSelectedClientOrder_Click(object sender, RoutedEventArgs e)
 {
     if (this.SelectedClientOrder != null)
     {
         this.m_ReturnClientOrder = this.SelectedClientOrder;
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
         this.Return(this, args);
     }
 }
Exemple #30
0
        public override void Refresh(object o)
        {
            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = (YellowstonePathology.Business.ClientOrder.Model.ClientOrder)o;
            YellowstonePathology.Business.Gateway.ClientOrderBuilder    builder     = new Gateway.ClientOrderBuilder(this.m_SQLCommand);
            Nullable <int> panelSetId = builder.GetPanelSetId();

            builder.Build(clientOrder);
            //document.IsLockAquiredByMe = true;
        }
Exemple #31
0
        public override object BuildNew()
        {
            YellowstonePathology.Business.Gateway.ClientOrderBuilder builder = new Gateway.ClientOrderBuilder(this.m_SQLCommand);
            Nullable <int> panelSetId = builder.GetPanelSetId();

            YellowstonePathology.Business.ClientOrder.Model.ClientOrder result = YellowstonePathology.Business.ClientOrder.Model.ClientOrderFactory.GetClientOrder(panelSetId);
            builder.Build(result);
            return(result);
        }
        public AccessionOrderPath(ClientOrderReceivingHandler clientOrderReceivingHandler,
                                  YellowstonePathology.UI.Navigation.PageNavigator pageNavigator, PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder = clientOrderReceivingHandler.AccessionOrder;
            this.m_ClientOrder    = clientOrderReceivingHandler.ClientOrder;
            this.m_PageNavigator  = pageNavigator;

            this.m_PageNavigationMode = pageNavigationMode;
        }
        public AccessionOrderPath(ClientOrderReceivingHandler clientOrderReceivingHandler,            
            YellowstonePathology.UI.Navigation.PageNavigator pageNavigator, PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder = clientOrderReceivingHandler.AccessionOrder;
            this.m_ClientOrder = clientOrderReceivingHandler.ClientOrder;
            this.m_PageNavigator = pageNavigator;

            this.m_PageNavigationMode = pageNavigationMode;
        }
 private void ListViewClientOrders_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (this.ListViewClientOrders.SelectedItem != null)
     {
         YellowstonePathology.Business.ClientOrder.Model.OrderBrowserListItem orderBrowserListItem    = (YellowstonePathology.Business.ClientOrder.Model.OrderBrowserListItem) this.ListViewClientOrders.SelectedItem;
         YellowstonePathology.Business.ClientOrder.Model.ClientOrder          clientOrder             = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrderByClientOrderId(orderBrowserListItem.ClientOrderId, this.m_Writer);
         YellowstonePathology.Business.Document.ClientOrderCaseDocument       clientOrderCaseDocument = new Business.Document.ClientOrderCaseDocument(clientOrder);
         this.m_DocumentViewer.ShowDocument(clientOrderCaseDocument);
     }
 }
        public SpecimenOrderEntryPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
			YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail,
			ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode,
			YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ClientOrderDetail = clientOrderDetail;
            this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode;
            this.m_ObjectTracker = objectTracker;
        }
Exemple #36
0
        public OrderDetailTypePage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ClientOrderDetailTypCollection = new Business.ClientOrder.Model.ClientOrderDetailTypeCollection();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(OrderDetailTypePage_Loaded);
        }
 public ClientOrderBuilder(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, SqlCommand cmd)
 {
     this.m_ClientOrder = clientOrder;
     this.m_Command = cmd;
     this.m_Connection = new SqlConnection(ServerSqlConnectionString);
     this.m_Connection.Open();
     this.m_Command.Connection = this.m_Connection;
     this.m_DataReader = this.m_Command.ExecuteReader();
     this.m_DataReader.NextResult();
 }
        public FinalizeCytologyPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			string reportNo,
			YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_ClientOrder = clientOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_PageNavigator = pageNavigator;
            this.m_ReportNo = reportNo;
        }
Exemple #39
0
 public SpecimenOrderEntryPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
                               YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail,
                               ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode,
                               YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
 {
     this.m_ClientOrder                 = clientOrder;
     this.m_ClientOrderDetail           = clientOrderDetail;
     this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode;
     this.m_ObjectTracker               = objectTracker;
 }
        public OrderDetailTypePage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ClientOrderDetailTypCollection = new Business.ClientOrder.Model.ClientOrderDetailTypeCollection();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(OrderDetailTypePage_Loaded);
        }
Exemple #41
0
        public ViewClientOrderPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            object o = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Documents;

            InitializeComponent();
            DataContext = this;

            Loaded += new RoutedEventHandler(ViewClientOrderPage_Loaded);
        }
        public ViewClientOrderPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            object o = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Documents;

            InitializeComponent();
            DataContext = this;

            Loaded += new RoutedEventHandler(ViewClientOrderPage_Loaded);
        }
        public ClientOrderProviderSelectionPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrder = clientOrder;
            this.m_PhysicianClientCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientListByClientIdV2(this.m_ClientOrder.ClientId);

            InitializeComponent();

            DataContext = this;
            this.Loaded += new RoutedEventHandler(ProviderDetailPage_Loaded);
        }
Exemple #44
0
 public FinalizeCytologyPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
                             YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                             string reportNo,
                             YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
 {
     this.m_ClientOrder    = clientOrder;
     this.m_AccessionOrder = accessionOrder;
     this.m_PageNavigator  = pageNavigator;
     this.m_ReportNo       = reportNo;
 }
Exemple #45
0
 public ClientOrderBuilder(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, MySqlCommand cmd)
 {
     this.m_ClientOrder = clientOrder;
     this.m_Command     = cmd;
     this.m_Connection  = new MySqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString);
     this.m_Connection.Open();
     this.m_Command.Connection = this.m_Connection;
     this.m_DataReader         = this.m_Command.ExecuteReader();
     this.m_DataReader.NextResult();
 }
        public WomensHealthProfilePath(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
            YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
            System.Windows.Window window,
            System.Windows.Visibility backButtonVisibility)
            : base(pageNavigator, window)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ClientOrder = clientOrder;
            this.m_BackButtonVisibility = backButtonVisibility;
        }
        public AccessionOrderPath(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,			
			PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ClientOrder = clientOrder;

            this.m_LoginPageWindow = new LoginPageWindow();
            this.m_PageNavigator = this.m_LoginPageWindow.PageNavigator;
            this.m_PageNavigationMode = pageNavigationMode;
        }
        public ScanContainerPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetailClone, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ClientOrderDetailClone = clientOrderDetailClone;
            this.m_ClientOrder = clientOrder;

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(ScanContainerPage_Loaded);
            this.TextBlockContainerId.TextChanged += TextBlockContainerId_TextChanged;
        }
        public OrderTypePage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder baseClientOrder)
        {
            this.m_BaseClientOrder = baseClientOrder;
            this.m_ObjectTracker = new Business.Persistence.ObjectTracker();
            this.m_PanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetYPIOrderTypes();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(OrderTypePage_Loaded);
        }
 public GenericSpecimenPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail, ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode)
 {
     this.m_ClientOrder = clientOrder;
     this.m_ClientOrderDetail = clientOrderDetail;
     this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode;
     if (this.m_ClientOrderDetailWizardMode == ClientOrderDetailWizardModeEnum.AddNew)
     {
         this.m_ClientOrderDetail.OrderType = "Other";
     }
     YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Business.Persistence.ObjectCloner();
     this.m_ClientOrderDetailClone = (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail)objectCloner.Clone(this.m_ClientOrderDetail);
 }
        public ClientOrderPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, 
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailCollection clientOrderDetailCollection, 
            Visibility accessionButtonVisibility)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ClientOrderDetailViewCollection = new Login.ClientOrderDetailViewCollection(clientOrderDetailCollection);

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(ClientOrderPage_Loaded);
        }
        public ReportOrderPath(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
			YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
			PageNavigationModeEnum pageNavigationMode,
            System.Windows.Window writer)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ClientOrder = clientOrder;
            this.m_PageNavigator = pageNavigator;
            this.m_PageNavigationMode = pageNavigationMode;
            this.m_Writer = writer;
        }
        public OwnershipPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ObjectTracker = objectTracker;
            if (YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.DisplayName == this.m_ClientOrder.OrderedBy)
            {
                this.m_CurrentUserIsOwner = true;
            }

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(OwnershipPage_Loaded);
        }
        public SpecimenMatchingPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail, 
            YellowstonePathology.Business.ClientOrder.Model.Shipment shipment, 
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailCollection clientOrderDetailCollection)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ClientOrderDetail = clientOrderDetail;
            this.m_Shipment = shipment;
            this.m_ClientOrderDetailCollection = clientOrderDetailCollection;

            InitializeComponent();
            this.DataContext = this;

            Loaded += new RoutedEventHandler(SpecimenMatchingPage_Loaded);
        }
        public WomensHealthProfilePage(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, 
            System.Windows.Visibility backButtonVisibility)
            : base(womensHealthProfileTestOrder, accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;

            this.m_HPVReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders();
            this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders();
            this.m_HPV1618ReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders();
            this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders();

            this.m_ClientOrder = clientOrder;
            this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder;
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId);

            this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15);

            this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder);
            this.m_AuditCollection.Run();

            if (string.IsNullOrEmpty(accessionOrder.PatientId) == false)
            {
                YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId);
                this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value);
            }

            YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode);
            this.m_HPVStandingOrderDescription = standingOrder.ToString();

            InitializeComponent();

            this.DataContext = this;

            this.m_ParentWindow = Window.GetWindow(this);

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonClose);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalize);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockNext);
        }
        public AccessionOrderPage(ClientOrderReceivingHandler clientOrderReceivingHandler, PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder = clientOrderReceivingHandler.AccessionOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_ClientOrder = clientOrderReceivingHandler.ClientOrder;

            this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets();
            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_CaseTypeList = new OrderPageCaseTypeList();

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(AccessionOrderPage_Loaded);
        }
        public OrderEntryPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            this.m_ShowInactiveSpecimen = false;
            this.m_IsLoadingSpecimen = false;
            this.m_ClientOrder = clientOrder;

            this.m_ClientOrderDetailViewCollection = new ClientOrderDetailViewCollection(this.m_ClientOrder.ClientOrderDetailCollection, this.m_ShowInactiveSpecimen);

            YellowstonePathology.Business.Rules.MethodResult methodResult = new Business.Rules.MethodResult();
            this.m_HandleClientDateentryPropertyAccess = new Rules.HandleClientDataEntryPropertyAccess(executionStatus);
            this.m_HandleClientDateentryPropertyAccess.Execute(this.m_ClientOrder, methodResult);
            this.AreDemographicsEnabled = methodResult.Success;
            this.AreSpecimenEnabled = methodResult.Success;
            this.AreButtonsEnabled = methodResult.Success;

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(OrderEntryPage_Loaded);
        }
Exemple #58
0
        private void LoadData()
        {
            if (this.m_AccessionOrder != null)
            {
                this.SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderCytology.OrderedOnId);

                this.m_DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.NotFound;
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_AccessionOrder.MasterAccessionNo);
                if (clientOrderCollection.Count == 0)
                {
                    this.m_ClientOrder = null;
                    this.m_DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.Successful;
                    this.DataLoaded();
                }
                else
                {
                    this.m_ClientOrder = clientOrderCollection[0];
                    this.m_DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.Successful;
                    this.DataLoaded();
                }

                this.NotifyPropertyChanged("ClientOrder");
            }
            else
            {
                MessageBox.Show("The ReportNo entered cannot be found.");
            }
        }
 public void Execute(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
 {
     this.m_ClientOrder = clientOrder;
     this.m_Rule.Execute();
 }
 public ReceiveSpecimenPathStartingWithOrder(string clientOrderId)
 {
     this.m_LoginPageWindow = new Receiving.LoginPageWindow();
     this.m_ClientOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrderByClientOrderId(clientOrderId, this.m_LoginPageWindow);
 }