public override void OrderInitialTests(AccessionOrder accessionOrder, YellowstonePathology.Business.Interface.IOrderTarget orderTarget)
        {
            YellowstonePathology.Business.Test.HER2AmplificationByISH.HER2AmplificationByISHTest her2AmplificationByISHTest = new YellowstonePathology.Business.Test.HER2AmplificationByISH.HER2AmplificationByISHTest();
            YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new TestOrderInfo(her2AmplificationByISHTest, orderTarget, true);
            YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Visitor.OrderTestOrderVisitor(testOrderInfo);
            accessionOrder.TakeATrip(orderTestOrderVisitor);

            bool hasSurgical = accessionOrder.PanelSetOrderCollection.Exists(13);
            if (hasSurgical == true)
            {
                string surgicalReportNo = accessionOrder.PanelSetOrderCollection.GetSurgical().ReportNo;
                YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = (YellowstonePathology.Business.Test.AliquotOrder)orderTarget;

                YellowstonePathology.Business.Test.Model.EstrogenReceptorSemiquant er = new YellowstonePathology.Business.Test.Model.EstrogenReceptorSemiquant();
                YellowstonePathology.Business.Visitor.OrderTestVisitor orderERTestVisitor = new Visitor.OrderTestVisitor(surgicalReportNo, er, er.OrderComment, null, false, aliquotOrder, false, false, accessionOrder.TaskOrderCollection);
                accessionOrder.TakeATrip(orderERTestVisitor);

                YellowstonePathology.Business.Test.Model.ProgesteroneReceptorSemiquant pr = new YellowstonePathology.Business.Test.Model.ProgesteroneReceptorSemiquant();
                YellowstonePathology.Business.Visitor.OrderTestVisitor orderPRTestVisitor = new Visitor.OrderTestVisitor(surgicalReportNo, pr, pr.OrderComment, null, false, aliquotOrder, false, false, accessionOrder.TaskOrderCollection);
                accessionOrder.TakeATrip(orderPRTestVisitor);
            }
            else
            {
                YellowstonePathology.Business.Test.ErPrSemiQuantitative.ErPrSemiQuantitativeTest erPrSemiQuantitativeTest = new YellowstonePathology.Business.Test.ErPrSemiQuantitative.ErPrSemiQuantitativeTest();
                YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoERPR = new TestOrderInfo(erPrSemiQuantitativeTest, orderTarget, true);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorERPR = new Visitor.OrderTestOrderVisitor(testOrderInfoERPR);
                accessionOrder.TakeATrip(orderTestOrderVisitorERPR);
            }
        }
        public PanelSetOrderMultipleMyelomaIgHComplexByFish(string masterAccessionNo, string reportNo, string objectId,
			YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
			YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
			bool distribute)
            : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
        {
        }
