public MPNExtendedReflexResult(AccessionOrder accessionOrder) { this.m_AccessionOrder = accessionOrder; YellowstonePathology.Business.Test.MPNExtendedReflex.MPNExtendedReflexTest panelSetMPNExtendedReflex = new YellowstonePathology.Business.Test.MPNExtendedReflex.MPNExtendedReflexTest(); this.m_PanelSetOrderMPNExtendedReflex = (YellowstonePathology.Business.Test.MPNExtendedReflex.PanelSetOrderMPNExtendedReflex) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetMPNExtendedReflex.PanelSetId); this.m_SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(this.m_PanelSetOrderMPNExtendedReflex.OrderedOn, this.m_PanelSetOrderMPNExtendedReflex.OrderedOnId); this.m_PanelSetJAK2V617F = new YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest(); this.m_PanelSetCalreticulinMutationAnalysis = new YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTest(); this.m_PanelSetMPL = new YellowstonePathology.Business.Test.MPL.MPLTest(); this.m_PanelSetOrderJAK2V617F = (YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetJAK2V617F.PanelSetId); this.m_HasCALR = this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetCalreticulinMutationAnalysis.PanelSetId); if (this.m_HasCALR == true) { this.m_PanelSetOrderCalreticulinMutationAnalysis = (YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetCalreticulinMutationAnalysis.PanelSetId); } this.m_HasMPL = this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetMPL.PanelSetId); if (this.m_HasMPL == true) { this.m_PanelSetOrderMPL = (YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetMPL.PanelSetId); } this.m_AuditCollection = new Audit.Model.AuditCollection(); this.m_JAK2V617FResult = new MPNExtendedReflexJAK2Result(this.m_PanelSetOrderJAK2V617F); this.m_AuditCollection.Add(this.m_JAK2V617FResult); this.m_CALRResult = new MPNExtendedReflexCALRResult(this.m_AccessionOrder); this.m_AuditCollection.Add(this.m_CALRResult); this.m_MPLResult = new MPNExtendedReflexMPLResult(this.m_AccessionOrder); this.m_AuditCollection.Add(this.m_MPLResult); this.SetInterpretation(); this.SetMethod(); this.SetComment(); this.m_References = References; }
public MPNExtendedReflexResult(AccessionOrder accessionOrder) { this.m_AccessionOrder = accessionOrder; YellowstonePathology.Business.Test.MPNExtendedReflex.MPNExtendedReflexTest panelSetMPNExtendedReflex = new YellowstonePathology.Business.Test.MPNExtendedReflex.MPNExtendedReflexTest(); this.m_PanelSetOrderMPNExtendedReflex = (YellowstonePathology.Business.Test.MPNExtendedReflex.PanelSetOrderMPNExtendedReflex)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetMPNExtendedReflex.PanelSetId); this.m_SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(this.m_PanelSetOrderMPNExtendedReflex.OrderedOn, this.m_PanelSetOrderMPNExtendedReflex.OrderedOnId); this.m_PanelSetJAK2V617F = new YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest(); this.m_PanelSetCalreticulinMutationAnalysis = new YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTest(); this.m_PanelSetMPL = new YellowstonePathology.Business.Test.MPL.MPLTest(); this.m_PanelSetOrderJAK2V617F = (YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetJAK2V617F.PanelSetId); this.m_HasCALR = this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetCalreticulinMutationAnalysis.PanelSetId); if (this.m_HasCALR == true) { this.m_PanelSetOrderCalreticulinMutationAnalysis = (YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetCalreticulinMutationAnalysis.PanelSetId); } this.m_HasMPL = this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetMPL.PanelSetId); if (this.m_HasMPL == true) { this.m_PanelSetOrderMPL = (YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetMPL.PanelSetId); } this.m_AuditCollection = new Audit.Model.AuditCollection(); this.m_JAK2V617FResult = new MPNExtendedReflexJAK2Result(this.m_PanelSetOrderJAK2V617F); this.m_AuditCollection.Add(this.m_JAK2V617FResult); this.m_CALRResult = new MPNExtendedReflexCALRResult(this.m_AccessionOrder); this.m_AuditCollection.Add(this.m_CALRResult); this.m_MPLResult = new MPNExtendedReflexMPLResult(this.m_AccessionOrder); this.m_AuditCollection.Add(this.m_MPLResult); this.SetInterpretation(); this.SetMethod(); this.SetComment(); this.m_References = References; }
public MPNExtendedReflexMPLResult(YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { YellowstonePathology.Business.Test.MPL.MPLTest panelSetMPL = new YellowstonePathology.Business.Test.MPL.MPLTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetMPL.PanelSetId) == true) { YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL panelSetOrderMPL = (YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetMPL.PanelSetId); if (panelSetOrderMPL.Final == true) { this.m_Message = new StringBuilder(panelSetOrderMPL.Result); } else { this.m_Message = new StringBuilder(MPNExtendedReflexResult.PendingResult); } } else { this.m_Message = new StringBuilder(MPNExtendedReflexResult.NotOrdered); } }
public override string ToResultString(AccessionOrder accessionOrder) { StringBuilder result = new StringBuilder(); result.AppendLine("Interpretation:"); result.AppendLine(this.m_Interpretation); result.AppendLine(); result.AppendLine("Comment:"); result.AppendLine(this.m_Comment); result.AppendLine(); YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest jak2V617FTest = new YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest(); YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTest calreticulinMutationAnalysisTest = new YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTest(); YellowstonePathology.Business.Test.MPL.MPLTest mplTest = new YellowstonePathology.Business.Test.MPL.MPLTest(); if (accessionOrder.PanelSetOrderCollection.Exists(jak2V617FTest.PanelSetId) == true) { result.AppendLine("JAK2 V617F"); YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder jak2V617FTestOrder = (YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(jak2V617FTest.PanelSetId); result.AppendLine(jak2V617FTestOrder.ToResultString(accessionOrder)); result.AppendLine(); } if (accessionOrder.PanelSetOrderCollection.Exists(calreticulinMutationAnalysisTest.PanelSetId) == true) { result.AppendLine("Calreticulin Mutation Analysis"); YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder calreticulinMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(calreticulinMutationAnalysisTest.PanelSetId); result.AppendLine(calreticulinMutationAnalysisTestOrder.ToResultString(accessionOrder)); result.AppendLine(); } if (accessionOrder.PanelSetOrderCollection.Exists(mplTest.PanelSetId) == true) { result.AppendLine("MPL"); YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL mplTestOrder = (YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(mplTest.PanelSetId); result.AppendLine(mplTestOrder.ToResultString(accessionOrder)); result.AppendLine(); } return(result.ToString()); }
public MPNExtendedReflexMPLResult(YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { bool messageIsSet = false; YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest jak2V617FTest = new JAK2V617F.JAK2V617FTest(); YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder panelSetOrderJAK2V617F = (YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(jak2V617FTest.PanelSetId); if (panelSetOrderJAK2V617F.Final == true) { YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FDetectedResult jak2V617DetectedResult = new YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FDetectedResult(); if (panelSetOrderJAK2V617F.ResultCode == jak2V617DetectedResult.ResultCode) { this.m_Message = new StringBuilder(MPNExtendedReflexResult.NotClinicallyIndicated); messageIsSet = true; } } if (messageIsSet == false) { YellowstonePathology.Business.Test.MPL.MPLTest panelSetMPL = new YellowstonePathology.Business.Test.MPL.MPLTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetMPL.PanelSetId) == true) { YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL panelSetOrderMPL = (YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetMPL.PanelSetId); if (panelSetOrderMPL.Final == true) { this.m_Message = new StringBuilder(panelSetOrderMPL.Result); } else { this.m_Message = new StringBuilder(MPNExtendedReflexResult.PendingResult); } } else { YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTest panelSetCalreticulinMutationAnalysis = new YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTest(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetCalreticulinMutationAnalysis.PanelSetId) == true) { YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder reportOrderCalreticulinMutationAnalysis = (YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetCalreticulinMutationAnalysis.PanelSetId); if (reportOrderCalreticulinMutationAnalysis.Final == true) { YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisResultNotDetected calreticulinMutationAnalysisResultNotDetected = new YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisResultNotDetected(); YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisResultDetected calreticulinMutationAnalysisResultDetected = new YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisResultDetected(); if (reportOrderCalreticulinMutationAnalysis.ResultCode == calreticulinMutationAnalysisResultNotDetected.ResultCode) { this.m_ActionRequired = true; this.m_Message = new StringBuilder(MPNExtendedReflexResult.PleaseOrder); } else if (reportOrderCalreticulinMutationAnalysis.ResultCode == calreticulinMutationAnalysisResultDetected.ResultCode) { this.m_Message = new StringBuilder(MPNExtendedReflexResult.NotClinicallyIndicated); } } else { this.m_Message = new StringBuilder(MPNExtendedReflexResult.NotOrdered); } } else { this.m_Message = new StringBuilder(MPNExtendedReflexResult.UnknownState); } } } }
public override string ToResultString(AccessionOrder accessionOrder) { StringBuilder result = new StringBuilder(); result.AppendLine("Interpretation:"); result.AppendLine(this.m_Interpretation); result.AppendLine(); result.AppendLine("Comment:"); result.AppendLine(this.m_Comment); result.AppendLine(); YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest jak2V617FTest = new YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTest(); YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTest calreticulinMutationAnalysisTest = new YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTest(); YellowstonePathology.Business.Test.MPL.MPLTest mplTest = new YellowstonePathology.Business.Test.MPL.MPLTest(); if(accessionOrder.PanelSetOrderCollection.Exists(jak2V617FTest.PanelSetId) == true) { result.AppendLine("JAK2 V617F"); YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder jak2V617FTestOrder = (YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(jak2V617FTest.PanelSetId); result.AppendLine(jak2V617FTestOrder.ToResultString(accessionOrder)); result.AppendLine(); } if (accessionOrder.PanelSetOrderCollection.Exists(calreticulinMutationAnalysisTest.PanelSetId) == true) { result.AppendLine("Calreticulin Mutation Analysis"); YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder calreticulinMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.CalreticulinMutationAnalysis.CalreticulinMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(calreticulinMutationAnalysisTest.PanelSetId); result.AppendLine(calreticulinMutationAnalysisTestOrder.ToResultString(accessionOrder)); result.AppendLine(); } if (accessionOrder.PanelSetOrderCollection.Exists(mplTest.PanelSetId) == true) { result.AppendLine("MPL"); YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL mplTestOrder = (YellowstonePathology.Business.Test.MPL.PanelSetOrderMPL)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(mplTest.PanelSetId); result.AppendLine(mplTestOrder.ToResultString(accessionOrder)); result.AppendLine(); } return result.ToString(); }