public static void SetHRASNotDetected(RASRAFPanelTestOrder testOrder) { testOrder.HRASAlternateNucleotideMutationName = RASRAFPanelResult.NAResult; testOrder.HRASConsequence = RASRAFPanelResult.NAResult; testOrder.HRASMutationName = RASRAFPanelResult.NAResult; testOrder.HRASPredictedEffectOnProtein = RASRAFPanelResult.NAResult; }
public static void SetBRAFNotDetected(RASRAFPanelTestOrder testOrder) { testOrder.BRAFAlternateNucleotideMutationName = RASRAFPanelResult.NAResult; testOrder.BRAFConsequence = RASRAFPanelResult.NAResult; testOrder.BRAFMutationName = RASRAFPanelResult.NAResult; testOrder.BRAFPredictedEffectOnProtein = RASRAFPanelResult.NAResult; }
public static void SetHRASDetected(RASRAFPanelTestOrder testOrder) { if(testOrder.HRASAlternateNucleotideMutationName == RASRAFPanelResult.NAResult) testOrder.HRASAlternateNucleotideMutationName = null; if(testOrder.HRASConsequence == RASRAFPanelResult.NAResult) testOrder.HRASConsequence = null; if(testOrder.HRASMutationName == RASRAFPanelResult.NAResult) testOrder.HRASMutationName = null; if(testOrder.HRASPredictedEffectOnProtein == RASRAFPanelResult.NAResult) testOrder.HRASPredictedEffectOnProtein = null; }
public override void Render() { RASRAFPanelTestOrder testOrder = (RASRAFPanelTestOrder)this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\RASRAFPanel.2.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendmentSection = new YellowstonePathology.Business.Document.AmendmentSection(); amendmentSection.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); this.ReplaceText("braf_result", testOrder.BRAFResult); this.ReplaceText("kras_result", testOrder.KRASResult); this.ReplaceText("nras_result", testOrder.NRASResult); this.ReplaceText("hras_result", testOrder.HRASResult); this.ReplaceText("braf_mn", testOrder.BRAFMutationName); this.ReplaceText("kras_mn", testOrder.KRASMutationName); this.ReplaceText("nras_mn", testOrder.NRASMutationName); this.ReplaceText("hras_mn", testOrder.HRASMutationName); this.ReplaceText("braf_anmn", testOrder.BRAFAlternateNucleotideMutationName); this.ReplaceText("kras_anmn", testOrder.KRASAlternateNucleotideMutationName); this.ReplaceText("nras_anmn", testOrder.NRASAlternateNucleotideMutationName); this.ReplaceText("hras_anmn", testOrder.HRASAlternateNucleotideMutationName); this.ReplaceText("braf_cons", testOrder.BRAFConsequence); this.ReplaceText("kras_cons", testOrder.KRASConsequence); this.ReplaceText("nras_cons", testOrder.NRASConsequence); this.ReplaceText("hras_cons", testOrder.HRASConsequence); this.ReplaceText("braf_peop", testOrder.BRAFPredictedEffectOnProtein); this.ReplaceText("kras_peop", testOrder.KRASPredictedEffectOnProtein); this.ReplaceText("nras_peop", testOrder.NRASPredictedEffectOnProtein); this.ReplaceText("hras_peop", testOrder.HRASPredictedEffectOnProtein); this.ReplaceText("report_interpretation", testOrder.Interpretation); this.ReplaceText("report_comment", testOrder.Comment); this.ReplaceText("report_method", testOrder.Method); this.ReplaceText("report_references", testOrder.ReportReferences); this.ReplaceText("report_disclaimer", testOrder.ReportDisclaimer); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(this.m_PanelSetOrder.OrderedOn, this.m_PanelSetOrder.OrderedOnId); base.ReplaceText("specimen_description", specimenOrder.Description); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); this.ReplaceText("referencelab_finaldate", BaseData.GetShortDateTimeString(this.m_PanelSetOrder.ReferenceLabFinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature); this.SaveReport(); }
public override void SetResults(RASRAFPanelTestOrder testOrder, ResultCollection resultCollection) { StringBuilder comment = new StringBuilder(this.m_Comment); comment = comment.Replace("[NOTDETECTEDMUTATIONLIST]", resultCollection.GetNotDetectedListString()); comment = comment.Replace("[DETECTEDMUTATIONLIST]", resultCollection.GetDetectedListString()); testOrder.Comment = comment.ToString(); base.SetResults(testOrder, resultCollection); }
public ResultCollection(RASRAFPanelTestOrder testOrder) { if (testOrder.BRAFResult == RASRAFPanelResult.DetectedResult) m_DetectedMutations.Add(RASRAFPanelResult.BRAFAbbreviation); else m_NotDetectedMutations.Add(RASRAFPanelResult.BRAFAbbreviation); if (testOrder.KRASResult == RASRAFPanelResult.DetectedResult) m_DetectedMutations.Add(RASRAFPanelResult.KRASAbbreviation); else m_NotDetectedMutations.Add(RASRAFPanelResult.KRASAbbreviation); if (testOrder.NRASResult == RASRAFPanelResult.DetectedResult) m_DetectedMutations.Add(RASRAFPanelResult.NRASAbbreviation); else m_NotDetectedMutations.Add(RASRAFPanelResult.NRASAbbreviation); if (testOrder.HRASResult == RASRAFPanelResult.DetectedResult) m_DetectedMutations.Add(RASRAFPanelResult.HRASAbbreviation); else m_NotDetectedMutations.Add(RASRAFPanelResult.HRASAbbreviation); }
public virtual void SetResults(RASRAFPanelTestOrder testOrder, ResultCollection resultCollection) { StringBuilder interpretation = new StringBuilder(); interpretation.AppendLine(this.m_InterpretationFirstLine); interpretation.AppendLine(); interpretation.Append(this.m_InterpretationBody); interpretation = interpretation.Replace("[NOTDETECTEDMUTATIONLIST]", resultCollection.GetNotDetectedListString()); interpretation = interpretation.Replace("[DETECTEDMUTATIONLIST]", resultCollection.GetDetectedListString()); testOrder.Interpretation = interpretation.ToString(); StringBuilder disclaimer = new StringBuilder(); disclaimer.AppendLine(testOrder.GetLocationPerformedComment()); disclaimer.Append(m_TestDevelopment); testOrder.ReportDisclaimer = disclaimer.ToString(); }
public static void SetHRASDetected(RASRAFPanelTestOrder testOrder) { if (testOrder.HRASAlternateNucleotideMutationName == RASRAFPanelResult.NAResult) { testOrder.HRASAlternateNucleotideMutationName = null; } if (testOrder.HRASConsequence == RASRAFPanelResult.NAResult) { testOrder.HRASConsequence = null; } if (testOrder.HRASMutationName == RASRAFPanelResult.NAResult) { testOrder.HRASMutationName = null; } if (testOrder.HRASPredictedEffectOnProtein == RASRAFPanelResult.NAResult) { testOrder.HRASPredictedEffectOnProtein = null; } }
public ResultCollection(RASRAFPanelTestOrder testOrder) { if (testOrder.BRAFResult == RASRAFPanelResult.DetectedResult) { m_DetectedMutations.Add(RASRAFPanelResult.BRAFAbbreviation); } else { m_NotDetectedMutations.Add(RASRAFPanelResult.BRAFAbbreviation); } if (testOrder.KRASResult == RASRAFPanelResult.DetectedResult) { m_DetectedMutations.Add(RASRAFPanelResult.KRASAbbreviation); } else { m_NotDetectedMutations.Add(RASRAFPanelResult.KRASAbbreviation); } if (testOrder.NRASResult == RASRAFPanelResult.DetectedResult) { m_DetectedMutations.Add(RASRAFPanelResult.NRASAbbreviation); } else { m_NotDetectedMutations.Add(RASRAFPanelResult.NRASAbbreviation); } if (testOrder.HRASResult == RASRAFPanelResult.DetectedResult) { m_DetectedMutations.Add(RASRAFPanelResult.HRASAbbreviation); } else { m_NotDetectedMutations.Add(RASRAFPanelResult.HRASAbbreviation); } }
public override void ToXml(XElement document) { RASRAFPanelTestOrder panelSetOrder = (RASRAFPanelTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddHeader(document, panelSetOrder, "RAS/RAF Panel"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("BRAF Result: " + panelSetOrder.BRAFResult, document, "F"); if (panelSetOrder.BRAFResult.ToUpper() == "DETECTED") { this.AddNextObxElement("BRAF Mutation Name: " + panelSetOrder.BRAFMutationName, document, "F"); this.AddNextObxElement("BRAF Alternate Nucleotide Mutation Name: " + panelSetOrder.BRAFAlternateNucleotideMutationName, document, "F"); this.AddNextObxElement("BRAF Consequence: " + panelSetOrder.BRAFConsequence, document, "F"); this.AddNextObxElement("BRAF Predicted Effect On Protein: " + panelSetOrder.BRAFPredictedEffectOnProtein, document, "F"); } this.AddNextObxElement("", document, "F"); this.AddNextObxElement("KRAS Result: " + panelSetOrder.KRASResult, document, "F"); if (panelSetOrder.KRASResult.ToUpper() == "DETECTED") { this.AddNextObxElement("KRAS Mutation Name: " + panelSetOrder.KRASMutationName, document, "F"); this.AddNextObxElement("KRAS Alternate Nucleotide Mutation Name: " + panelSetOrder.KRASAlternateNucleotideMutationName, document, "F"); this.AddNextObxElement("KRAS Consequence: " + panelSetOrder.KRASConsequence, document, "F"); this.AddNextObxElement("KRAS Predicted Effect On Protein: " + panelSetOrder.KRASPredictedEffectOnProtein, document, "F"); } this.AddNextObxElement("", document, "F"); this.AddNextObxElement("NRAS Result: " + panelSetOrder.NRASResult, document, "F"); if (panelSetOrder.NRASResult.ToUpper() == "DETECTED") { this.AddNextObxElement("NRAS Mutation Name: " + panelSetOrder.NRASMutationName, document, "F"); this.AddNextObxElement("NRAS Alternate Nucleotide Mutation Name: " + panelSetOrder.NRASAlternateNucleotideMutationName, document, "F"); this.AddNextObxElement("NRAS Consequence: " + panelSetOrder.NRASConsequence, document, "F"); this.AddNextObxElement("NRAS Predicted Effect On Protein: " + panelSetOrder.NRASPredictedEffectOnProtein, document, "F"); } this.AddNextObxElement("HRAS Result: " + panelSetOrder.HRASResult, document, "F"); if (panelSetOrder.KRASResult.ToUpper() == "DETECTED") { this.AddNextObxElement("HRAS Mutation Name: " + panelSetOrder.HRASMutationName, document, "F"); this.AddNextObxElement("HRAS Alternate Nucleotide Mutation Name: " + panelSetOrder.HRASAlternateNucleotideMutationName, document, "F"); this.AddNextObxElement("HRAS Consequence: " + panelSetOrder.HRASConsequence, document, "F"); this.AddNextObxElement("HRAS Predicted Effect On Protein: " + panelSetOrder.HRASPredictedEffectOnProtein, document, "F"); } this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Comment: " + panelSetOrder.Comment, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Pathologist: " + panelSetOrder.ReferenceLabSignature, document, "F"); if (panelSetOrder.FinalTime.HasValue == true) { this.AddNextObxElement("E-signed " + panelSetOrder.ReferenceLabFinalDate.Value.ToString("MM/dd/yyyy HH:mm"), document, "F"); } this.AddNextObxElement("", document, "F"); this.AddAmendments(document); this.AddNextObxElement("Specimen Information:", document, "F"); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId); this.AddNextObxElement("Specimen Identification: " + specimenOrder.Description, document, "F"); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.AddNextObxElement("Collection Date/Time: " + collectionDateTimeString, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Interpretation:", document, "F"); this.HandleLongString(panelSetOrder.Interpretation, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Method:", document, "F"); this.HandleLongString(panelSetOrder.Method, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("References:", document, "F"); this.HandleLongString(panelSetOrder.ReportReferences, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString(panelSetOrder.ReportDisclaimer, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); }
public override void SetResults(RASRAFPanelTestOrder testOrder, ResultCollection resultCollection) { testOrder.Comment = this.m_Comment; base.SetResults(testOrder, resultCollection); }