public override void Render() { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\StemCellCD34Enumeration.1.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); YellowstonePathology.Business.Test.StemCellCD34Enumeration.StemCellCD34EnumerationTestOrder stemCellCD34EnumerationTestOrder = (StemCellCD34EnumerationTestOrder)this.m_PanelSetOrder; YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(stemCellCD34EnumerationTestOrder.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendment = new YellowstonePathology.Business.Document.AmendmentSection(); amendment.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(stemCellCD34EnumerationTestOrder.OrderedOn, stemCellCD34EnumerationTestOrder.OrderedOnId); this.SetXmlNodeData("specimen_description", specimenOrder.Description); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); this.SetXmlNodeData("cd34_percentage", stemCellCD34EnumerationTestOrder.CD34Percentage); this.SetXmlNodeData("cd34_absolute", stemCellCD34EnumerationTestOrder.CD34Absolute); this.SetXmlNodeData("wbccount_result", stemCellCD34EnumerationTestOrder.WBCCount); this.SetXmlNodeData("wbc_absolute", stemCellCD34EnumerationTestOrder.WBCAbsolute); this.SetXmlNodeData("cd34_viability", stemCellCD34EnumerationTestOrder.CD34Viability); this.SetXmlNodeData("report_method", stemCellCD34EnumerationTestOrder.Method); this.SaveReport(); }
public override void Render() { TrichomonasTestOrder reportOrderTrichomonas = (TrichomonasTestOrder)this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\Trichomonas.1.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(reportOrderTrichomonas.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendmentSection = new YellowstonePathology.Business.Document.AmendmentSection(); amendmentSection.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, false); this.SetXmlNodeData("test_result", reportOrderTrichomonas.Result); this.SetXmlNodeData("test_method", reportOrderTrichomonas.Method); this.SetXmlNodeData("final_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate)); 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.SaveReport(); }
public override void Render() { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\ReticulatedPlateletAnalysisV2.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); ReticulatedPlateletAnalysisV2TestOrder testOrder = (ReticulatedPlateletAnalysisV2TestOrder)this.m_PanelSetOrder; YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(testOrder.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendment = new YellowstonePathology.Business.Document.AmendmentSection(); amendment.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(testOrder.OrderedOn, testOrder.OrderedOnId); this.ReplaceText("specimen_description", specimenOrder.Description); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.ReplaceText("date_time_collected", collectionDateTimeString); this.ReplaceText("test_result", testOrder.Result); this.ReplaceText("result_reference", testOrder.ResultReference); this.ReplaceText("report_method", testOrder.Method); this.ReplaceText("asr_comment", testOrder.ASRComment); this.SaveReport(); }
public override void Render() { YellowstonePathology.Business.Test.TestCancelled.TestCancelledTestOrder reportOrderTestCancelled = (YellowstonePathology.Business.Test.TestCancelled.TestCancelledTestOrder) this.m_PanelSetOrder; this.m_PanelSetOrder = reportOrderTestCancelled; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\TestCancelled.1.xml"; base.OpenTemplate(); base.SetDemographicsV2(); string testName = "Test Canceled"; if (string.IsNullOrEmpty(reportOrderTestCancelled.CancelledTestName) == false) { testName = reportOrderTestCancelled.CancelledTestName; } this.ReplaceText("test_canceled_name", testName); this.ReplaceText("test_cancelled_comment", reportOrderTestCancelled.Comment); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature); string finalDate = YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate) + " - " + YellowstonePathology.Business.BaseData.GetMillitaryTimeString(this.m_PanelSetOrder.FinalTime); this.SetXmlNodeData("final_date", finalDate); 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.SaveReport(); }
public override void Render() { ZAP70LymphoidPanelTestOrder panelSetOrderZap70 = (ZAP70LymphoidPanelTestOrder)this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\Zap70.2.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(this.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("report_result", panelSetOrderZap70.Result); this.SetXMLNodeParagraphData("report_comment", panelSetOrderZap70.Comment); this.ReplaceText("report_lymphocytes", panelSetOrderZap70.Lymphocytes); this.ReplaceText("report_lymphocytes", panelSetOrderZap70.Lymphocytes); this.ReplaceText("report_population_analysis", panelSetOrderZap70.PopulationAnalysis); this.ReplaceText("report_markers_performed", panelSetOrderZap70.MarkersPerformed); this.SetXMLNodeParagraphData("report_references", panelSetOrderZap70.ReportReferences); 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("report_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature); this.SaveReport(); }
public override void Render() { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\FetalHemoglobin.2.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); YellowstonePathology.Business.Test.FetalHemoglobin.FetalHemoglobinTestOrder testOrder = (YellowstonePathology.Business.Test.FetalHemoglobin.FetalHemoglobinTestOrder) this.m_PanelSetOrder; YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(testOrder.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendment = new YellowstonePathology.Business.Document.AmendmentSection(); amendment.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(testOrder.OrderedOn, testOrder.OrderedOnId); this.SetXmlNodeData("specimen_description", specimenOrder.Description); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); this.SetXmlNodeData("test_result", testOrder.HbFResult); this.SetXmlNodeData("reference_range", testOrder.ReferenceRange); this.SetXmlNodeData("test_sensitivity", "Sensitivity for Hb-F is " + testOrder.HbFResult); this.SetXmlNodeData("report_comment", testOrder.ReportComment); this.SetXmlNodeData("asr_comment", testOrder.ASRComment); this.SaveReport(); }
public override void Render() { HoldForFlowTestOrder holdForFlowTestOrder = (HoldForFlowTestOrder)this.m_PanelSetOrder; this.m_PanelSetOrder = holdForFlowTestOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\HoldForFlow.3.xml"; base.OpenTemplate(); base.SetDemographicsV2(); string title = this.m_PanelSetOrder.PanelSetName; this.ReplaceText("report_title", title); this.ReplaceText("report_comment", holdForFlowTestOrder.Comment); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature); string finalDate = YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate) + " - " + YellowstonePathology.Business.BaseData.GetMillitaryTimeString(this.m_PanelSetOrder.FinalTime); this.SetXmlNodeData("final_date", finalDate); 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.SaveReport(); }
public override void Render() { PanelSetOrderMultipleFISHProbePanel panelSetOrderMultipleFISHProbePanel = (PanelSetOrderMultipleFISHProbePanel)this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\MultipleFISHProbePanel.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("report_result", panelSetOrderMultipleFISHProbePanel.Result); this.ReplaceText("report_interpretation", panelSetOrderMultipleFISHProbePanel.Interpretation); this.ReplaceText("probe_set_detail", panelSetOrderMultipleFISHProbePanel.ProbeSetDetail); this.ReplaceText("nuclei_scored", panelSetOrderMultipleFISHProbePanel.NucleiScored); 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("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature); this.SaveReport(); }
public ResultControl(YellowstonePathology.Business.Test.PanelSetOrder testOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { this.m_TestOrder = testOrder; this.m_ControlsNotDisabledOnFinal = new List <FrameworkElement>(); this.m_ControlsNotEnabledOnUnFinal = new List <FrameworkElement>(); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = accessionOrder.AmendmentCollection.GetAmendmentsForReport(testOrder.ReportNo); this.m_DisableRequired = false; if (accessionOrder.AccessionLock.IsLockAquiredByMe == false) { this.m_DisableRequired = true; } else if (this.m_TestOrder.Final == true) { if (amendmentCollection.HasOpenAmendment() == true) { this.m_DisableRequired = false; } else 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 override void Render() { NRASMutationAnalysisTestOrder testOrder = (YellowstonePathology.Business.Test.NRASMutationAnalysis.NRASMutationAnalysisTestOrder) this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\NRASMutationAnalysis.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("report_result", testOrder.Result); this.ReplaceText("report_interpretation", testOrder.Interpretation); this.ReplaceText("report_method", testOrder.Method); this.ReplaceText("report_references", testOrder.ReportReferences); this.ReplaceText("test_developed_comment", testOrder.TestDevelopment); 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("report_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate)); this.ReplaceText("report_time", YellowstonePathology.Business.Helper.DateTimeExtensions.ShortTimeStringFromNullable(this.m_PanelSetOrder.ReferenceLabFinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature); this.SaveReport(); }
public override void Render() { NeoARRAYSNPCytogeneticProfileTestOrder testOrder = (YellowstonePathology.Business.Test.NeoARRAYSNPCytogeneticProfile.NeoARRAYSNPCytogeneticProfileTestOrder) this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\NeoARRAYSNPCytogeneticProfile.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("report_result", testOrder.Result); this.ReplaceText("report_copy_number_variant", testOrder.CopyNumberVariant); this.ReplaceText("report_uniparental_disomy", testOrder.UniparentalDisomy); this.ReplaceText("report_microarray_results", testOrder.MicroarrayResults); this.ReplaceText("report_interpretation", testOrder.Interpretation); this.ReplaceText("report_method", testOrder.Method); this.ReplaceText("report_references", testOrder.ReportReferences); 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("report_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature); this.SaveReport(); }
public override void Render() { AndrogenReceptorTestOrder testOrder = (AndrogenReceptorTestOrder)this.m_PanelSetOrder; if (testOrder.ResultedOnSurgical == true) { return; } this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\AndrogenReceptor.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("report_result", testOrder.Result); this.ReplaceText("report_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature); this.SaveReport(); }
public override void Render() { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\EGFRMutationAnalysis.1.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); YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder) this.m_PanelSetOrder; YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(egfrMutationAnalysisTestOrder.OrderedOnId); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(egfrMutationAnalysisTestOrder.OrderedOn, egfrMutationAnalysisTestOrder.OrderedOnId); string specimenDescription = specimenOrder.Description + ", Block " + aliquotOrder.Label; this.ReplaceText("specimen_description", specimenDescription); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); this.SetXMLNodeParagraphData("report_result", egfrMutationAnalysisTestOrder.Result); this.SetXMLNodeParagraphData("report_comment", egfrMutationAnalysisTestOrder.Comment); this.SetXMLNodeParagraphData("report_interpretation", egfrMutationAnalysisTestOrder.Interpretation); this.ReplaceText("report_indication", egfrMutationAnalysisTestOrder.Indication); this.ReplaceText("tumor_nuclei_percentage", egfrMutationAnalysisTestOrder.TumorNucleiPercentage); if (egfrMutationAnalysisTestOrder.MicrodissectionPerformed == true) { this.ReplaceText("microdissection_performed", "Yes"); } else { this.ReplaceText("microdissection_performed", "No"); } this.SetXMLNodeParagraphData("report_method", egfrMutationAnalysisTestOrder.Method); this.SetXMLNodeParagraphData("report_references", egfrMutationAnalysisTestOrder.ReportReferences); this.SetXMLNodeParagraphData("report_disclaimer", egfrMutationAnalysisTestOrder.ReportDisclaimer); if (string.IsNullOrEmpty(this.m_PanelSetOrder.ReferenceLabSignature) == false) { this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature); } else { this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature); } this.SaveReport(); }
public void SetData(Table moneyBoxTable, YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection, bool hasSignature, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_MoneyBoxTable = moneyBoxTable; this.m_AmendmentCollection = amendmentCollection; m_HasSignature = hasSignature; m_ExecutionStatus = executionStatus; this.m_Rule.Execute(m_ExecutionStatus); }
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 Render() { ThinPrepPap.ThinPrepPapTest thinPrepPapTest = new ThinPrepPap.ThinPrepPapTest(); bool hasPap = this.m_AccessionOrder.PanelSetOrderCollection.Exists(thinPrepPapTest.PanelSetId); if (hasPap) { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\WomensHealthProfile.1.xml"; this.OpenTemplate(); this.SetCurrentPapResults(); } else { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\WomensHealthProfileNoPap.1.xml"; this.OpenTemplate(); } this.SetCurrentMolecularResults(); this.SetPriorResults(); WomensHealthProfileTestOrder womensHealthProfileTestOrder = (WomensHealthProfileTestOrder)this.m_PanelSetOrder; WomensHealthProfileResult womensHealthProfileResult = new WomensHealthProfileResult(this.m_AccessionOrder); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(womensHealthProfileTestOrder.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendmentSection = new YellowstonePathology.Business.Document.AmendmentSection(); amendmentSection.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(womensHealthProfileTestOrder.OrderedOnId); this.SetXmlNodeData("specimen_source", specimenOrder.SpecimenSource); string collectionDateTimeString = specimenOrder.GetCollectionDateTimeString(); this.SetXmlNodeData("collection_date_time", collectionDateTimeString); this.SetXmlNodeData("specimen_description", specimenOrder.Description); if (this.m_PanelSetOrder.FinalTime.HasValue == true) { string finalDateTime = YellowstonePathology.Business.Document.CaseReportV2.ReportDateTimeFormat(this.m_PanelSetOrder.FinalTime.Value); this.SetXmlNodeData("final_date", finalDateTime); } else { this.SetXmlNodeData("final_date", string.Empty); } string clinicalHistory = this.m_AccessionOrder.ClinicalHistory; this.SetXMLNodeParagraphData("clinical_history", clinicalHistory); this.SetXMLNodeParagraphData("report_method", womensHealthProfileResult.Method); this.SetXMLNodeParagraphData("report_references", womensHealthProfileResult.References); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); this.SaveReport(); }
public override void Render() { YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder panelSetOrder = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder) this.m_PanelSetOrder; base.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\BRAFV600EK.3.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); string brafResult = panelSetOrder.Result; this.SetXmlNodeData("report_result", brafResult); this.SetXmlNodeData("final_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate)); 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); if (amendmentCollection.Count == 0) { this.SetXmlNodeData("test_result_header", "Test Result"); } else // If an amendment exists show as corrected { this.SetXmlNodeData("test_result_header", "Corrected Test Result"); } if (string.IsNullOrEmpty(panelSetOrder.Comment) == false) { this.ReplaceText("result_comment", panelSetOrder.Comment); } else { this.DeleteRow("result_comment"); } this.ReplaceText("report_interpretation", panelSetOrder.Interpretation); this.ReplaceText("report_indication_comment", panelSetOrder.IndicationComment); this.ReplaceText("tumor_nuclei_percent", panelSetOrder.TumorNucleiPercentage); this.ReplaceText("report_method", panelSetOrder.Method); this.ReplaceText("report_reference", panelSetOrder.ReportReferences); this.ReplaceText("report_disclaimer", panelSetOrder.ReportDisclaimer); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(this.m_PanelSetOrder.OrderedOn, this.m_PanelSetOrder.OrderedOnId); this.ReplaceText("specimen_description", specimenOrder.Description); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); this.ReplaceText("report_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate)); this.SetXmlNodeData("pathologist_signature", m_PanelSetOrder.Signature); this.SaveReport(); }
private void InformRevisedDiagnosis(XElement document, YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection) { foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { if (amendment.Final == true && (amendment.RevisedDiagnosis == true || amendment.ShowPreviousDiagnosis == true)) { this.AddNextObxElementBeaker("Revised Diagnosis", "Report reflects revised diagnosis.", document, "F"); break; } } }
public void Send(YellowstonePathology.Business.Rules.MethodResult result) { this.m_Document = new XElement("HL7Message"); this.m_ObxCount = 1; WYDOHClient client = new WYDOHClient(); OruR01 messageType = new OruR01(); WYDOHMSHView msh = new WYDOHMSHView(client, messageType); msh.ToXml(this.m_Document); WYDOHPIDView pid = new WYDOHPIDView(this.m_AccessionOrder.PatientId, this.m_AccessionOrder.PLastName, this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PBirthdate, this.m_AccessionOrder.PSex, this.m_AccessionOrder.SvhAccount, this.m_AccessionOrder.PSSN, this.m_AccessionOrder.PAddress1, this.m_AccessionOrder.PAddress2, this.m_AccessionOrder.PCity, this.m_AccessionOrder.PState, this.m_AccessionOrder.PZipCode); pid.ToXml(this.m_Document); Business.Client.Model.Client clnt = Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_AccessionOrder.ClientId); WYDOHORCView orc = new WYDOHORCView(this.m_AccessionOrder.ExternalOrderId, clnt, this.m_OrderingPhysician, this.m_PanelSetOrder.ReportNo, OrderStatusEnum.Complete, this.m_AccessionOrder.SystemInitiatingOrder); orc.ToXml(this.m_Document); YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetOrder.ReportNo); ResultStatus resultStatus = ResultStatusEnum.Final; YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo); if (amendmentCollection.Count != 0) { resultStatus = ResultStatusEnum.Correction; } WYDOHOBRView obr = new WYDOHOBRView(this.m_AccessionOrder, this.m_PanelSetOrder.ReportNo, this.m_OrderingPhysician); obr.ToXml(this.m_Document); WYDOHOBXView obx = new WYDOHOBXView(this.m_AccessionOrder, this.m_PanelSetOrder.ReportNo, this.m_ObxCount); obx.ToXml(this.m_Document); this.m_ObxCount = obx.ObxCount; YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(this.m_PanelSetOrder.ReportNo); string serverFileName = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser) + "\\" + this.m_PanelSetOrder.ReportNo + ".Mirth.xml"; string mirthFileName = mirthFileName = @"\\YPIIInterface1\ChannelData\Outgoing\WYCDC\" + this.m_PanelSetOrder.ReportNo + ".Mirth.xml"; System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(serverFileName, false, new ASCIIEncoding()); this.m_Document.Save(streamWriter); streamWriter.Close(); System.IO.File.Copy(serverFileName, mirthFileName, true); result.Success = true; result.Message = "An HL7 message was created and sent to the interface."; }
public override void Render() { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\ROS1ByFISH.2.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo); Document.AmendmentSection amendmentSection = new Document.AmendmentSection(); amendmentSection.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder) this.m_PanelSetOrder; YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(ros1ByFISHTestOrder.OrderedOnId); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(ros1ByFISHTestOrder.OrderedOn, ros1ByFISHTestOrder.OrderedOnId); string specimenDescription = specimenOrder.Description; if (aliquotOrder != null) { specimenDescription += ", Block " + aliquotOrder.Label; } this.ReplaceText("specimen_description", specimenDescription); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); this.SetXMLNodeParagraphData("report_result", ros1ByFISHTestOrder.Result); this.SetXMLNodeParagraphData("report_interpretation", ros1ByFISHTestOrder.Interpretation); this.SetXMLNodeParagraphData("report_references", ros1ByFISHTestOrder.ReportReferences); this.SetXMLNodeParagraphData("reference_range", ros1ByFISHTestOrder.ReferenceRange); this.SetXMLNodeParagraphData("nuclei_scored", ros1ByFISHTestOrder.NucleiScored); this.ReplaceText("probeset_details", ros1ByFISHTestOrder.ProbeSetDetail); this.SetXMLNodeParagraphData("report_method", ros1ByFISHTestOrder.Method); this.SetXMLNodeParagraphData("tumor_nuclei_percentage", ros1ByFISHTestOrder.TumorNucleiPercentage); if (string.IsNullOrEmpty(this.m_PanelSetOrder.ReferenceLabSignature) == false) { this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature); this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate)); } else { this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature); this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate)); } this.ReplaceText("report_disclaimer", ros1ByFISHTestOrder.ReportDisclaimer); this.SaveReport(); }
private XElement CreateDocument() { XElement document = new XElement("HL7Message"); this.m_ObxCount = 1; EPICHl7Client client = new EPICHl7Client(); OruR01 messageType = new OruR01(); string locationCode = "YPIIBILLINGS"; if (this.m_AccessionOrder.SvhMedicalRecord.StartsWith("A") == true) { locationCode = "SVHNPATH"; } EPICMshView msh = new EPICMshView(client, messageType, locationCode); msh.ToXml(document); EpicPidView pid = new EpicPidView(this.m_AccessionOrder.SvhMedicalRecord, this.m_AccessionOrder.PLastName, this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PBirthdate, this.m_AccessionOrder.PSex, this.m_AccessionOrder.SvhAccount, this.m_AccessionOrder.PSSN); pid.ToXml(document); EPICOrcView orc = new EPICOrcView(this.m_PanelSetOrder.ExternalOrderId, this.m_OrderingPhysician, this.m_AccessionOrder.MasterAccessionNo, OrderStatusEnum.Complete, this.m_AccessionOrder.SystemInitiatingOrder, this.m_SendUnsolicited); orc.ToXml(document); YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetOrder.ReportNo); string resultStatus = ResultStatusEnum.Final.Value; YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(panelSetOrder.ReportNo); if (amendmentCollection.Count != 0) { resultStatus = ResultStatusEnum.Correction.Value; } YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection universalServiceIdCollection = YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection.GetAll(); YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService = universalServiceIdCollection.GetByUniversalServiceId(panelSetOrder.UniversalServiceId); EPICBeakerObrView obr = new EPICBeakerObrView(this.m_PanelSetOrder.ExternalOrderId, this.m_AccessionOrder.MasterAccessionNo, this.m_PanelSetOrder.ReportNo, this.m_AccessionOrder.SpecimenOrderCollection[0].CollectionDate, this.m_AccessionOrder.SpecimenOrderCollection[0].CollectionTime, this.m_AccessionOrder.AccessionDateTime, panelSetOrder.FinalTime, this.m_OrderingPhysician, resultStatus, universalService, this.m_SendUnsolicited, this.m_AccessionOrder.SystemInitiatingOrder); obr.ToXml(document); EPICObxView epicObxView = EPICObxViewFactory.GetObxView(panelSetOrder.PanelSetId, this.m_AccessionOrder, this.m_PanelSetOrder.ReportNo, this.m_ObxCount, true); epicObxView.ToXml(document); this.m_ObxCount = epicObxView.ObxCount; return(document); }
private void InformRevisedDiagnosis(XElement document, YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection) { foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { if (amendment.Final == true && (amendment.RevisedDiagnosis == true || amendment.ShowPreviousDiagnosis == true)) { this.AddNextNteElement("Showing Revised Diagnosis", document); this.AddBlankNteElement(document); break; } } }
public void ToXml(XElement document) { YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder panelSetOrderSurgical = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); int observationSubId = 1; foreach (YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen in panelSetOrderSurgical.SurgicalSpecimenCollection) { XElement natureOfSpecimenObx3 = this.CreateObx3Segement("22633-2", "Nature of Specimen", "LN"); string natureOfSpecimen = this.StripWhiteSpace(surgicalSpecimen.SpecimenOrder.Description); this.AddNextObxElement(document, natureOfSpecimenObx3, observationSubId, natureOfSpecimen, "F"); XElement finalDiagnosisObx3 = this.CreateObx3Segement("22637-3", "Final Diagnosis", "LN"); string finalDiagnosis = this.StripWhiteSpace(surgicalSpecimen.Diagnosis); this.AddNextObxElement(document, finalDiagnosisObx3, observationSubId, finalDiagnosis, "F"); observationSubId += 1; } observationSubId += 1; XElement grossObx03Element = this.CreateObx3Segement("22634-0", "Gross Pathology", "LN"); string grossDescription = this.StripWhiteSpace(panelSetOrderSurgical.GrossX); this.AddNextObxElement(document, grossObx03Element, observationSubId, grossDescription, "F"); observationSubId += 1; XElement microObx03Element = this.CreateObx3Segement("22635-7", "Micro Pathology", "LN"); string microDescription = this.StripWhiteSpace(panelSetOrderSurgical.MicroscopicX); this.AddNextObxElement(document, microObx03Element, observationSubId, microDescription, "F"); observationSubId += 1; XElement clinicalInfoObx03Element = this.CreateObx3Segement("22636-5", "Clinical History", "LN"); string clinicalInfo = this.StripWhiteSpace(this.m_AccessionOrder.ClinicalHistory); this.AddNextObxElement(document, clinicalInfoObx03Element, observationSubId, clinicalInfo, "F"); observationSubId += 1; XElement commentObx03Element = this.CreateObx3Segement("22638-1", "Comment Section", "LN"); string comment = this.StripWhiteSpace(panelSetOrderSurgical.Comment); this.AddNextObxElement(document, commentObx03Element, observationSubId, comment, "F"); observationSubId += 1; YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(panelSetOrderSurgical.ReportNo); foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { XElement supplemental03Element = this.CreateObx3Segement("22639-9", "SupplementalReports/Addendum", "LN"); string supplemental = this.StripWhiteSpace(amendment.Text); this.AddNextObxElement(document, supplemental03Element, observationSubId, supplemental, "F"); } }
public void Build(MySqlCommand cmd, YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { this.m_PanelSetOrderReportNumbers = new List <string>(); this.m_PanelOrderIds = new List <string>(); this.m_AccessionOrder = accessionOrder; using (MySqlConnection cn = new MySqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString)) { cn.Open(); cmd.Connection = cn; using (MySqlDataReader dr = cmd.ExecuteReader(CommandBehavior.KeyInfo)) { HandleDataSets(dr); } } this.m_AccessionOrder.AccessionLock.MasterAccessionNo = accessionOrder.MasterAccessionNo; this.m_AccessionOrder.PanelSetOrderCollection.RemoveDeleted(this.m_PanelSetOrderReportNumbers); this.m_AccessionOrder.PanelSetOrderCollection = Test.PanelSetOrderCollection.Sort(this.m_AccessionOrder.PanelSetOrderCollection); this.RemoveDeletedPanelOrders(); if (this.m_TestOrderDataTable != null) { this.HandleSlideOrderTestOrder(this.m_TestOrderDataTable); this.HandleAliquotOrderTestOrder(this.m_TestOrderDataTable); } if (this.m_AliquotOrderDataTable != null) { this.HandleTestOrderAliquotOrder(this.m_AliquotOrderDataTable); } if (this.m_SlideOrderDataTable != null) { this.HandleTestOrderSlideOrderCollection(this.m_SlideOrderDataTable); } if (this.m_AccessionOrder.PanelSetOrderCollection.HasSurgical() == true) { Test.Surgical.SurgicalTestOrder surgicalTestOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical(); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(surgicalTestOrder.ReportNo); this.SetSurgicalAuditAmendment(surgicalTestOrder, amendmentCollection); this.SetSurgicalSpecimenSpecimenOrder(surgicalTestOrder); this.SetSurgicalSpecimenAuditSpecimenOrder(surgicalTestOrder); this.SetSurgicalSpecimenOrderItemCollection(surgicalTestOrder); this.SetTypingStainCollection(surgicalTestOrder); } foreach (Test.PanelSetOrder panelSetOrder in this.m_AccessionOrder.PanelSetOrderCollection) { SetOrderedOnDescription(panelSetOrder); } }
public override void AddAmendments(XElement document) { SurgicalTestOrder panelSetOrder = (SurgicalTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(panelSetOrder.ReportNo); foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { if (amendment.Final == true) { this.AddNextObxElement(amendment.AmendmentType + ": " + amendment.AmendmentDate.Value.ToString("MM/dd/yyyy"), document, "C"); this.HandleLongString(amendment.Text, document, "C"); if (amendment.RequirePathologistSignature == true) { this.AddNextObxElement("Signature: " + amendment.PathologistSignature, document, "C"); this.AddNextObxElement("E-signed " + amendment.FinalTime.Value.ToString("MM/dd/yyyy HH:mm"), document, "C"); } this.AddNextObxElement("", document, "C"); if (amendment.RevisedDiagnosis == true || amendment.ShowPreviousDiagnosis == true) { string amendmentId = amendment.AmendmentId; foreach (YellowstonePathology.Business.Test.Surgical.SurgicalAudit surgicalAudit in panelSetOrder.SurgicalAuditCollection) { if (surgicalAudit.AmendmentId == amendmentId) { string finalDateP = YellowstonePathology.Business.BaseData.GetShortDateString(panelSetOrder.FinalDate); finalDateP += " " + YellowstonePathology.Business.BaseData.GetMillitaryTimeString(panelSetOrder.FinalTime); string previousDiagnosisHeader = "Previous diagnosis on " + finalDateP; this.AddNextObxElement(previousDiagnosisHeader, document, "C"); foreach (YellowstonePathology.Business.Test.Surgical.SurgicalSpecimenAudit specimenAudit in surgicalAudit.SurgicalSpecimenAuditCollection) { if (specimenAudit.AmendmentId == amendmentId) { string diagnosisIDP = specimenAudit.DiagnosisId + "."; string specimenTypeP = specimenAudit.SpecimenOrder.Description + ":"; this.AddNextObxElement(diagnosisIDP + specimenTypeP, document, "C"); this.HandleLongString(specimenAudit.Diagnosis, document, "C"); } } YellowstonePathology.Business.User.SystemUser pathologistUser = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetSystemUserById(surgicalAudit.PathologistId); this.AddNextObxElement(pathologistUser.Signature, document, "C"); this.AddNextObxElement("", document, "F"); } } } } } }
public override void Render() { CysticFibrosisTestOrder panelSetOrderCF = (CysticFibrosisTestOrder)this.m_PanelSetOrder; if (panelSetOrderCF.TemplateId == 1) { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\CysticFibrosisCarrierScreening.2.xml"; } else if (panelSetOrderCF.TemplateId == 2) { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\CysticFibrosisCarrierScreeningUnknownEthnicGroup.2.xml"; } else { return; } base.OpenTemplate(); base.SetDemographicsV2(); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrder.OrderedOnId); this.SetXmlNodeData("specimen_description", specimenOrder.Description); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); this.SetReportDistribution(); this.SetCaseHistory(); base.ReplaceText("report_result", panelSetOrderCF.Result); base.ReplaceText("mutations_detected", panelSetOrderCF.MutationsDetected); base.ReplaceText("report_comment", panelSetOrderCF.Comment); YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroupCollection cysticFibrosisEthnicGroupCollection = new CysticFibrosisEthnicGroupCollection(); YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup = cysticFibrosisEthnicGroupCollection.GetCysticFibrosisEthnicGroup(panelSetOrderCF.EthnicGroupId); base.ReplaceText("report_ethnic_group", cysticFibrosisEthnicGroup.EthnicGroupName); base.ReplaceText("report_interpretation", panelSetOrderCF.Interpretation); base.ReplaceText("mutations_tested", panelSetOrderCF.MutationsTested); base.ReplaceText("report_method", panelSetOrderCF.Method); base.ReplaceText("report_references", panelSetOrderCF.ReportReferences); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendment = new YellowstonePathology.Business.Document.AmendmentSection(); amendment.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); this.SaveReport(); }
public virtual void RunPathologistEnableRules() { this.SetSignatureButtonProperties(); foreach (YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder in this.m_AccessionOrder.PanelSetOrderCollection) { YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(panelSetOrder.ReportNo); foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { YellowstonePathology.Business.Rules.Surgical.SetAmendmentSignatureText setAmendmentSignatureText = new Business.Rules.Surgical.SetAmendmentSignatureText(); setAmendmentSignatureText.Execute(this.m_AccessionOrder, this.m_PanelSetOrder, amendment); } } }
public override void Render() { CalreticulinMutationAnalysisTestOrder reportOrderCalreticulinMutationAnalysis = (CalreticulinMutationAnalysisTestOrder)this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\CalreticulinMutationAnalysis.3.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); string reportResult = reportOrderCalreticulinMutationAnalysis.Result; if (string.IsNullOrEmpty(reportResult)) { reportResult = string.Empty; } if (reportOrderCalreticulinMutationAnalysis.Result == "Detected") { this.ReplaceText("report_mutations", reportOrderCalreticulinMutationAnalysis.Mutations); } else { this.DeleteRow("report_mutations"); } this.ReplaceText("report_result", reportResult); this.ReplaceText("report_interpretation", reportOrderCalreticulinMutationAnalysis.Interpretation); this.ReplaceText("report_method", reportOrderCalreticulinMutationAnalysis.Method); this.ReplaceText("report_references", reportOrderCalreticulinMutationAnalysis.ReportReferences); this.ReplaceText("test_asr", reportOrderCalreticulinMutationAnalysis.ASR); 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("report_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate)); this.ReplaceText("pathologist_signature", reportOrderCalreticulinMutationAnalysis.ReferenceLabSignature); this.SaveReport(); }
public void HasOpenAmendment() { YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo); foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { if (amendment.Final == false) { this.m_FieldEnabler.IsProtectedEnabled = true; this.m_FieldEnabler.IsUnprotectedEnabled = true; this.m_FieldEnabler.IsSignatureButtonEnabled = true; break; } } }
public override void Render() { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\CSF3RMutationAnalysis.2.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo); Document.AmendmentSection amendmentSection = new Document.AmendmentSection(); amendmentSection.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); CSF3RMutationAnalysisTestOrder testOrder = (CSF3RMutationAnalysisTestOrder)this.m_PanelSetOrder; YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(testOrder.OrderedOnId); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(testOrder.OrderedOn, testOrder.OrderedOnId); string specimenDescription = specimenOrder.Description; if (aliquotOrder != null) { specimenDescription += ", Block " + aliquotOrder.Label; } this.ReplaceText("specimen_description", specimenDescription); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); if (string.IsNullOrEmpty(testOrder.Comment) == true) { this.DeleteRow("report_comment"); } else { this.SetXMLNodeParagraphData("report_comment", testOrder.Comment); } this.SetXMLNodeParagraphData("report_result", testOrder.Result); this.SetXMLNodeParagraphData("report_interpretation", testOrder.Interpretation); this.SetXMLNodeParagraphData("report_method", testOrder.Method); this.SetXMLNodeParagraphData("report_references", testOrder.ReportReferences); this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate)); this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature); this.ReplaceText("report_disclaimer", testOrder.ASR); this.SaveReport(); }
public void SetData(Table moneyBoxTable, YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection, bool hasSignature, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { this.m_MoneyBoxTable = moneyBoxTable; this.m_AmendmentCollection = amendmentCollection; m_HasSignature = hasSignature; m_ExecutionStatus = executionStatus; this.m_Rule.Execute(m_ExecutionStatus); }
public PanelSetOrder(string masterAccessionNo, string reportNo, string objectId, YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet, YellowstonePathology.Business.Interface.IOrderTarget orderTarget, bool distribute) { this.MasterAccessionNo = masterAccessionNo; this.ReportNo = reportNo; this.m_ObjectId = objectId; this.m_OrderedById = Business.User.SystemIdentity.Instance.User.UserId; this.m_OrderedByInitials = Business.User.SystemIdentity.Instance.User.Initials; this.OrderDate = DateTime.Today; this.OrderTime = DateTime.Now; this.m_CaseType = panelSet.CaseType; if (orderTarget != null) { this.m_OrderedOnId = orderTarget.GetId(); this.m_OrderedOn = orderTarget.GetOrderedOnType(); } this.m_PanelSetId = panelSet.PanelSetId; this.m_PanelSetName = panelSet.PanelSetName; if (panelSet.HasTechnicalComponent == true) { this.m_HasTechnicalComponent = true; this.m_TechnicalComponentFacilityId = panelSet.TechnicalComponentFacility.FacilityId; this.m_TechnicalComponentBillingFacilityId = panelSet.TechnicalComponentBillingFacility.FacilityId; } if (panelSet.HasProfessionalComponent == true) { this.m_HasProfessionalComponent = true; this.m_ProfessionalComponentFacilityId = panelSet.ProfessionalComponentFacility.FacilityId; this.m_ProfessionalComponentBillingFacilityId = panelSet.ProfessionalComponentBillingFacility.FacilityId; } this.m_ExpectedFinalTime = YellowstonePathology.Business.Helper.DateTimeExtensions.GetExpectedFinalTime(this.m_OrderTime.Value, panelSet.ExpectedDuration); this.m_IsBillable = panelSet.IsBillable; this.m_ResultDocumentSource = panelSet.ResultDocumentSource.ToString(); this.m_Distribute = distribute; if (panelSet.NeverDistribute == true) { this.m_Distribute = false; } this.m_PanelOrderCollection = new PanelOrderCollection(); this.m_PanelSetOrderCPTCodeCollection = new PanelSetOrderCPTCodeCollection(); this.m_PanelSetOrderCPTCodeBillCollection = new PanelSetOrderCPTCodeBillCollection(); this.m_TestOrderReportDistributionCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection(); this.m_TestOrderReportDistributionLogCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionLogCollection(); this.m_AmendmentCollection = new YellowstonePathology.Business.Amendment.Model.AmendmentCollection(); YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService = panelSet.UniversalServiceIdCollection.GetByApplicationName(YellowstonePathology.Business.ClientOrder.Model.UniversalServiceApplicationNameEnum.EPIC); this.m_UniversalServiceId = universalService.UniversalServiceId; }
public PanelSetOrder() { this.m_PanelOrderCollection = new PanelOrderCollection(); this.m_PanelSetOrderCPTCodeCollection = new PanelSetOrderCPTCodeCollection(); this.m_PanelSetOrderCPTCodeBillCollection = new PanelSetOrderCPTCodeBillCollection(); this.m_TestOrderReportDistributionCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection(); this.m_TestOrderReportDistributionLogCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionLogCollection(); this.m_AmendmentCollection = new YellowstonePathology.Business.Amendment.Model.AmendmentCollection(); }
public PanelSetOrder(string masterAccessionNo, string reportNo, string objectId, YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet, bool distribute) { this.MasterAccessionNo = masterAccessionNo; this.ReportNo = reportNo; this.m_ObjectId = objectId; this.m_OrderedById = Business.User.SystemIdentity.Instance.User.UserId; this.m_OrderedByInitials = Business.User.SystemIdentity.Instance.User.Initials; this.OrderDate = DateTime.Today; this.OrderTime = DateTime.Now; this.m_ResearchTesting = panelSet.ResearchTesting; this.m_PanelSetId = panelSet.PanelSetId; this.m_CaseType = panelSet.CaseType; this.m_PanelSetName = panelSet.PanelSetName; this.m_HasTechnicalComponent = false; if (panelSet.HasTechnicalComponent == true) { this.m_HasTechnicalComponent = true; this.m_TechnicalComponentFacilityId = panelSet.TechnicalComponentFacility.FacilityId; this.m_TechnicalComponentBillingFacilityId = panelSet.TechnicalComponentBillingFacility.FacilityId; } this.m_HasProfessionalComponent = false; if (panelSet.HasProfessionalComponent == true) { this.m_HasProfessionalComponent = true; this.m_ProfessionalComponentFacilityId = panelSet.ProfessionalComponentFacility.FacilityId; this.m_ProfessionalComponentBillingFacilityId = panelSet.ProfessionalComponentBillingFacility.FacilityId; } this.m_ResultDocumentSource = panelSet.ResultDocumentSource.ToString(); this.m_IsBillable = panelSet.IsBillable; this.m_ExpectedFinalTime = YellowstonePathology.Business.Helper.DateTimeExtensions.GetEndDateConsideringWeekends(this.m_OrderTime.Value, panelSet.ExpectedDuration); this.m_Distribute = distribute; if (panelSet.NeverDistribute == true) { this.m_Distribute = false; } this.m_PanelOrderCollection = new PanelOrderCollection(); this.m_PanelSetOrderCPTCodeCollection = new PanelSetOrderCPTCodeCollection(); this.m_PanelSetOrderCPTCodeBillCollection = new PanelSetOrderCPTCodeBillCollection(); this.m_TestOrderReportDistributionCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection(); this.m_TestOrderReportDistributionLogCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionLogCollection(); this.m_AmendmentCollection = new YellowstonePathology.Business.Amendment.Model.AmendmentCollection(); YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService = panelSet.UniversalServiceIdCollection.GetByApplicationName(YellowstonePathology.Business.ClientOrder.Model.UniversalServiceApplicationNameEnum.EPIC); this.m_UniversalServiceId = universalService.UniversalServiceId; this.m_Final = false; this.m_Accepted = false; this.m_HoldBilling = false; this.m_Audited = false; this.m_Published = false; this.m_PublishNotificationSent = false; this.m_NoCharge = false; this.m_Ordered14DaysPostDischarge = false; this.m_IsPosted = false; this.m_IsDelayed = false; this.m_HoldForPeerReview = false; this.m_HoldDistribution = false; this.m_AdditionalTestingEmailSent = false; }