public PhysicianClientSearchPage(YellowstonePathology.Business.Interface.IOrder accessionOrder, bool showNavigationButtons)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ShowNavigationButtons = showNavigationButtons;
            this.m_PhysicianClientDistributionCollection = new Business.Client.PhysicianClientDistributionCollection();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(PhysicianClientSearchPage_Loaded);
        }
        public PhysicianClientSearchPage(YellowstonePathology.Business.Interface.IOrder accessionOrder, bool showNavigationButtons)
        {
            this.m_AccessionOrder        = accessionOrder;
            this.m_ShowNavigationButtons = showNavigationButtons;
            this.m_PhysicianClientDistributionCollection = new Business.Client.PhysicianClientDistributionCollection();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(PhysicianClientSearchPage_Loaded);
        }
        public PhysicianClientSearchPage(YellowstonePathology.Business.Interface.IOrder accessionOrder, int clientId, bool showNavigationButtons)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ShowNavigationButtons = showNavigationButtons;
            this.m_PhysicianClientDistributionCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientDistributionByClientIdV2(clientId);

            InitializeComponent();

            this.DataContext = this;
            this.listViewPhysicianClient.SelectedIndex = -1;
            this.Loaded += new RoutedEventHandler(PhysicianClientSearchPage_Loaded);
        }
        public PhysicianClientSearchPage(YellowstonePathology.Business.Interface.IOrder accessionOrder, int clientId, bool showNavigationButtons)
        {
            this.m_AccessionOrder        = accessionOrder;
            this.m_ShowNavigationButtons = showNavigationButtons;
            this.m_PhysicianClientDistributionCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientDistributionByClientIdV2(clientId);

            InitializeComponent();

            this.DataContext = this;
            this.listViewPhysicianClient.SelectedIndex = -1;
            this.Loaded += new RoutedEventHandler(PhysicianClientSearchPage_Loaded);
        }
        public void TextBoxClientSearch_KeyUp(object sender, RoutedEventArgs args)
        {
            YellowstonePathology.Business.Client.Model.PhysicianNameHelper physicianNameHelper = new Business.Client.Model.PhysicianNameHelper(this.TextBoxClientSearch.Text);
            if (physicianNameHelper.IsValid == true)
            {
                if (physicianNameHelper.IsLastNameOnly == false)
                {
                    this.m_PhysicianClientDistributionCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientDistributionByPhysicianFirstLastNameV2(physicianNameHelper.FirstName, physicianNameHelper.LastName);
                }
                else
                {
                    this.m_PhysicianClientDistributionCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientDistributionByPhysicianLastNameV2(physicianNameHelper.LastName);
                }

                this.listViewPhysicianClient.SelectedIndex = -1;
                this.NotifyPropertyChanged("PhysicianClientDistributionCollection");
            }
        }
        public override void Run()
        {
            this.m_Status = AuditStatusEnum.OK;
            this.m_Message.Clear();

            YellowstonePathology.Business.Client.PhysicianClientDistributionCollection physicianClientDistributionCollection = Gateway.ReportDistributionGateway.GetPhysicianClientDistributionCollection(this.m_AccessionOrder.PhysicianId, this.m_AccessionOrder.ClientId);
            if (physicianClientDistributionCollection.Count == 0)
            {
                this.m_Status = AuditStatusEnum.Failure;
                this.m_Message.Append("There are no distributions set for this physician client combination.");
            }
        }
Beispiel #7
0
 public virtual void HandlDistribution()
 {
     if (this.m_AccessionOrder.ClientId != 0 && this.m_AccessionOrder.PhysicianId != 0)
     {
         if (this.m_PanelSet.NeverDistribute == false)
         {
             if (this.m_PanelSetOrder.Distribute == true)
             {
                 YellowstonePathology.Business.Client.PhysicianClientDistributionCollection physicianClientDistributionCollection = YellowstonePathology.Business.Gateway.ReportDistributionGateway.GetPhysicianClientDistributionCollection(this.m_AccessionOrder.PhysicianId, this.m_AccessionOrder.ClientId);
                 physicianClientDistributionCollection.SetDistribution(this.m_PanelSetOrder, this.m_AccessionOrder);
             }
         }
     }
 }
        private void OrderTheReport()
        {
            YellowstonePathology.Business.User.SystemIdentity systemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;
            YellowstonePathology.Business.PanelSet.Model.FlowCytometry.PanelSetFlowCytometry panelSetFlowCytometry = null;

            switch (this.m_PanelSet.PanelSetId)
            {
            case 20:     //LLP
                panelSetFlowCytometry = (YellowstonePathology.Business.Test.LLP.LeukemiaLymphomaTest) this.m_PanelSet;
                break;

            case 21:     //TPP
                panelSetFlowCytometry = (YellowstonePathology.Business.Test.ThrombocytopeniaProfile.ThrombocytopeniaProfileTest) this.m_PanelSet;
                break;

            case 22:     //PAA
                panelSetFlowCytometry = (YellowstonePathology.Business.Test.PlateletAssociatedAntibodies.PlateletAssociatedAntibodiesTest) this.m_PanelSet;
                break;

            case 23:     //RTIC
                panelSetFlowCytometry = (YellowstonePathology.Business.Test.ReticulatedPlateletAnalysis.ReticulatedPlateletAnalysisTest) this.m_PanelSet;
                break;

            case 24:     //Stem Cell
                panelSetFlowCytometry = (YellowstonePathology.Business.Test.StemCellEnumeration.StemCellEnumerationTest) this.m_PanelSet;
                break;

            case 28:     //Fetal Hemoglobin
                panelSetFlowCytometry = (YellowstonePathology.Business.Test.FetalHemoglobin.FetalHemoglobinTest) this.m_PanelSet;
                break;
            }

            string reportNo         = null;
            bool   newStyleReportNo = this.m_AccessionOrder.UseNewStyleReportNo();

            if (newStyleReportNo == true)
            {
                reportNo = YellowstonePathology.Business.OrderIdParser.GetNextReportNo(this.m_AccessionOrder.PanelSetOrderCollection, panelSetFlowCytometry, this.m_AccessionOrder.MasterAccessionNo);
            }
            else
            {
                reportNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.NextReportNo(this.m_PanelSet.PanelSetId, this.m_AccessionOrder.MasterAccessionNo);
            }

            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.Test.LLP.PanelSetOrderLeukemiaLymphoma panelSetOrderLeukemiaLymphoma = new Business.Test.LLP.PanelSetOrderLeukemiaLymphoma(this.m_AccessionOrder.MasterAccessionNo, reportNo, objectId, panelSetFlowCytometry, this.m_SpecimenOrder, true);
            this.m_AccessionOrder.PanelSetOrderCollection.Add(panelSetOrderLeukemiaLymphoma);
            this.m_AddedPanelSetOrder = panelSetOrderLeukemiaLymphoma;

            if (this.m_AccessionOrder.ClientId != 0 && this.m_AccessionOrder.PhysicianId != 0)
            {
                YellowstonePathology.Business.Client.PhysicianClientDistributionCollection physicianClientDistributionCollection = YellowstonePathology.Business.Gateway.ReportDistributionGateway.GetPhysicianClientDistributionCollection(this.m_AccessionOrder.PhysicianId, this.m_AccessionOrder.ClientId);
                foreach (YellowstonePathology.Business.Client.PhysicianClientDistribution physicianClientDistribution in physicianClientDistributionCollection)
                {
                    physicianClientDistribution.SetDistribution(panelSetOrderLeukemiaLymphoma, this.m_AccessionOrder);
                }
            }
        }
Beispiel #9
0
        private void HandleUnsetDistribution()
        {
            List <YellowstonePathology.Business.MasterAccessionNo> caseList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetCasesWithUnsetDistributions();

            foreach (YellowstonePathology.Business.MasterAccessionNo masterAccessionNo in caseList)
            {
                YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo.Value, this);
                foreach (YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder in accessionOrder.PanelSetOrderCollection)
                {
                    if (panelSetOrder.Final == true && panelSetOrder.Distribute == true)
                    {
                        if (panelSetOrder.TestOrderReportDistributionCollection.Count == 0)
                        {
                            YellowstonePathology.Business.Client.PhysicianClientDistributionCollection physicianClientDistributionCollection = YellowstonePathology.Business.Gateway.ReportDistributionGateway.GetPhysicianClientDistributionCollection(accessionOrder.PhysicianId, accessionOrder.ClientId);

                            if (physicianClientDistributionCollection.Count != 0)
                            {
                                physicianClientDistributionCollection.SetDistribution(panelSetOrder, accessionOrder);
                                this.m_ReportDistributionLogEntryCollection.AddEntry("INFO", "Handle Unset Distribution", null, panelSetOrder.ReportNo, panelSetOrder.MasterAccessionNo,
                                                                                     accessionOrder.PhysicianName, accessionOrder.ClientName, "Distribution Set");
                            }
                            else
                            {
                                this.m_ReportDistributionLogEntryCollection.AddEntry("ERROR", "Handle Unset Distribution", null, panelSetOrder.ReportNo, panelSetOrder.MasterAccessionNo,
                                                                                     accessionOrder.PhysicianName, accessionOrder.ClientName, "No Distribution Defined");

                                System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage("*****@*****.**", "*****@*****.**", System.Windows.Forms.SystemInformation.UserName, "No Distribution Defined: " + panelSetOrder.ReportNo);
                                System.Net.Mail.SmtpClient  client  = new System.Net.Mail.SmtpClient("10.1.2.111");

                                Uri uri = new Uri("http://tempuri.org/");
                                System.Net.ICredentials      credentials = System.Net.CredentialCache.DefaultCredentials;
                                System.Net.NetworkCredential credential  = credentials.GetCredential(uri, "Basic");

                                client.Credentials = credential;
                                client.Send(message);
                            }
                        }
                    }
                }
            }

            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(this);
        }
        public void TextBoxClientSearch_KeyUp(object sender, RoutedEventArgs args)
        {
            YellowstonePathology.Business.Client.Model.PhysicianNameHelper physicianNameHelper = new Business.Client.Model.PhysicianNameHelper(this.TextBoxClientSearch.Text);
            if (physicianNameHelper.IsValid == true)
            {
                if (physicianNameHelper.IsLastNameOnly == false)
                {
                    this.m_PhysicianClientDistributionCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientDistributionByPhysicianFirstLastNameV2(physicianNameHelper.FirstName, physicianNameHelper.LastName);
                }
                else
                {
                    this.m_PhysicianClientDistributionCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianClientDistributionByPhysicianLastNameV2(physicianNameHelper.LastName);
                }

                this.listViewPhysicianClient.SelectedIndex = -1;
                this.NotifyPropertyChanged("PhysicianClientDistributionCollection");
            }
        }
 public void GetPhysicianClientDistributionByPhysicianLastNameTest()
 {
     YellowstonePathology.Business.Client.PhysicianClientDistributionCollection result = YellowstonePathology.Business.Gateway.PhysicianClientGatewayMongo.GetPhysicianClientDistributionByPhysicianLastName("Sc");
     Assert.IsTrue(result.Count == 94);
 }
 public void GetPhysicianClientDistributionByClientIdTest()
 {
     YellowstonePathology.Business.Client.PhysicianClientDistributionCollection result = YellowstonePathology.Business.Gateway.PhysicianClientGatewayMongo.GetPhysicianClientDistributionByClientId(280);
     Assert.IsTrue(result.Count == 9);
 }
Beispiel #13
0
 private void SetDistribution()
 {
     if (this.m_PanelSetOrder.Distribute == true)
     {
         YellowstonePathology.Business.Client.PhysicianClientDistributionCollection physicianClientDistributionCollection = YellowstonePathology.Business.Gateway.ReportDistributionGateway.GetPhysicianClientDistributionCollection(this.m_AccessionOrder.PhysicianId, this.m_AccessionOrder.ClientId);
         physicianClientDistributionCollection.SetDistribution(this.m_PanelSetOrder, this.m_AccessionOrder);
         this.NotifyPropertyChanged("");
     }
 }