Exemple #1
0
        public override void OrderInitialTests(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Interface.IOrderTarget orderTarget)
        {
            YellowstonePathology.Business.Test.PDL122C3.PDL122C3Test pdl122C3Test = new PDL122C3.PDL122C3Test();
            if (accessionOrder.PanelSetOrderCollection.Exists(pdl122C3Test.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoPDL122C3         = new TestOrderInfo(pdl122C3Test, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorPDL122C3 = new Visitor.OrderTestOrderVisitor(testOrderInfoPDL122C3);
                accessionOrder.TakeATrip(orderTestOrderVisitorPDL122C3);
            }

            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(egfrMutationAnalysisTest.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoEGFR         = new TestOrderInfo(egfrMutationAnalysisTest, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorEGFR = new Visitor.OrderTestOrderVisitor(testOrderInfoEGFR);
                accessionOrder.TakeATrip(orderTestOrderVisitorEGFR);
            }

            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTest ros1ByfishTest = new ROS1ByFISH.ROS1ByFISHTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(ros1ByfishTest.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoRos1         = new TestOrderInfo(ros1ByfishTest, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorRos1 = new Visitor.OrderTestOrderVisitor(testOrderInfoRos1);
                accessionOrder.TakeATrip(orderTestOrderVisitorRos1);
            }

            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest alkTest = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(alkTest.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoALK         = new TestOrderInfo(alkTest, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorALK = new Visitor.OrderTestOrderVisitor(testOrderInfoALK);
                accessionOrder.TakeATrip(orderTestOrderVisitorALK);
            }

            YellowstonePathology.Business.Test.BRAFMutationAnalysis.BRAFMutationAnalysisTest brafTest = new BRAFMutationAnalysis.BRAFMutationAnalysisTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(brafTest.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoBRAF         = new TestOrderInfo(brafTest, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorBRAF = new Visitor.OrderTestOrderVisitor(testOrderInfoBRAF);
                accessionOrder.TakeATrip(orderTestOrderVisitorBRAF);
            }
        }
Exemple #2
0
        public TaskOrder(string taskOrderId, string objectId, string masterAccessionNo, string reportNo, Task task, YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
                         string panelSetName, string acknowledgementType)
        {
            this.m_TaskOrderId         = taskOrderId;
            this.m_ObjectId            = objectId;
            this.m_MasterAccessionNo   = masterAccessionNo;
            this.m_ReportNo            = reportNo;
            this.m_TaskName            = task.TaskName;
            this.m_OrderedById         = YellowstonePathology.Business.User.SystemIdentity.Instance.User.UserId;
            this.m_OrderedByInitials   = YellowstonePathology.Business.User.SystemIdentity.Instance.User.Initials;
            this.m_TargetId            = orderTarget.GetId();
            this.m_TargetType          = orderTarget.GetOrderedOnType();
            this.m_TargetDescription   = orderTarget.GetDescription();
            this.m_OrderDate           = DateTime.Now;
            this.m_PanelSetName        = panelSetName;
            this.m_AcknowledgementType = acknowledgementType;

            this.m_TaskOrderDetailCollection = new TaskOrderDetailCollection();
        }
 public override void OrderInitialTests(Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Interface.IOrderTarget orderTarget)
 {
     YellowstonePathology.Business.Test.KRASStandard.KRASStandardTest krasStandardTest = new KRASStandard.KRASStandardTest();
     if (accessionOrder.PanelSetOrderCollection.Exists(krasStandardTest.PanelSetId, orderTarget.GetId(), true) == false)
     {
         YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfo         = new Business.Test.TestOrderInfo(krasStandardTest, orderTarget, true);
         YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo);
         accessionOrder.TakeATrip(orderTestOrderVisitor);
     }
 }