public override void ToXml(XElement document) { ChromosomeAnalysisTestOrder panelSetOrder = (ChromosomeAnalysisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddHeader(document, panelSetOrder, "Cytogenetic Chromosome Analysis"); this.AddNextObxElement("", document, "F"); string result = "Result: " + panelSetOrder.Result; this.AddNextObxElement(result, document, "F"); result = " Karyotype : " + panelSetOrder.Karyotype; this.AddNextObxElement(result, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Pathologist: " + panelSetOrder.Signature, document, "F"); if (panelSetOrder.FinalTime.HasValue == true) { this.AddNextObxElement("E-signed " + panelSetOrder.FinalTime.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("Comment:", document, "F"); this.HandleLongString(panelSetOrder.Comment, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Test Details:", document, "F"); this.AddNextObxElement(" Metaphases Counted : " + panelSetOrder.MetaphasesCounted, document, "F"); this.AddNextObxElement(" Metaphases Analyzed : " + panelSetOrder.MetaphasesAnalyzed, document, "F"); this.AddNextObxElement(" Metaphases Karyotyped : " + panelSetOrder.MetaphasesKaryotyped, document, "F"); this.AddNextObxElement(" Culture Type : " + panelSetOrder.CultureType, document, "F"); this.AddNextObxElement(" Banding Technique : " + panelSetOrder.BandingTechnique, document, "F"); this.AddNextObxElement(" Banding Resolution : " + panelSetOrder.BandingResolution, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement(panelSetOrder.ASR, document, "F"); this.AddNextObxElement("", document, "F"); string locationPerformed = panelSetOrder.GetLocationPerformedComment(); this.AddNextObxElement(locationPerformed, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); }
public override void SetPreviousResults(PanelSetOrder pso) { ChromosomeAnalysisTestOrder panelSetOrder = (ChromosomeAnalysisTestOrder)pso; panelSetOrder.Result = this.m_Result; panelSetOrder.Interpretation = this.m_Interpretation; panelSetOrder.Karyotype = this.Karyotype; panelSetOrder.Comment = this.m_Comment; panelSetOrder.CultureType = this.m_CultureType; panelSetOrder.ASR = this.m_ASR; base.SetPreviousResults(pso); }
public override void Render() { ChromosomeAnalysisTestOrder panelSetOrderChromosomeAnalysis = (ChromosomeAnalysisTestOrder)this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\ChromosomeAnalysis.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); this.ReplaceText("report_result", panelSetOrderChromosomeAnalysis.Result); this.ReplaceText("report_karyotype", panelSetOrderChromosomeAnalysis.Karyotype); this.ReplaceText("report_interpretation", panelSetOrderChromosomeAnalysis.Interpretation); this.ReplaceText("report_comment", panelSetOrderChromosomeAnalysis.Comment); this.ReplaceText("metaphases_counted", panelSetOrderChromosomeAnalysis.MetaphasesCounted); this.ReplaceText("metaphases_analyzed", panelSetOrderChromosomeAnalysis.MetaphasesAnalyzed); this.ReplaceText("metaphases_karyotyped", panelSetOrderChromosomeAnalysis.MetaphasesKaryotyped); this.ReplaceText("culture_type", panelSetOrderChromosomeAnalysis.CultureType); this.ReplaceText("banding_technique", panelSetOrderChromosomeAnalysis.BandingTechnique); this.ReplaceText("banding_resolution", panelSetOrderChromosomeAnalysis.BandingResolution); this.ReplaceText("asr_comment", panelSetOrderChromosomeAnalysis.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", this.m_PanelSetOrder.ReferenceLabSignature); this.SaveReport(); }