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 ClientOrderSelectionPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection, YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_ClientOrderCollection = clientOrderCollection;
            this.m_PageNavigator = pageNavigator;

            InitializeComponent();

            DataContext = this;
        }
Example #3
0
		public static XElement GetClientOrders(string masterAccessionNo)
		{			
			XElement result = new XElement("ClientOrders");
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(masterAccessionNo);
            foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder in clientOrderCollection)
            {
                XElement clientOrderElement = new XElement("ClientOrder");
                YellowstonePathology.Business.Persistence.XmlPropertyReader clientOrderPropertyWriter = new Persistence.XmlPropertyReader(clientOrder, clientOrderElement);
                clientOrderPropertyWriter.Write();
                result.Add(clientOrderElement);
                
                foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail in clientOrder.ClientOrderDetailCollection)
                {
                    XElement clientOrderDetailElement = new XElement("ClientOrderDetail");
                    YellowstonePathology.Business.Persistence.XmlPropertyReader clientOrderDetailPropertyWriter = new Persistence.XmlPropertyReader(clientOrderDetail, clientOrderDetailElement);
                    clientOrderDetailPropertyWriter.Write();
                    clientOrderElement.Add(clientOrderDetailElement);
                }
            }            
			return result;
		}
Example #4
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetClientOrderCollectionByContainerIdString(string containerIdString)
        {
            MySqlCommand cmd = new MySqlCommand();

            cmd.CommandText = "gwGetClientOrdersByContainerIdString";
            cmd.Parameters.AddWithValue("ContainerIdString", containerIdString);
            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = new YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection();

            using (MySqlConnection cn = new MySqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (MySqlDataReader dr = cmd.ExecuteReader())
                {
                    BuildClientOrderCollection(dr, clientOrderCollection);
                }
            }

            return(clientOrderCollection);
        }
Example #5
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetClientOrdersBySvhMedicalRecord(string svhMedicalRecord)
        {
            SqlCommand cmd = new SqlCommand();

            cmd.CommandText = "gwGetClientOrdersBySvhMedicalRecord";

            cmd.Parameters.Add("@SvhMedicalRecord", SqlDbType.VarChar).Value = svhMedicalRecord;
            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = new YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection();

            using (SqlConnection cn = new SqlConnection(ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    BuildClientOrderCollection(dr, clientOrderCollection);
                }
            }

            return(clientOrderCollection);
        }
Example #6
0
 private YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetClientOrdersForExternalOrderIds()
 {
     YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection result = null;
     if (this.ListViewClientOrders.SelectedItems.Count == 0)
     {
         MessageBox.Show("Select one or more Client Orders from the Recent Client Orders List.");
     }
     else
     {
         result = new Business.ClientOrder.Model.ClientOrderCollection();
         foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder in this.ListViewClientOrders.SelectedItems)
         {
             if (string.IsNullOrEmpty(clientOrder.ExternalOrderId) == false)
             {
                 if (clientOrder.PanelSetId.HasValue && result.PanelSetIdExists(clientOrder.PanelSetId.Value) == true)
                 {
                     MessageBox.Show("Only one Client Order for " + clientOrder.OrderType + "may be used.  Choose one of the Client Orders to use.");
                     result = null;
                     break;
                 }
                 else if (result.ExternalOrderIdExists(clientOrder.ExternalOrderId) == false)
                 {
                     result.Add(clientOrder);
                 }
             }
             else
             {
                 result.Add(clientOrder);
             }
         }
     }
     if (result != null && this.SelectedClientOrders != null)
     {
         this.SelectedClientOrders(this, new CustomEventArgs.ClientOrderCollectionReturnEventArgs(result));
     }
     return(result);
 }
Example #7
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.");
            }
        }
