public override void ToXml(XElement document)
        {
            BRAFV600EKTestOrder panelSetOrder = (BRAFV600EKTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, panelSetOrder, "BRAF V600E Mutation Analysis");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Result: " + panelSetOrder.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("Indication: " + panelSetOrder.Indication, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Interpretation: ", document, "F");
            this.HandleLongString(panelSetOrder.Interpretation, document, "F");
            this.AddNextObxElement("", document, "F");

            if (string.IsNullOrEmpty(panelSetOrder.TumorNucleiPercentage) == false)
            {
                this.AddNextObxElement("Tumor Nuclei Percent: ", document, "F");
                this.HandleLongString(panelSetOrder.TumorNucleiPercentage, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            this.AddNextObxElement("Specimen Description:", document, "F");
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId);
            this.AddNextObxElement(specimenOrder.Description, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");

            string method = panelSetOrder.Method;

            this.HandleLongString("Method: " + method, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("References: ", document, "F");
            this.HandleLongString(panelSetOrder.ReportReferences, document, "F");
            this.AddNextObxElement("", document, "F");

            string asr = panelSetOrder.ReportDisclaimer;

            this.HandleLongString(asr, document, "F");

            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextObxElement(locationPerformed, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }
        public override void ToXml(XElement document)
        {
            BRAFV600EKTestOrder panelSetOrder = (BRAFV600EKTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, panelSetOrder, "BRAF V600E Mutation Analysis");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Result: " + panelSetOrder.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("Indication: " + panelSetOrder.Indication, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Interpretation: ", document, "F");
            this.HandleLongString(panelSetOrder.Interpretation, document, "F");
            this.AddNextObxElement("", document, "F");

            if (string.IsNullOrEmpty(panelSetOrder.TumorNucleiPercentage) == false)
            {
                this.AddNextObxElement("Tumor Nuclei Percent: ", document, "F");
                this.HandleLongString(panelSetOrder.TumorNucleiPercentage, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            this.AddNextObxElement("Specimen Description:", document, "F");
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId);
            this.AddNextObxElement(specimenOrder.Description, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");

            string method = "Following lysis of paraffin embedded tissue; highly purified DNA was extracted from the specimen using an automated method.  PCR amplification using fluorescently labeled primers was then performed.  The products of the PCR reaction were then separated by high resolution capillary electrophoresis to look for the presence of the 107 nucleotide fragment indicative of a BRAF V600E mutation.";

            this.AddNextObxElement("Method: " + method, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("References: ", document, "F");
            this.HandleLongString(panelSetOrder.References, document, "F");
            this.AddNextObxElement("", document, "F");

            string asr = "This test was developed and its performance characteristics determined by Yellowstone Pathology Institute, Inc.  It has not been cleared or approved by the U.S. Food and Drug Administration. The FDA has determined that such clearance or approval is not necessary.  This test is used for clinical purposes.  It should not be regarded as investigational or for research.  This laboratory is certified under the Clinical Laboratory Improvement Amendments of 1988 (CLIA-88) as qualified to perform high complexity clinical laboratory testing.";

            this.AddNextObxElement(asr, document, "F");

            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextObxElement(locationPerformed, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }
Beispiel #3
0
 public static YellowstonePathology.Business.Rules.MethodResult IsOkToAccept(BRAFV600EKTestOrder testOrder)
 {
     YellowstonePathology.Business.Rules.MethodResult result = testOrder.IsOkToAccept();
     if (result.Success == true)
     {
         if (string.IsNullOrEmpty(testOrder.ResultCode) == true)
         {
             result.Success = false;
             result.Message = "The results cannot be accepted because the Result is not set.";
         }
         else if (string.IsNullOrEmpty(testOrder.Indication) == true)
         {
             result.Success = false;
             result.Message = "The results cannot be accepted because the BRAF indicator is not set.";
         }
     }
     return(result);
 }
Beispiel #4
0
 public static YellowstonePathology.Business.Rules.MethodResult IsOkToAccept(BRAFV600EKTestOrder testOrder)
 {
     YellowstonePathology.Business.Rules.MethodResult result = testOrder.IsOkToAccept();
     if (result.Success == true)
     {
         if (string.IsNullOrEmpty(testOrder.ResultCode) == true)
         {
             result.Success = false;
             result.Message = "The results cannot be accepted because the Result is not set.";
         }
         else if (string.IsNullOrEmpty(testOrder.Indication) == true)
         {
             result.Success = false;
             result.Message = "The results cannot be accepted because the BRAF indicator is not set.";
         }
     }
     return result;
 }
Beispiel #5
0
 public static YellowstonePathology.Business.Rules.MethodResult IsOkToSetResult(BRAFV600EKTestOrder panelSetOrder)
 {
     YellowstonePathology.Business.Rules.MethodResult result = new Business.Rules.MethodResult();
     if (panelSetOrder.Accepted == true)
     {
         result.Success = false;
         result.Message = "The results cannot be set because the results have been accepted.";
     }
     else if (string.IsNullOrEmpty(panelSetOrder.Indication) == true)
     {
         result.Success = false;
         result.Message = "The results cannot be set because the BRAF indication is not set.";
     }
     else if (string.IsNullOrEmpty(panelSetOrder.ResultCode) == true)
     {
         result.Success = false;
         result.Message = "A result must be selected before the results can be set.";
     }
     return(result);
 }
Beispiel #6
0
 public static YellowstonePathology.Business.Rules.MethodResult IsOkToSetResult(BRAFV600EKTestOrder panelSetOrder)
 {
     YellowstonePathology.Business.Rules.MethodResult result = new Business.Rules.MethodResult();
     if (panelSetOrder.Accepted == true)
     {
         result.Success = false;
         result.Message = "The results cannot be set because the results have been accepted.";
     }
     else if(string.IsNullOrEmpty(panelSetOrder.Indication) == true)
     {
         result.Success = false;
         result.Message = "The results cannot be set because the BRAF indication is not set.";
     }
     else if (string.IsNullOrEmpty(panelSetOrder.ResultCode) == true)
     {
         result.Success = false;
         result.Message = "A result must be selected before the results can be set.";
     }
     return result;
 }