Exemple #3
0
        public MTDohResultView(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);

            this.m_OrderingPhysician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId);
        }
        public virtual void AcceptResults(YellowstonePathology.Business.Test.HPV1618.PanelSetOrderHPV1618 panelSetOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            YellowstonePathology.Business.Test.PanelOrder panelOrder = panelSetOrder.PanelOrderCollection.GetUnacceptedPanelOrder();
            panelOrder.AcceptResults();
            panelSetOrder.Accept();
        }
        public ErPrSemiQuantitativeTestOrder(string masterAccessionNo, string reportNo, string objectId,
			YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
            YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
			bool distribute)
            : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
        {
        }
        public override void SetState(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            base.SetState(accessionOrder);

            YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTest krasStandardReflexTest = new YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTest();
            this.m_BRAFV600EKTest = new YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest();

            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_BRAFV600EKTest.PanelSetId) == true) // || this.m_AccessionOrder.PanelSetOrderCollection.Exists(krasStandardReflexTest.PanelSetId) == true)
            {
                this.m_HasPanelSetBeenOrdered = true;
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder panelSetOrderBraf = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetBrafPanelSetOrder();
                if (panelSetOrderBraf.Final == true)
                {
                    this.m_IsStepComplete = true;
                    if (panelSetOrderBraf.Result == YellowstonePathology.Business.Test.BRAFV600EK.BRAFResult.Detected)
                    {
                        this.m_Stop = true;
                        this.m_IsStepComplete = true;
                    }
                    else if (panelSetOrderBraf.Result == YellowstonePathology.Business.Test.BRAFV600EK.BRAFResult.NotDetected)
                    {
                        this.m_NextStep = new LynchMLH1ByPCRStep();
                    }
                }
            }
        }
        public KRASStandardReflexKRASWithBRAFResult(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(reportNo, accessionOrder)
        {
            this.m_Method = "DNA was isolated from cells or microdissection-enriched FFPE tissue. Tumor in FFPE must be present in at least 20% of the tissue. " +
                "Mutations were evaluated for entire KRAS exons 2 and 3 high-sensitivity Sanger sequencing which improves the lower detection limit in mutation hotspot " +
                "regions to approximately 1% abnormal DNA. This includes codons 12, 13, 14, and 61. Mutation detection outside these hotspot regions has a typical lower " +
                "detection limit of 10-15% mutated KRAS in a wild-type background. The patient’s sequence is compared to the GenBank database: AF493917. The DNA was also " +
                "evaluated for the presence of BRAF V600E/K by PCR and fragment size anaylsis. Various factors including quantity and quality of nucleic acid, sample " +
                "preparation and sample age can affect assay performance.";

            YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new BRAFV600EK.BRAFV600EKTest();
            this.m_BRAFV600EKTestOrder = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId, this.m_KRASStandardReflexTestOrder.OrderedOnId, true);

            if (this.KRASStandardTestOrder.Final == true)
            {
                this.m_KRASStandardResult = this.m_KRASStandardTestOrder.Result;
            }
            else
            {
                this.m_KRASStandardResult = KRASStandardReflexResult.PendingResult;
            }

            if (this.m_BRAFV600EKTestOrder.Final == true)
            {
                this.m_BRAFV600EKResult = this.m_BRAFV600EKTestOrder.Result;
            }
            else
            {
                this.m_BRAFV600EKResult = KRASStandardReflexResult.PendingResult;
            }
        }
        public NeoARRAYSNPCytogeneticProfileTestOrder(string masterAccessionNo, string reportNo, string objectId,
			YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
			YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
			bool distribute)
            : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
        {
        }
        public override void AcceptResults(YellowstonePathology.Business.Rules.RuleExecutionStatus ruleExecutionStatus, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, Business.User.SystemUser acceptingUser)
        {
            YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new YellowstonePathology.Business.Rules.ExecutionStatus();
            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.ReportNo);
            if (panelSetOrder.Final == true)
            {
                executionStatus.AddMessage(this.ReportNo + " is already finaled.", true);
                ruleExecutionStatus.PopulateFromLinqExecutionStatus(executionStatus);
                return;
            }

            if (this.Accepted == true)
            {
                executionStatus.AddMessage(this.ReportNo + " Acid Wash result has already been accepted.", true);
                ruleExecutionStatus.PopulateFromLinqExecutionStatus(executionStatus);
                return;
            }

            this.Accepted = true;
            this.AcceptedById = acceptingUser.UserId;
            this.AcceptedDate = DateTime.Today;
            this.AcceptedTime = DateTime.Now;

            this.Acknowledged = true;
            this.AcknowledgedById = acceptingUser.UserId;
            this.AcknowledgedDate = DateTime.Today;
            this.AcknowledgedTime = DateTime.Now;
        }
 public RUNX1RUNX1T1AML1ETOTranslocationTestOrder(string masterAccessionNo, string reportNo, string objectId,
     YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
     YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
     bool distribute)
     : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
 {
 }
        public CalreticulinMutationAnalysisResultPage(YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder testOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity)
            : base(testOrder, accessionOrder)
        {
            this.m_PanelSetOrder = testOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;

            this.m_PageHeaderText = "Calreticulin Mutation Analysis Results For: " + this.m_AccessionOrder.PatientDisplayName;

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_PanelSetOrder.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if(aliquotOrder != null) this.m_OrderedOnDescription += ": " + aliquotOrder.Label;

            this.m_CalreticulinMutationAnalysisResultCollection = new YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisResultCollection();

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        public MPNStandardReflexPage(YellowstonePathology.Business.Test.MPNStandardReflex.PanelSetOrderMPNStandardReflex testOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity)
            : base(testOrder, accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;

            YellowstonePathology.Business.Test.MPNStandardReflex.MPNStandardReflexTest panelSetMPNStandardReflex = new YellowstonePathology.Business.Test.MPNStandardReflex.MPNStandardReflexTest();
            YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest panelSetJAK2V617F = new YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest();
            YellowstonePathology.Business.Test.JAK2Exon1214.JAK2Exon1214Test panelSetJAK2Exon1214 = new YellowstonePathology.Business.Test.JAK2Exon1214.JAK2Exon1214Test();

            this.m_PanelSetOrderMPNStandardReflex = (YellowstonePathology.Business.Test.MPNStandardReflex.PanelSetOrderMPNStandardReflex)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetMPNStandardReflex.PanelSetId);
            this.m_PanelSetOrderJAK2V617F = (YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetJAK2V617F.PanelSetId);
            this.m_JAK2V617FResult = this.m_PanelSetOrderJAK2V617F.Result;

            this.m_PanelSetOrderJAK2Exon1214 = (YellowstonePathology.Business.Test.JAK2Exon1214.JAK2Exon1214TestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetJAK2Exon1214.PanelSetId);
            this.m_SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderMPNStandardReflex.OrderedOnId);

            this.m_PageHeaderText =  this.m_PanelSetOrderMPNStandardReflex.PanelSetName + " for: " + this.m_AccessionOrder.PatientDisplayName;

            InitializeComponent();

            this.DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonFinish);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
 public BlockLabelPrinter(YellowstonePathology.Business.Test.AliquotOrderCollection aliquotOrderCollection, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
 {
     this.m_BlockLabelQueue = new Queue<Business.Label.Model.HistologyBlockPaperZPLLabel>();
     foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in aliquotOrderCollection)
     {
         if (aliquotOrder.IsBlock() == true)
         {
             if (aliquotOrder.LabelType == YellowstonePathology.Business.Specimen.Model.AliquotLabelType.PaperLabel == true)
             {
                 YellowstonePathology.Business.OrderIdParser orderIdParser = new OrderIdParser(accessionOrder.MasterAccessionNo);
                 if (orderIdParser.IsLegacyMasterAccessionNo == false)
                 {
                     string initials = Business.Helper.PatientHelper.GetPatientInitials(accessionOrder.PFirstName, accessionOrder.PLastName);
                     Business.Label.Model.HistologyBlockPaperZPLLabel blockLabel = new Business.Label.Model.HistologyBlockPaperZPLLabel(aliquotOrder.AliquotOrderId, accessionOrder.PLastName, accessionOrder.PFirstName, aliquotOrder.Label, accessionOrder.MasterAccessionNo);
                     this.m_BlockLabelQueue.Enqueue(blockLabel);
                     aliquotOrder.Printed = true;
                 }
                 else
                 {
                     string reportNo = accessionOrder.PanelSetOrderCollection[0].ReportNo;
                     string initials = Business.Helper.PatientHelper.GetPatientInitials(accessionOrder.PFirstName, accessionOrder.PLastName);
                     Business.Label.Model.HistologyBlockPaperZPLLabel blockLabel = new Business.Label.Model.HistologyBlockPaperZPLLabel(aliquotOrder.AliquotOrderId, accessionOrder.PFirstName, accessionOrder.PLastName, aliquotOrder.Label, reportNo);
                     this.m_BlockLabelQueue.Enqueue(blockLabel);
                     aliquotOrder.Printed = true;
                 }
             }
         }
     }
 }
        public CuttingPage(YellowstonePathology.Business.Test.AliquotOrder aliquotOrder,
            YellowstonePathology.Business.Test.Model.TestOrder testOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.Business.Label.Model.HistologySlidePaperLabelPrinter histologySlidePaperLabelPrinter,
            YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_AliquotOrder = aliquotOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_TestOrder = testOrder;
            this.m_PageNavigator = pageNavigator;
            this.m_HistologySlidePaperLabelPrinter = histologySlidePaperLabelPrinter;

            this.m_SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByAliquotOrderId(this.m_AliquotOrder.AliquotOrderId);
            this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrderByTestOrderId(this.m_TestOrder.TestOrderId);
            this.m_PanelOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelOrderByTestOrderId(this.m_TestOrder.TestOrderId);

            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_ListBoxSlidesMouseDownTimer = new System.Windows.Threading.DispatcherTimer();
            this.m_ListBoxSlidesMouseDownTimer.Interval = new TimeSpan(0, 0, 0, 0, 750);
            this.m_ListBoxSlidesMouseDownTimer.Tick += new EventHandler(ListBoxSlidesMouseDownTimer_Tick);

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            InitializeComponent();
            DataContext = this;

            this.m_PageTimeoutTimer = new System.Windows.Threading.DispatcherTimer();
            this.m_PageTimeoutTimer.Interval = TimeSpan.FromMinutes(15);
            this.m_PageTimeoutTimer.Tick += new EventHandler(PageTimeoutTimer_Tick);
            this.m_PageTimeoutTimer.Start();

            this.Loaded += new RoutedEventHandler(CuttingPage_Loaded);
            this.Unloaded += new RoutedEventHandler(CuttingPage_Unloaded);
        }
        public KRASStandardReflexTestOrder(string masterAccessionNo, string reportNo, string objectId,
			YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
            YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
			bool distribute)
            : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
        {
        }
 public void Execute(string masterAccessionNo, int assignToId, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
 {
     this.m_MasterAccessionNo = masterAccessionNo;
     this.m_AssignedToId = assignToId;
     this.m_ExecutionStatus = executionStatus;
     this.m_Rule.Execute(executionStatus);
 }
 public TrichomonasResultPath(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
     YellowstonePathology.UI.Navigation.PageNavigator pageNavigator, System.Windows.Window window)
     : base(pageNavigator, window)
 {
     this.m_AccessionOrder = accessionOrder;
     this.m_TestOrder = (YellowstonePathology.Business.Test.Trichomonas.TrichomonasTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
 }
Exemple #18
0
        public ResultControl(YellowstonePathology.Business.Test.PanelSetOrder testOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_TestOrder = testOrder;
            this.m_ControlsNotDisabledOnFinal = new List<FrameworkElement>();

            this.m_DisableRequired = false;
            if (accessionOrder.AccessionLock.IsLockAquiredByMe == false)
            {
                this.m_DisableRequired = true;
            }
            else if(this.m_TestOrder.Final == true)
            {
                if(this.m_TestOrder.Distribute == false)
                {
                    this.m_DisableRequired = true;
                }
                else if(this.m_TestOrder.TestOrderReportDistributionCollection.HasDistributedItems())
                {
                    this.m_DisableRequired = true;
                }
            }

            this.Loaded += ResultControl_Loaded;
        }
        public ImmediateExamCorrelationDialog(YellowstonePathology.Business.Test.Surgical.IntraoperativeConsultationResult intraoperativeConsultationResult)
        {
            this.m_IntraoperativeConsultationResult = intraoperativeConsultationResult;
            this.m_CorrelationTypes = new List<string>();
            this.m_CorrelationTypes.Add("Not correlated");
            this.m_CorrelationTypes.Add("Agree");
            this.m_CorrelationTypes.Add("Defer");
            this.m_CorrelationTypes.Add("Not applicable");
            this.m_CorrelationTypes.Add("Disagree");

            this.m_DescrepancyTypes = new List<string>();
            this.m_DescrepancyTypes.Add("Gross exam/microscopic exam discrepancy");
            this.m_DescrepancyTypes.Add("Misinterpretation");
            this.m_DescrepancyTypes.Add("Specimen sampling");
            this.m_DescrepancyTypes.Add("Tissue block sampling");
            this.m_DescrepancyTypes.Add("Technical (sectioning) inadequacy");
            this.m_DescrepancyTypes.Add("Inadequate clinical information");
            this.m_DescrepancyTypes.Add("Labeling error");

            this.m_patientCareEffects = new List<string>();
            this.m_patientCareEffects.Add("No impact on patient care");
            this.m_patientCareEffects.Add("Minor or questionable impact on patient care");
            this.m_patientCareEffects.Add("Major or potentially major impact on patient care");
            InitializeComponent();
            DataContext = this;
        }
 public PSABillingDocument(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo)
     : base("Case")
 {
     this.m_AccessionOrder = accessionOrder;
     this.m_ReportNo = reportNo;
     this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);
 }
 public PDL122C3TestOrder(string masterAccessionNo, string reportNo, string objectId,
     YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
     YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
     bool distribute)
     : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
 {
     this.m_Method = "PD-L1 22C3 FDA (KEYTRUDA): " +
         "PD - L1 staining was performed utilizing the DAKO FDA - approved PD - L1, 22C3 pharmDx protocol using the Dako Automated Link 48 platform.Following incubation " +
         "with the primary monoclonal antibody to PD - L1 or the Negative Control Reagent(NCR), specimens were incubated with a Linker antibody specific to the host species " +
         "of the primary antibody, and then were incubated with a ready-to - use visualization reagent consisting of secondary antibody molecules and horseradish peroxidase " +
         "molecules coupled to a dextran polymer backbone.The enzymatic conversion of the subsequently added chromogen results in precipitation of a visible reaction product at " +
         "the site of antigen.The color of the chromogenic reaction was modified by a chromogen enhancement reagent.The specimen then was counterstained and coverslipped.PD - L1 " +
         "protein expression is determined by using Tumor Proportion Score(TPS), which is the percentage of viable tumor cells showing partial or complete membrane staining. The specimen " +
         "should be considered PD-L1 positive for KEYTRUDA (pembrolizumab) eligibility if TPS >= 50% of the viable tumor cells exhibit membrane staining at any intensity.";
     this.m_Interpretation = "PD-L1 is one of the receptors for PD-1. PD-L1 is inducibly expressed on both hematopoietic and " +
         "non-hematopoietic cells following cellspecific stimulation and plays a role in maintenance of peripheral tolerance.  PD - L1 " +
         "expression has been linked to poorer prognosis and shorter survival in some tumor types.  On - going clinical trials are " +
         "evaluating the efficacy of inhibition of PD - L1 in various tumors.";
     this.m_ReportReferences = "1. Ohaegbulam KC, Assal A, Lazar-Molnar E, et al. Human cancer immunotherapy with antibodies to the PD-1 and " +
         "PD-L1 pathway. Trends Mol Med. 2015; 21(1):24 - 33." + Environment.NewLine +
         "2. D'Incecco A, Andreozzi M, et al.PD - 1 and PD - L1 expression in molecularly selected non - small - cell lung cancer " +
         "patients.Br J Cancer. 2015; 112(1):95 - 102." + Environment.NewLine +
         "3. Massi D, Brusa D, Merelli B, et al. PD - L1 marks a subset of melanomas with a shorter overall survival and distinct genetic " +
         "and morphological characteristics. Ann Oncol. 2014; 25(12):2433 - 42." + Environment.NewLine +
         "4. Chen BJ, Chapuy B, Ouyang J, et al. PD - L1 expression is characteristic of a subset of aggressive B-cell lymphomas and " +
         "virusassociated malignancies.Clin Cancer Res. 2013; 19(13):3462 - 73." + Environment.NewLine +
         "5. Zhang Y, Kang S, Shen J, et al. Prognostic significance of programmed cell death 1(PD - 1) or PD-1 ligand 1(PD - L1) Expression " +
         "in epithelial - originated cancer: a meta-analysis.Medicine(Baltimore). 2015; 94(6):e515.";
     this.m_Comment = "This test utilizes PD-L1 antibody clone 22C3.  In general, higher levels of PD-L1 expression are associated with " +
         "better response to PD-1 antagonists.";
 }
 public PeerReview(YellowstonePathology.Business.Test.AccessionOrder accessonOrderItem)
 {
     this.m_PanelOrderItems = new List<YellowstonePathology.Business.Test.PanelOrder>();
     this.m_AccessionOrder = accessonOrderItem;
     InitializeComponent();
     this.DataContext = this;
 }
        public ContainerMatchingPage(YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
			YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail)
        {
            this.m_PageNavigator = pageNavigator;
            this.m_FixationTypeCollection = YellowstonePathology.Business.Specimen.Model.FixationType.GetFixationTypeCollection();

            if (string.IsNullOrEmpty(clientOrderDetail.SpecimenNumberMatchStatus) == true)
            {
                clientOrderDetail.SpecimenNumberMatchStatus = "Not Determined";
            }

            if (string.IsNullOrEmpty(clientOrderDetail.SpecimenDescriptionMatchStatus) == true)
            {
                clientOrderDetail.SpecimenDescriptionMatchStatus = "Not Determined";
            }

            this.m_ClientOrderMedia = new Business.ClientOrder.Model.ClientOrderMedia();
            this.m_ClientOrderMedia.SpecimenNumberMatchStatus = clientOrderDetail.SpecimenNumberMatchStatus;
            this.m_ClientOrderMedia.SpecimenDescriptionMatchStatus = clientOrderDetail.SpecimenDescriptionMatchStatus;
            this.m_ClientOrderDetail = clientOrderDetail;

            InitializeComponent();

            this.DataContext = this;
        }
        public void Build(SqlCommand cmd, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            XElement document = null;
            using (SqlConnection cn = new SqlConnection(YellowstonePathology.Business.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (XmlReader xmlReader = cmd.ExecuteXmlReader())
                {
                    if (xmlReader.Read() == true)
                    {
                        document = XElement.Load(xmlReader, LoadOptions.PreserveWhitespace);
                    }
                }
            }

            if (document != null)
            {
                YellowstonePathology.Business.Persistence.XmlPropertyWriter xmlPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyWriter(document, accessionOrder);
                xmlPropertyWriter.Write();

                BuildSpecimenOrder(accessionOrder, document);
                BuildTaskOrder(accessionOrder, document);
                BuildIcdBillingCode(accessionOrder, document);
                BuildPanelSetOrder(accessionOrder, document);
            }
        }
        public CalreticulinMutationAnalysisTestOrder(string masterAccessionNo, string reportNo, string objectId,
            YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
            YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
			bool distribute)
            : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
        {
        }
 public void SetSurgicalAuditAmendment(YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder panelSetOrder)
 {
     foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in panelSetOrder.AmendmentCollection)
     {
         panelSetOrder.SurgicalAuditCollection.SetAmendmentReference(amendment);
     }
 }
 private void BuildClient(YellowstonePathology.Business.Client.Model.Client client)
 {
     using (SqlConnection cn = new SqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
     {
         cn.Open();
         this.m_SQLCommand.Connection = cn;
         using (SqlDataReader dr = this.m_SQLCommand.ExecuteReader(CommandBehavior.KeyInfo))
         {
             while (dr.Read())
             {
                 Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(client, dr);
                 sqlDataReaderPropertyWriter.WriteProperties();
             }
             if (dr.IsClosed == false)
             {
                 dr.NextResult();
                 while (dr.Read())
                 {
                     YellowstonePathology.Business.Client.Model.ClientLocation clientLocation = new YellowstonePathology.Business.Client.Model.ClientLocation();
                     Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Persistence.SqlDataReaderPropertyWriter(clientLocation, dr);
                     sqlDataReaderPropertyWriter.WriteProperties();
                     client.ClientLocationCollection.Add(clientLocation);
                 }
             }
         }
     }
 }
        public PlasmaCellMyelomaRiskStratificationTestOrder(string masterAccessionNo, string reportNo, string objectId,
            YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
            YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
			bool distribute)
            : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
        {
        }
        public LynchSyndromeEvaluationResultPage(YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeEvaluation panelSetOrderLynchSyndromeEvaluation,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
            System.Windows.Visibility backButtonVisibility)
            : base(panelSetOrderLynchSyndromeEvaluation, accessionOrder)
        {
            this.m_PanelSetOrderLynchSyndromeEvaluation = panelSetOrderLynchSyndromeEvaluation;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_LSETypeCollection = new Business.Test.LynchSyndrome.LSETypeCollection();
            this.m_PageHeaderText = "Lynch Syndrome Evaluation Results For: " + this.m_AccessionOrder.PatientDisplayName + " (" + this.m_PanelSetOrderLynchSyndromeEvaluation.ReportNo + ")";

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderLynchSyndromeEvaluation.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_PanelSetOrderLynchSyndromeEvaluation.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null) this.m_OrderedOnDescription += ": " + aliquotOrder.Label;

            InitializeComponent();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(LynchSyndromeEvaluationResultPage_Loaded);

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        public InvasiveBreastPanel(string masterAccessionNo, string reportNo, string objectId,
			YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet,
            YellowstonePathology.Business.Interface.IOrderTarget orderTarget,
			bool distribute)
            : base(masterAccessionNo, reportNo, objectId, panelSet, orderTarget, distribute)
        {
        }