Example #8
0
        public void StartWomensHealthProfilePath()
        {
            if (this.m_AccessionOrder.PanelSetOrderCollection.HasWomensHealthProfileOrder() == true)
            {
                YellowstonePathology.Business.Domain.Physician physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId);

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

                if (isWHPAllDoneAuditCollection.ActionRequired == true)
                {
                    YellowstonePathology.Business.ClientOrder.Model.ClientOrder           clientOrder  = null;
                    YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrders = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_AccessionOrder.MasterAccessionNo);

                    if (clientOrders.Count > 0)
                    {
                        clientOrder = clientOrders[0];
                    }

                    this.m_PageNavigationWindow = new PageNavigationWindow(this.m_SystemIdentity);
                    YellowstonePathology.UI.Login.WomensHealthProfilePath womensHealthProfilePath = new YellowstonePathology.UI.Login.WomensHealthProfilePath(this.m_AccessionOrder, clientOrder, this.m_PageNavigationWindow.PageNavigator, m_PageNavigationWindow, Visibility.Collapsed);
                    womensHealthProfilePath.Back   += new Login.WomensHealthProfilePath.BackEventHandler(WomensHealthProfilePath_Finished);
                    womensHealthProfilePath.Finish += new Login.WomensHealthProfilePath.FinishEventHandler(WomensHealthProfilePath_Finished);
                    womensHealthProfilePath.Start();
                    this.m_PageNavigationWindow.ShowDialog();
                }
            }
        }
        private void TileReportOrders_MouseUp(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewAccessionOrders.SelectedItem != null)
            {
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_LoginUI.AccessionOrder.MasterAccessionNo);

                if (clientOrderCollection.Count != 0)
                {
                    Login.Receiving.AccessionOrderPath accessionOrderPath = new Receiving.AccessionOrderPath(this.m_LoginUI.AccessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
                    accessionOrderPath.Start();
                }
                else
                {
                    MessageBox.Show("No Client Order was found.  Please contact IT.");
                }
            }
        }
 private void ReturnClientOrderCollection(YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection)
 {
     YellowstonePathology.UI.CustomEventArgs.ClientOrderCollectionReturnEventArgs eventArgs = new CustomEventArgs.ClientOrderCollectionReturnEventArgs(clientOrderCollection);
     this.MultipleClientOrdersFound(this, eventArgs);
 }
Example #11
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetClientOrdersByOrderDate(DateTime orderDate)
        {
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "gwGetClientOrdersByOrderDate";

            SqlParameter orderDateParameter = new SqlParameter("@OrderDate", SqlDbType.DateTime);
            orderDateParameter.Value = orderDate;
            cmd.Parameters.Add(orderDateParameter);

            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = new YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection();

            using (SqlConnection cn = new SqlConnection(ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    BuildClientOrderCollection(dr, clientOrderCollection);
                }
            }

            return clientOrderCollection;
        }
Example #12
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetClientOrdersBySvhMedicalRecord(string svhMedicalRecord)
        {
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "gwGetClientOrdersBySvhMedicalRecord";

            cmd.Parameters.Add("@SvhMedicalRecord", SqlDbType.VarChar).Value = svhMedicalRecord;
            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = new YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection();

            using (SqlConnection cn = new SqlConnection(ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    BuildClientOrderCollection(dr, clientOrderCollection);
                }
            }

            return clientOrderCollection;
        }
 public PatientNameLookupPage()
 {
     this.m_ClientOrderCollection = new Business.ClientOrder.Model.ClientOrderCollection();
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(PatientNameLookupPage_Loaded);
 }
Example #14
0
        private void ButtonWomensHealthProfile_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_CytologyUI.AccessionOrder.PanelSetOrderCollection.HasWomensHealthProfileOrder() == true)
            {
                YellowstonePathology.Business.ClientOrder.Model.ClientOrder           clientOrder  = null;
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrders = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_CytologyUI.AccessionOrder.MasterAccessionNo);

                if (clientOrders.Count > 0)
                {
                    clientOrder = clientOrders[0];
                }

                this.m_PageNavigationWindow = new PageNavigationWindow(this.m_SystemIdentity);
                YellowstonePathology.UI.Login.WomensHealthProfilePath womensHealthProfilePath = new YellowstonePathology.UI.Login.WomensHealthProfilePath(this.m_CytologyUI.AccessionOrder, clientOrder, this.m_PageNavigationWindow.PageNavigator, this.m_PageNavigationWindow, Visibility.Collapsed);
                womensHealthProfilePath.Finish += new Login.WomensHealthProfilePath.FinishEventHandler(WomensHealthProfilePath_Finished);
                womensHealthProfilePath.Back   += new Login.WomensHealthProfilePath.BackEventHandler(WomensHealthProfilePath_Finished);
                womensHealthProfilePath.Start();
                this.m_PageNavigationWindow.ShowDialog();
            }
            else
            {
                MessageBox.Show("A Womens Health Profile has not been ordered.");
            }
        }
