public void SetResults(PanelSetOrderMLH1MethylationAnalysis panelSetOrderMLH1MethylationAnalysis)
 {
     panelSetOrderMLH1MethylationAnalysis.Result         = this.m_Result;
     panelSetOrderMLH1MethylationAnalysis.ResultCode     = this.m_ResultCode;
     panelSetOrderMLH1MethylationAnalysis.Interpretation = Interpretation;
     panelSetOrderMLH1MethylationAnalysis.Method         = Method;
     panelSetOrderMLH1MethylationAnalysis.References     = References;
 }
 public void SetResults(PanelSetOrderMLH1MethylationAnalysis panelSetOrderMLH1MethylationAnalysis)
 {
     panelSetOrderMLH1MethylationAnalysis.Result = this.m_Result;
     panelSetOrderMLH1MethylationAnalysis.ResultCode = this.m_ResultCode;
     panelSetOrderMLH1MethylationAnalysis.Interpretation = Interpretation;
     panelSetOrderMLH1MethylationAnalysis.Method = Method;
     panelSetOrderMLH1MethylationAnalysis.References = References;
 }
Example #3
0
        public override void ToXml(XElement document)
        {
            PanelSetOrderMLH1MethylationAnalysis panelSetOrder = (PanelSetOrderMLH1MethylationAnalysis)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, panelSetOrder, "MLH1 Promoter Methylation Analysis");

            this.AddNextObxElement("", document, "F");
            string result = "Result: " + panelSetOrder.Result;

            this.AddNextObxElement(result, document, "F");
            result = "  MLH1 Methylation percent: " + panelSetOrder.MLH1MethylationPercent;
            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("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");
            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextObxElement(locationPerformed, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }