public override void SetResults(CysticFibrosisTestOrder testOrder, CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup)
 {
     base.SetResults(testOrder, cysticFibrosisEthnicGroup);
     string mutationsDetected = this.GetMutationsDetected(testOrder);
     testOrder.MutationsDetected = this.m_MutationsDetected.Replace("XXX", mutationsDetected);
     testOrder.Interpretation = this.m_Interpretation.Replace("XXX", mutationsDetected);
     testOrder.Comment = null;
 }
Beispiel #2
0
        public override void SetResults(CysticFibrosisTestOrder testOrder, CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup)
        {
            base.SetResults(testOrder, cysticFibrosisEthnicGroup);
            string mutationsDetected = this.GetMutationsDetected(testOrder);

            testOrder.MutationsDetected = this.m_MutationsDetected.Replace("XXX", mutationsDetected);
            testOrder.Interpretation    = this.m_Interpretation.Replace("XXX", mutationsDetected);
            testOrder.Comment           = null;
        }
Beispiel #3
0
 public virtual void SetResults(CysticFibrosisTestOrder testOrder, CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup)
 {
     testOrder.Result            = this.m_Result;
     testOrder.ResultCode        = this.m_ResultCode;
     testOrder.Method            = CysticFibrosisResult.Method;
     testOrder.MutationsTested   = m_MutationsTested;
     testOrder.MutationsDetected = m_MutationsDetected;
     testOrder.ReportReferences  = CysticFibrosisResult.Reference;
     testOrder.TemplateId        = cysticFibrosisEthnicGroup.TemplateId;
 }
 public virtual void SetResults(CysticFibrosisTestOrder testOrder, CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup)
 {
     testOrder.Result = this.m_Result;
     testOrder.ResultCode = this.m_ResultCode;
     testOrder.Method = CysticFibrosisResult.Method;
     testOrder.MutationsTested = m_MutationsTested;
     testOrder.MutationsDetected = m_MutationsDetected;
     testOrder.References = CysticFibrosisResult.Reference;
     testOrder.TemplateId = cysticFibrosisEthnicGroup.TemplateId;
 }
        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();
        }
        private string GetMutationsDetected(CysticFibrosisTestOrder testOrder)
        {
            StringBuilder result = new StringBuilder();
            CysticFibrosisDetectedResult cysticFibrosisDetectedResult = new CysticFibrosisDetectedResult();
            string compareString = cysticFibrosisDetectedResult.Result;

            CysticFibrosisGeneNames cysticFibrosisGeneNames = new CysticFibrosisGeneNames();
            if (string.Compare(testOrder.Result1898Plus1GtoA, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result1898Plus1GtoA]);
            if (string.Compare(testOrder.ResultR117H, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR117H]);
            if (string.Compare(testOrder.Result621Plus1GtoT, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result621Plus1GtoT]);
            if (string.Compare(testOrder.ResultG551D, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultG551D]);
            if (string.Compare(testOrder.ResultDeltaI507, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultDeltaI507]);
            if (string.Compare(testOrder.Result711Plus1GtoT, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result711Plus1GtoT]);
            if (string.Compare(testOrder.ResultG85E, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultG85E]);
            if (string.Compare(testOrder.Result1717Minus1GtoA, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result1717Minus1GtoA]);
            if (string.Compare(testOrder.ResultR560T, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR560T]);
            if (string.Compare(testOrder.ResultR334W, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR334W]);
            if (string.Compare(testOrder.Result3659delC, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result3659delC]);
            if (string.Compare(testOrder.Result2184delA, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result2184delA]);
            if (string.Compare(testOrder.Result2789Plus5GtoA, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result2789Plus5GtoA]);
            if (string.Compare(testOrder.ResultW1282X, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultW1282X]);
            if (string.Compare(testOrder.Result3120Plus1GtoA, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result3120Plus1GtoA]);
            if (string.Compare(testOrder.ResultA455E, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultA455E]);
            if (string.Compare(testOrder.ResultDeltaF508, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultDeltaF508]);
            if (string.Compare(testOrder.ResultR1162X, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR1162X]);
            if (string.Compare(testOrder.ResultR553X, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR553X]);
            if (string.Compare(testOrder.Result3849Plus10KbCtoT, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result3849Plus10KbCtoT]);
            if (string.Compare(testOrder.ResultR347P, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR347P]);
            if (string.Compare(testOrder.ResultG542X, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultG542X]);
            if (string.Compare(testOrder.ResultN1303K, compareString) == 0) this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultN1303K]);

            if (result.ToString().Contains(","))
            {
                result.Append(" mutations were");
            }
            else
            {
                result.Append(" mutation was");
            }
            return result.ToString();
        }
        public override void ToXml(XElement document)
        {
            CysticFibrosisTestOrder panelSetOrder = (CysticFibrosisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, panelSetOrder, "Cystic Fibrosis Carrier Screening");

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

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement("Mutations Detected:", document, "F");
            this.HandleLongString(panelSetOrder.MutationsDetected, document, "F");

            if (string.IsNullOrEmpty(panelSetOrder.Comment) == false)
            {
                this.AddNextObxElement("", document, "F");
                this.AddNextObxElement("Comment:", document, "F");
                this.HandleLongString(panelSetOrder.Comment, 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: Whole blood EDTA", document, "F");

            YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroupCollection cysticFibrosisEthnicGroupCollection = new CysticFibrosisEthnicGroupCollection();
            YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroup           cysticFibrosisEthnicGroup           = cysticFibrosisEthnicGroupCollection.GetCysticFibrosisEthnicGroup(panelSetOrder.EthnicGroupId);

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement("Ethnic Group: " + cysticFibrosisEthnicGroup.EthnicGroupName, document, "F");

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

            if (panelSetOrder.TemplateId == 2)
            {
                this.AddNextObxElement("", document, "F");
                string line = "The table below provides data to be used in the risk assessment of this individual.  Note that the detection rate and the CF carrier risk are not available for individuals from other ethnic populations.";
                this.AddNextObxElement("", document, "F");
                this.AddNextObxElement(line, document, "F");
                this.AddNextObxElement("Ethnic Group ", document, "F");
                this.AddNextObxElement("Ashkenazi Jewish", document, "F");
                this.AddNextObxElement("Detection Rate 94%", document, "F");
                this.AddNextObxElement("Before Test 1/24", document, "F");
                this.AddNextObxElement("After Negative Test 1/400", document, "F");
                this.AddNextObxElement("", document, "F");
                this.AddNextObxElement("European Caucasian", document, "F");
                this.AddNextObxElement("Detection Rate 88%", document, "F");
                this.AddNextObxElement("Before Test 1/25", document, "F");
                this.AddNextObxElement("After Negative Test 1/208", document, "F");
                this.AddNextObxElement("", document, "F");
                this.AddNextObxElement("African American", document, "F");
                this.AddNextObxElement("Detection Rate 65%", document, "F");
                this.AddNextObxElement("Before Test 1/65", document, "F");
                this.AddNextObxElement("After Negative Test 1/186", document, "F");
                this.AddNextObxElement("", document, "F");
                this.AddNextObxElement("Hispanic American", document, "F");
                this.AddNextObxElement("Detection Rate 72%", document, "F");
                this.AddNextObxElement("Before Test 1/46", document, "F");
                this.AddNextObxElement("After Negative Test 1/164", document, "F");
                this.AddNextObxElement("", document, "F");
                this.AddNextObxElement("Asian American ", document, "F");
                this.AddNextObxElement("Detection Rate 49%", document, "F");
                this.AddNextObxElement("Before Test 1/94", document, "F");
                this.AddNextObxElement("After Negative Test 1/184", document, "F");
            }

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

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement("Mutations Tested:", document, "F");
            this.HandleLongString(panelSetOrder.MutationsTested, document, "F");

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

            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement(locationPerformed, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }
Beispiel #8
0
 public override void SetResults(CysticFibrosisTestOrder testOrder, CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup)
 {
     testOrder.Interpretation = this.m_Interpretation + Environment.NewLine + Environment.NewLine + cysticFibrosisEthnicGroup.GetInterpretation();
     testOrder.Comment        = cysticFibrosisEthnicGroup.GetResidualRiskStatement();
     base.SetResults(testOrder, cysticFibrosisEthnicGroup);
 }
 public override void SetResults(CysticFibrosisTestOrder testOrder, CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup)
 {
     testOrder.Interpretation = this.m_Interpretation + Environment.NewLine + Environment.NewLine + cysticFibrosisEthnicGroup.GetInterpretation();
     testOrder.Comment = cysticFibrosisEthnicGroup.GetResidualRiskStatement();
     base.SetResults(testOrder, cysticFibrosisEthnicGroup);
 }
Beispiel #10
0
        private string GetMutationsDetected(CysticFibrosisTestOrder testOrder)
        {
            StringBuilder result = new StringBuilder();
            CysticFibrosisDetectedResult cysticFibrosisDetectedResult = new CysticFibrosisDetectedResult();
            string compareString = cysticFibrosisDetectedResult.Result;

            CysticFibrosisGeneNames cysticFibrosisGeneNames = new CysticFibrosisGeneNames();

            if (string.Compare(testOrder.Result1898Plus1GtoA, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result1898Plus1GtoA]);
            }
            if (string.Compare(testOrder.ResultR117H, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR117H]);
            }
            if (string.Compare(testOrder.Result621Plus1GtoT, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result621Plus1GtoT]);
            }
            if (string.Compare(testOrder.ResultG551D, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultG551D]);
            }
            if (string.Compare(testOrder.ResultDeltaI507, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultDeltaI507]);
            }
            if (string.Compare(testOrder.Result711Plus1GtoT, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result711Plus1GtoT]);
            }
            if (string.Compare(testOrder.ResultG85E, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultG85E]);
            }
            if (string.Compare(testOrder.Result1717Minus1GtoA, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result1717Minus1GtoA]);
            }
            if (string.Compare(testOrder.ResultR560T, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR560T]);
            }
            if (string.Compare(testOrder.ResultR334W, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR334W]);
            }
            if (string.Compare(testOrder.Result3659delC, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result3659delC]);
            }
            if (string.Compare(testOrder.Result2184delA, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result2184delA]);
            }
            if (string.Compare(testOrder.Result2789Plus5GtoA, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result2789Plus5GtoA]);
            }
            if (string.Compare(testOrder.ResultW1282X, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultW1282X]);
            }
            if (string.Compare(testOrder.Result3120Plus1GtoA, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result3120Plus1GtoA]);
            }
            if (string.Compare(testOrder.ResultA455E, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultA455E]);
            }
            if (string.Compare(testOrder.ResultDeltaF508, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultDeltaF508]);
            }
            if (string.Compare(testOrder.ResultR1162X, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR1162X]);
            }
            if (string.Compare(testOrder.ResultR553X, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR553X]);
            }
            if (string.Compare(testOrder.Result3849Plus10KbCtoT, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.Result3849Plus10KbCtoT]);
            }
            if (string.Compare(testOrder.ResultR347P, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultR347P]);
            }
            if (string.Compare(testOrder.ResultG542X, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultG542X]);
            }
            if (string.Compare(testOrder.ResultN1303K, compareString) == 0)
            {
                this.BuildDetectedStatement(result, cysticFibrosisGeneNames[(int)CysticFibrosisGeneNameEnum.ResultN1303K]);
            }

            if (result.ToString().Contains(","))
            {
                result.Append(" mutations were");
            }
            else
            {
                result.Append(" mutation was");
            }
            return(result.ToString());
        }