Example #15
0
        public bool Start(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder,
                          YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                          YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
                          System.Windows.Window window,
                          System.Windows.Visibility backButtonVisibility)
        {
            bool result = false;

            YellowstonePathology.UI.Test.ResultPath resultPath = YellowstonePathology.UI.Test.ResultPathFactory.GetResultPath(panelSetOrder.PanelSetId, panelSetOrder.ReportNo, accessionOrder, pageNavigator, window, System.Windows.Visibility.Collapsed);

            if (resultPath != null)
            {
                result             = true;
                resultPath.Finish += new Test.ResultPath.FinishEventHandler(ResultPath_Finish);
                resultPath.Start();
            }
            else
            {
                if (panelSetOrder is YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)
                {
                    result = true;

                    YellowstonePathology.Business.ClientOrder.Model.ClientOrder           clientOrder  = null;
                    YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrders = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(accessionOrder.MasterAccessionNo);

                    if (clientOrders.Count > 0)
                    {
                        clientOrder = clientOrders[0];
                    }

                    YellowstonePathology.UI.Login.WomensHealthProfilePath womensHealthProfilePath = new YellowstonePathology.UI.Login.WomensHealthProfilePath(accessionOrder, clientOrder, pageNavigator, window, System.Windows.Visibility.Collapsed);
                    womensHealthProfilePath.Back   += new Login.WomensHealthProfilePath.BackEventHandler(WomensHealthProfilePath_Finished);
                    womensHealthProfilePath.Finish += new Login.WomensHealthProfilePath.FinishEventHandler(WomensHealthProfilePath_Finished);
                    womensHealthProfilePath.Start();
                }
                else if (panelSetOrder is YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder)
                {
                    result = true;
                    Test.EGFRToALKReflexPath eGFRToALKReflexPath = new Test.EGFRToALKReflexPath(panelSetOrder.ReportNo, accessionOrder, pageNavigator, window, System.Windows.Visibility.Collapsed);
                    eGFRToALKReflexPath.Finish += new Test.EGFRToALKReflexPath.FinishEventHandler(EGFRToALKReflexPath_Finish);
                    eGFRToALKReflexPath.Start();
                }
                else if (panelSetOrder is YellowstonePathology.Business.Test.InvasiveBreastPanel.InvasiveBreastPanel)
                {
                    result = true;
                    YellowstonePathology.UI.Test.InvasiveBreastPanelPath invasiveBreastPanelPath = new Test.InvasiveBreastPanelPath(panelSetOrder.ReportNo, accessionOrder, pageNavigator, window);
                    invasiveBreastPanelPath.Finish += new Test.InvasiveBreastPanelPath.FinishEventHandler(InvasiveBreastPanelPath_Finish);
                    invasiveBreastPanelPath.Start();
                }
                else
                {
                    YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll().GetPanelSet(panelSetOrder.PanelSetId);
                    if (panelSet.ResultDocumentSource == Business.PanelSet.Model.ResultDocumentSourceEnum.PublishedDocument)
                    {
                        result = true;
                        PublishedDocumentResultPath publishedDocumentResultPath = new PublishedDocumentResultPath(panelSetOrder.ReportNo, accessionOrder, pageNavigator, window);
                        publishedDocumentResultPath.Finish += new ResultPath.FinishEventHandler(ResultPath_Finish);
                        publishedDocumentResultPath.Start();
                    }
                }
            }

            return(result);
        }
        private void Search()
        {
            string firstName = string.Empty;
            string lastName = string.Empty;
            string[] commaSplit = this.TextBoxPatientName.Text.Split(',');
            lastName = commaSplit[0].Trim();

            if (commaSplit.Length > 1)
            {
                firstName = commaSplit[1].Trim();
            }

            this.m_ClientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByPatientName(firstName, lastName);
            this.DataContext = ClientOrderCollection;
            this.ListBoxClientOrder.SelectedIndex = -1;
        }
Example #17
0
 private void ButtonReportOrder_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_FlowUI.AccessionOrder != null)
     {
         this.Save(false);
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_FlowUI.AccessionOrder.MasterAccessionNo);
         if (clientOrderCollection.Count != 0)
         {
             Login.Receiving.AccessionOrderPath accessionOrderPath = new Login.Receiving.AccessionOrderPath(this.m_FlowUI.AccessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
             accessionOrderPath.Start();
             this.m_FlowUI.GetAccessionOrder(this.m_FlowUI.PanelSetOrderLeukemiaLymphoma.ReportNo, this.m_FlowUI.AccessionOrder.MasterAccessionNo);
         }
         else
         {
             MessageBox.Show("No Client Order was found.  Please contact IT.");
         }
     }
 }
Example #18
0
        private void ShowReportOrderDialog(string reportNo)
        {
            string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromReportNo(reportNo);

            YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer);
            if (accessionOrder != null)
            {
                YellowstonePathology.Business.Gateway.ClientOrderGateway clientOrderGateway = new Business.Gateway.ClientOrderGateway();
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(accessionOrder.MasterAccessionNo);
                if (clientOrderCollection.Count == 1)
                {
                    Login.Receiving.AccessionOrderPath accessionOrderPath = new Login.Receiving.AccessionOrderPath(accessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
                    accessionOrderPath.Start();
                }
                else
                {
                    MessageBox.Show("We are not able to show the Report Order Dialog for ReportNo: " + reportNo);
                }
            }
            else
            {
                MessageBox.Show("We are not able to show the Report Order Dialog for ReportNo: " + reportNo);
            }
        }
 public ClientOrderCollectionReturnEventArgs(YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection)
 {
     this.m_ClientOrderCollection = clientOrderCollection;
 }
Example #20
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetClientOrderCollectionByContainerIdString(string containerIdString)
        {
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "gwGetClientOrdersByContainerIdString";

            SqlParameter containerIdStringParameter = new SqlParameter("@ContainerIdString", SqlDbType.VarChar);
            containerIdStringParameter.Value = containerIdString;
            cmd.Parameters.Add(containerIdStringParameter);
            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = new YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection();

            using (SqlConnection cn = new SqlConnection(ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    BuildClientOrderCollection(dr, clientOrderCollection);
                }
            }

            return clientOrderCollection;
        }
Example #21
0
        public bool Start(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder,
                          YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                          YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
                          System.Windows.Window window,
                          System.Windows.Visibility backButtonVisibility)
        {
            bool result = false;

            YellowstonePathology.UI.Test.ResultPath resultPath = YellowstonePathology.UI.Test.ResultPathFactory.GetResultPath(panelSetOrder.PanelSetId, panelSetOrder.ReportNo, accessionOrder, pageNavigator, window, System.Windows.Visibility.Collapsed);

            if (resultPath != null)
            {
                result             = true;
                resultPath.Finish += new Test.ResultPath.FinishEventHandler(ResultPath_Finish);
                resultPath.Start();
            }
            else
            {
                if (panelSetOrder is YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)
                {
                    result = true;

                    YellowstonePathology.Business.ClientOrder.Model.ClientOrder           clientOrder  = null;
                    YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrders = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(accessionOrder.MasterAccessionNo);

                    if (clientOrders.Count > 0)
                    {
                        clientOrder = clientOrders[0];
                    }

                    YellowstonePathology.UI.Login.WomensHealthProfilePath womensHealthProfilePath = new YellowstonePathology.UI.Login.WomensHealthProfilePath(accessionOrder, clientOrder, pageNavigator, window, System.Windows.Visibility.Collapsed);
                    womensHealthProfilePath.Back   += ResultPath_Finish;
                    womensHealthProfilePath.Finish += ResultPath_Finish;
                    womensHealthProfilePath.Start();
                }
                else
                {
                    result = true;
                    UnreachableResultPath unreachableResultPath = new UnreachableResultPath(panelSetOrder.ReportNo, accessionOrder, pageNavigator, window);
                    unreachableResultPath.Finish += ResultPath_Finish;
                    unreachableResultPath.Start();
                }
            }

            return(result);
        }
Example #22
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetClientOrdersByMasterAccessionNo(string masterAccessionNo)
        {
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "gwGetClientOrdersByMasterAccessionNo";

            SqlParameter masterAccessionNoParameter = new SqlParameter("@MasterAccessionNo", SqlDbType.VarChar, 100);
            masterAccessionNoParameter.Value = masterAccessionNo;
            cmd.Parameters.Add(masterAccessionNoParameter);
            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = new YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection();

            using (SqlConnection cn = new SqlConnection(ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    BuildClientOrderCollection(dr, clientOrderCollection);
                }
            }

            return clientOrderCollection;
        }
 public ClientOrderCollectionReturnEventArgs(YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection)
 {
     this.m_ClientOrderCollection = clientOrderCollection;
 }
Example #24
0
        public static YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetClientOrdersByPatientName(string pFirstName, string pLastName)
        {
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "gwGetClientOrdersByPatientName";

            SqlParameter firstNameParameter = new SqlParameter("@PFirstName", SqlDbType.VarChar, 100);
            firstNameParameter.Value = pFirstName;
            cmd.Parameters.Add(firstNameParameter);

            SqlParameter lastNameParameter = new SqlParameter("@PLastName", SqlDbType.VarChar, 100);
            lastNameParameter.Value = pLastName;
            cmd.Parameters.Add(lastNameParameter);

            cmd.CommandType = System.Data.CommandType.StoredProcedure;

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = new YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection();

            using (SqlConnection cn = new SqlConnection(ServerSqlConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (SqlDataReader dr = cmd.ExecuteReader())
                {
                    BuildClientOrderCollection(dr, clientOrderCollection);
                }
            }

            return clientOrderCollection;
        }
 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();
 }
Example #26
0
 public PatientNameLookupPage()
 {
     this.m_ClientOrderCollection = new Business.ClientOrder.Model.ClientOrderCollection();
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(PatientNameLookupPage_Loaded);
 }
Example #27
0
 private void HyperLinkCreateNewAccessionRecentAccessionsExist_Click(object sender, RoutedEventArgs e)
 {
     if (this.CreateNewAccessionOrder != null)
     {
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrders = this.GetClientOrdersForExternalOrderIds();
         if (clientOrders != null)
         {
             this.CreateNewAccessionOrder(this, new EventArgs());
         }
     }
 }
 private void GetMRN()
 {
     if (string.IsNullOrEmpty(this.TextBoxSvhAccountNo.Text) == false)
     {
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersBySvhAccountNo(this.TextBoxSvhAccountNo.Text);
         if (clientOrderCollection.Count == 1)
         {
             UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, clientOrderCollection[0]);
             this.Return(this, args);
         }
         else if (clientOrderCollection.Count > 1)
         {
             MessageBox.Show("More than one order was found. Please hold for IT.");
         }
         else
         {
             MessageBox.Show("No order was found. You will need to call the client and have them place an order.");
         }
     }
     else
     {
         MessageBox.Show("The SVH Account No entered is not valid.");
     }
 }
        private void SetReviewResult()
        {
            switch (this.m_PathologistUI.PanelSetOrder.PanelSetId)
            {
            case 15:
                this.m_PathologistsReview       = null;
                this.m_CytologyResultsWorkspace = new Cytology.CytologyResultsWorkspace(this.m_Writer);
                this.m_CytologyResultsWorkspace.CytologyUI.SetAccessionOrder(this.m_PathologistUI.AccessionOrder, this.m_PathologistUI.PanelSetOrder.ReportNo);
                this.m_CytologyResultsWorkspace.SetReportNo(this.m_PathologistUI.PanelSetOrder.ReportNo);

                YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_PathologistUI.AccessionOrder.MasterAccessionNo);
                this.m_CytologyResultsWorkspace.CytologyUI.DataLoadResult.DataLoadStatusEnum = YellowstonePathology.Business.Domain.DataLoadStatusEnum.Successful;
                switch (clientOrderCollection.Count)
                {
                case 0:
                    this.m_CytologyResultsWorkspace.CytologyUI.ClientOrder = null;
                    this.m_CytologyResultsWorkspace.CytologyUI.DataLoaded();
                    break;

                case 1:
                case 2:
                    this.m_CytologyResultsWorkspace.CytologyUI.ClientOrder = clientOrderCollection[0];
                    this.m_CytologyResultsWorkspace.CytologyUI.DataLoaded();
                    break;
                }

                this.ContentControlReview.Content = this.m_CytologyResultsWorkspace;
                this.m_CytologyResultsWorkspace.SelectAppropriatePanel();
                break;

            default:
                this.m_CytologyResultsWorkspace   = null;
                this.m_PathologistsReview         = new PathologistsReview(this.m_PathologistUI, this.m_SystemIdentity);
                this.ContentControlReview.Content = this.m_PathologistsReview;
                break;
            }
        }
