Exemplo n.º 1
0
 public override void Visit(Test.PanelSetOrder panelSetOrder)
 {
     if (panelSetOrder.PanelOrderCollection.Exists(this.m_PanelOrder.PanelOrderId) == true)
     {
         this.m_PanelOrderIsRemoved = false;
     }
 }
Exemplo n.º 2
0
        private void BuildPanelSetOrder(Test.AccessionOrder accessionOrder, XElement accessionOrderElement)
        {
            YellowstonePathology.Business.PanelSet.Model.PanelSetCollection panelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll();

            List <XElement> panelSetOrderElements = (from psoc in accessionOrderElement.Elements("PanelSetOrderCollection")
                                                     select psoc).ToList <XElement>();

            foreach (XElement panelSetOrderElement in panelSetOrderElements.Elements("PanelSetOrder"))
            {
                int    panelSetId = Convert.ToInt32(panelSetOrderElement.Element("PanelSetId").Value);
                string reportNo   = panelSetOrderElement.Element("ReportNo").Value;

                YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = panelSetCollection.GetPanelSet(panelSetId);
                Test.PanelSetOrder panelSetOrder = Test.PanelSetOrderFactory.CreatePanelSetOrder(panelSet);
                YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(panelSetOrderElement, panelSetOrder);
                xmlPropertyWriter.Write();

                YellowstonePathology.Business.Builder.PanelSetOrderBuilder builder = YellowstonePathology.Business.Builder.PanelSetOrderBuilderFactory.GetBuilder(panelSetId);
                builder.Build(panelSetOrder, panelSetOrderElement);
                this.SetOrderedOnDescription(panelSetOrder, accessionOrder);
                BuildAmendment(panelSetOrder, panelSetOrderElement);
                BuildPanelSetOrderCPTCode(panelSetOrder, panelSetOrderElement);
                BuildPanelSetOrderCPTCodeBill(panelSetOrder, panelSetOrderElement);
                BuildTestOrderReportDistribution(panelSetOrder, panelSetOrderElement);
                BuildTestOrderReportDistributionLog(panelSetOrder, panelSetOrderElement);
                BuildPanelOrder(panelSetOrder, panelSetOrderElement);
                BuildSurgicalSpecific(accessionOrder, panelSetOrder, panelSetOrderElement);
                accessionOrder.PanelSetOrderCollection.Add(panelSetOrder);
            }
        }
Exemplo n.º 3
0
        private void SetOrderedOnDescription(Test.PanelSetOrder panelSetOrder)
        {
            if (panelSetOrder.OrderedOn != null)
            {
                YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId);
                if (specimenOrder != null)
                {
                    switch (panelSetOrder.OrderedOn)
                    {
                    case YellowstonePathology.Business.OrderedOn.Specimen:
                    case YellowstonePathology.Business.OrderedOn.ThinPrepFluid:
                        panelSetOrder.OrderedOnDescription = specimenOrder.Description;
                        break;

                    case YellowstonePathology.Business.OrderedOn.Aliquot:
                        YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(panelSetOrder.OrderedOnId);
                        panelSetOrder.OrderedOnDescription = specimenOrder.Description + " - " + aliquotOrder.Label;
                        break;

                    default:
                        throw new Exception("Must be Specimen or Aliquot");
                    }
                }
            }
        }
Exemplo n.º 4
0
        public override void Build(Test.PanelSetOrder panelSetOrder, System.Xml.Linq.XElement panelSetOrderElement)
        {
            List <XElement> markerElements = (from item in panelSetOrderElement.Elements("FlowMarkerCollection")
                                              select item).ToList <XElement>();

            foreach (XElement markerElement in markerElements.Elements("FlowMarker"))
            {
                Flow.FlowMarkerItem flowMarkerItem = new Flow.FlowMarkerItem();
                YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(markerElement, flowMarkerItem);
                xmlPropertyWriter.Write();
                ((Test.LLP.PanelSetOrderLeukemiaLymphoma)panelSetOrder).FlowMarkerCollection.Add(flowMarkerItem);
            }
        }
Exemplo n.º 5
0
        private void BuildPanelSetOrderCPTCodeBill(Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
        {
            List <XElement> panelSetOrderCPTCodeBillElements = (from item in panelSetOrderElement.Elements("PanelSetOrderCPTCodeBillCollection")
                                                                select item).ToList <XElement>();

            foreach (XElement panelSetOrderCPTCodeBillElement in panelSetOrderCPTCodeBillElements.Elements("PanelSetOrderCPTCodeBill"))
            {
                YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = new Test.PanelSetOrderCPTCodeBill();
                YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter        = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(panelSetOrderCPTCodeBillElement, panelSetOrderCPTCodeBill);
                xmlPropertyWriter.Write();
                panelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill);
            }
        }
Exemplo n.º 6
0
        private void BuildAmendment(Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
        {
            List <XElement> amendmentElements = (from item in panelSetOrderElement.Elements("AmendmentCollection")
                                                 select item).ToList <XElement>();

            foreach (XElement amendmentElement in amendmentElements.Elements("Amendment"))
            {
                YellowstonePathology.Business.Amendment.Model.Amendment     amendment         = new YellowstonePathology.Business.Amendment.Model.Amendment();
                YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(amendmentElement, amendment);
                xmlPropertyWriter.Write();
                panelSetOrder.AmendmentCollection.Add(amendment);
            }
        }
Exemplo n.º 7
0
 public override void Visit(Test.PanelSetOrder panelSetOrder)
 {
     foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrder.PanelOrderCollection)
     {
         if (panelOrder.TestOrderCollection.Exists(this.m_TestOrderId) == true)
         {
             this.m_PanelOrder = panelOrder;
             this.m_PanelOrder.TestOrderCollection.Remove(this.m_TestOrderId);
             if (this.m_PanelOrder.TestOrderCollection.Count == 0)
             {
                 panelSetOrder.PanelOrderCollection.Remove(this.m_PanelOrder);
             }
             break;
         }
     }
 }
        public override void Build(Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
        {
            List <XElement> reportOrderSummaryDetailElements = (from item in panelSetOrderElement.Elements("ReportOrderSummaryDetailCollection")
                                                                select item).ToList <XElement>();

            /*YellowstonePathology.Business.Test.SummaryReport.ReportOrderSummary reportOrderSummary = (YellowstonePathology.Business.Test.SummaryReport.ReportOrderSummary)panelSetOrder;
             * foreach (XElement reportOrderSummaryDetailElement in reportOrderSummaryDetailElements.Elements("ReportOrderSummaryDetail"))
             * {
             *
             *  int panelSetId = Convert.ToInt32(reportOrderSummaryDetailElement.Element("PanelSetId").Value);
             *  YellowstonePathology.Business.Test.SummaryReport.ReportOrderSummaryDetail reportOrderSummaryDetail = null;
             *  switch (panelSetId)
             *  {
             *      case 1:
             *          reportOrderSummaryDetail = new Test.SummaryReport.ReportOrderSummaryDetailJAK2();
             *          break;
             *      case 13:
             *          reportOrderSummaryDetail = new Test.SummaryReport.ReportOrderSummaryDetailSurgical();
             *          break;
             *      case 18:
             *          reportOrderSummaryDetail = new Test.SummaryReport.ReportOrderSummaryDetailBRAF();
             *          break;
             *      case 20:
             *          reportOrderSummaryDetail = new Test.SummaryReport.ReportOrderSummaryDetailLeukemiaLymphoma();
             *          break;
             *      case 30:
             *          reportOrderSummaryDetail = new Test.SummaryReport.ReportOrderSummaryDetailKRASBRAFReflex();
             *          break;
             *      case 46:
             *          reportOrderSummaryDetail = new Test.SummaryReport.ReportOrderSummaryDetailHER2DISH();
             *          break;
             *      case 102:
             *          reportOrderSummaryDetail = new Test.SummaryReport.ReportOrderSummaryDetailLynchSyndromeIHC();
             *          break;
             *      default:
             *          reportOrderSummaryDetail = new Test.SummaryReport.ReportOrderSummaryDetail();
             *          break;
             *  }
             *
             *  YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new Persistence.XmlPropertyWriter(reportOrderSummaryDetailElement, reportOrderSummaryDetail);
             *  xmlPropertyWriter.Write();
             *
             *  reportOrderSummary.ReportOrderSummaryDetailCollection.Add(reportOrderSummaryDetail);
             * }*/
        }
 public void AcceptSummary()
 {
     YellowstonePathology.Business.Test.BoneMarrowSummary.BoneMarrowSummaryTest boneMarrowSummaryTest = new Test.BoneMarrowSummary.BoneMarrowSummaryTest();;
     if (this.m_AccessionOrder.PanelSetOrderCollection.DoesPanelSetExist(boneMarrowSummaryTest.PanelSetId) == true)
     {
         List <int> exclusionList = this.m_AccessionOrder.PanelSetOrderCollection.GetBoneMarrowSummaryExclusionList();
         if (this.m_AccessionOrder.PanelSetOrderCollection.IsLastReportInSummaryToFinal(exclusionList, this.m_PanelSetOrder.PanelSetId) == true)
         {
             Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(boneMarrowSummaryTest.PanelSetId);
             if (panelSetOrder.Final == false)
             {
                 panelSetOrder.ExpectedFinalTime = DateTime.Now;
                 panelSetOrder.Accept();
                 panelSetOrder.AcceptedBy   = "Administrator";
                 panelSetOrder.AcceptedById = 5051;
             }
         }
     }
 }
Exemplo n.º 10
0
        private void BuildPanelOrder(Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
        {
            List <XElement> panelOrderElements = (from poc in panelSetOrderElement.Elements("PanelOrderCollection")
                                                  select poc).ToList <XElement>();

            YellowstonePathology.Business.Panel.Model.PanelCollection panelCollection = YellowstonePathology.Business.Panel.Model.PanelCollection.GetAll();


            foreach (XElement panelOrderElement in panelOrderElements.Elements("PanelOrder"))
            {
                int panelId = Convert.ToInt32(panelOrderElement.Element("PanelId").Value);
                YellowstonePathology.Business.Panel.Model.Panel panel = panelCollection.GetPanel(panelId);
                Test.PanelOrder panelOrder = Test.PanelOrderFactory.GetPanelOrder(panel);

                YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(panelOrderElement, panelOrder);
                xmlPropertyWriter.Write();
                BuildTestOrderRightSide(panelOrder, panelOrderElement);
                panelSetOrder.PanelOrderCollection.Add(panelOrder);
            }
        }
Exemplo n.º 11
0
 public PanelSetOrderAmendmentView(Test.AccessionOrder accessionOrder, Test.PanelSetOrder panelSetOrder)
 {
     this.m_AccessionOrder = accessionOrder;
     this.m_PanelSetOrder  = panelSetOrder;
 }
Exemplo n.º 12
0
 public override void Build(Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
 {
 }
Exemplo n.º 13
0
 public virtual void Build(Test.PanelSetOrder panelSetOrder, XElement panelSetOrderElement)
 {
 }