Example #30
0
        public FixationDetailsCollection(YellowstonePathology.Business.Specimen.Model.SpecimenOrderCollection specimenOrderCollection, YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection)
        {
            foreach (YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder in specimenOrderCollection)
            {
                FixationDetails fixationDetails = new FixationDetails(specimenOrder);

                foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder in clientOrderCollection)
                {
                    bool found = false;
                    foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail in clientOrder.ClientOrderDetailCollection)
                    {
                        if (clientOrderDetail.ContainerId == specimenOrder.ContainerId)
                        {
                            fixationDetails.SetCollectionDate(clientOrderDetail.CollectionDate);
                            found = true;
                            break;
                        }
                    }

                    if (!found)
                    {
                        fixationDetails.SetCollectionDate(null);
                    }
                }
                this.Add(fixationDetails);
            }
        }
Example #31
0
 private void ButtonNewAccession_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_ClientOrder.Accessioned == false)
     {
         if (this.m_ClientOrder.SystemInitiatingOrder == "EPIC" && this.m_Physician == null)
         {
             MessageBox.Show("This order cannot be accessioned because the provider cannot be mapped.", "Unable to map the provider.", MessageBoxButton.OK, MessageBoxImage.Exclamation);
         }
         else if (this.m_ClientOrder.SystemInitiatingOrder == "EPIC" && this.PhysicianHasDistributionsForThisClient() == false)
         {
             MessageBox.Show("This order cannot be accessioned because the provider has no report distributions for the client.", "Unable to create report distributions.", MessageBoxButton.OK, MessageBoxImage.Exclamation);
         }
         else if (this.m_PatientRecentAccessions.RecentAccessions.Count > 0)
         {
             if (this.m_PatientRecentAccessions.ItemsExistFromPast24Hours() == true)
             {
                 this.HyperLinkCreateNewAccessionRecentAccessionsExist.Visibility = Visibility.Visible;
                 MessageBox.Show("One or more recent Accessions exist in the past 24hrs, you must acknowledge them before you can create a new accession.");
             }
             else
             {
                 if (this.CreateNewAccessionOrder != null)
                 {
                     YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrders = this.GetClientOrdersForExternalOrderIds();
                     if (clientOrders != null)
                     {
                         this.CreateNewAccessionOrder(this, new EventArgs());
                     }
                 }
             }
         }
         else
         {
             if (this.CreateNewAccessionOrder != null)
             {
                 YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrders = this.GetClientOrdersForExternalOrderIds();
                 if (clientOrders != null)
                 {
                     this.CreateNewAccessionOrder(this, new EventArgs());
                 }
             }
         }
     }
     else
     {
         MessageBox.Show("This client order is already accessioned.");
     }
 }
Example #32
0
 private void ButtonViewSelectedAccession_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_ClientOrder.Accessioned == false)
     {
         if (this.ListViewAccessionOrders.SelectedItem != null)
         {
             if (this.ViewAccessionOrder != null)
             {
                 YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrders = this.GetClientOrdersForExternalOrderIds();
                 if (clientOrders != null)
                 {
                     YellowstonePathology.Business.View.RecentAccessionView recentAccessionView    = (YellowstonePathology.Business.View.RecentAccessionView) this.ListViewAccessionOrders.SelectedItem;
                     YellowstonePathology.UI.CustomEventArgs.MasterAccessionNoReturnEventArgs args = new CustomEventArgs.MasterAccessionNoReturnEventArgs(recentAccessionView.MasterAccessionNo);
                     this.ViewAccessionOrder(this, args);
                 }
             }
         }
         else
         {
             MessageBox.Show("You must selected an Accession from the list.");
         }
     }
     else
     {
         MessageBox.Show("This client order has already been accessioned.");
     }
 }
        public YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection GetSavedOrders()
        {
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = new YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection();
            /*
            IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null);
            List<string> files = new List<string>(isoStore.GetFileNames("SavedOrders\\*"));

            foreach (string file in files)
            {
                StreamReader reader = new StreamReader(new IsolatedStorageFileStream("SavedOrders\\" + file, FileMode.Open, isoStore));
                String result = reader.ReadToEnd();
                reader.Close();
                XmlDocument xmlDocument = new XmlDocument();
                xmlDocument.LoadXml(result);

                XmlEncryptor xmlEncryptor = new XmlEncryptor();
                xmlEncryptor.Decrypt(xmlDocument);

                YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Domain.Persistence.SerializationHelper.DeserializeItem<YellowstonePathology.Business.ClientOrder.Model.ClientOrder>(xmlDocument.OuterXml);
                clientOrderCollection.Load(clientOrder);
            }
            */
            return clientOrderCollection;
        }