예제 #1
0
        private void SetPreviousResults()
        {
            PNHResult pnhResult = new PNHResult();
            List <YellowstonePathology.Business.Test.AccessionOrder> accessionOrders = pnhResult.GetPreviousAccessions(this.m_AccessionOrder.PatientId);
            List <PNHTestOrder> pnhTestOrders = pnhResult.GetPreviousPanelSetOrders(accessionOrders, this.m_PanelSetOrder.MasterAccessionNo, this.m_PanelSetOrder.OrderDate.Value);
            string dateString = string.Empty;
            string rbcString  = string.Empty;
            string monoString = string.Empty;
            string granString = string.Empty;

            if (pnhTestOrders.Count > 0)
            {
                pnhResult.SetTotals(pnhTestOrders[0]);
                dateString = pnhTestOrders[0].FinalDate.Value.ToShortDateString();
                rbcString  = pnhResult.RedBloodTotal.ToString("F") + "%";
                granString = pnhResult.GranulocytesTotal.ToString("F") + "%";
                monoString = pnhResult.MonocytesTotal.ToString("F") + "%";
            }
            this.ReplaceText("p_date_1", dateString);
            this.ReplaceText("rbc1_rbc2_p1", rbcString);
            this.ReplaceText("g2_g3_p1", granString);
            this.ReplaceText("m2_m3_p1", monoString);

            dateString = string.Empty;
            rbcString  = string.Empty;
            monoString = string.Empty;
            granString = string.Empty;
            if (pnhTestOrders.Count > 1)
            {
                pnhResult.SetTotals(pnhTestOrders[1]);
                dateString = pnhTestOrders[1].FinalDate.Value.ToShortDateString();
                rbcString  = pnhResult.RedBloodTotal.ToString("F") + "%";
                granString = pnhResult.GranulocytesTotal.ToString("F") + "%";
                monoString = pnhResult.MonocytesTotal.ToString("F") + "%";
            }
            this.ReplaceText("p_date_2", dateString);
            this.ReplaceText("rbc1_rbc2_p2", rbcString);
            this.ReplaceText("g2_g3_p2", granString);
            this.ReplaceText("m2_m3_p2", monoString);

            dateString = string.Empty;
            rbcString  = string.Empty;
            monoString = string.Empty;
            granString = string.Empty;
            if (pnhTestOrders.Count > 2)
            {
                pnhResult.SetTotals(pnhTestOrders[2]);
                dateString = pnhTestOrders[2].FinalDate.Value.ToShortDateString();
                rbcString  = pnhResult.RedBloodTotal.ToString("F") + "%";
                granString = pnhResult.GranulocytesTotal.ToString("F") + "%";
                monoString = pnhResult.MonocytesTotal.ToString("F") + "%";
            }
            this.ReplaceText("p_date_3", dateString);
            this.ReplaceText("rbc1_rbc2_p3", rbcString);
            this.ReplaceText("g2_g3_p3", granString);
            this.ReplaceText("m2_m3_p3", monoString);
        }
예제 #2
0
        private void SetPreviousResults(XElement document, PNHTestOrder testOrder)
        {
            PNHResult pnhResult = new PNHResult();
            List <YellowstonePathology.Business.Test.AccessionOrder> accessionOrders = pnhResult.GetPreviousAccessions(this.m_AccessionOrder.PatientId);
            List <PNHTestOrder> pnhTestOrders = pnhResult.GetPreviousPanelSetOrders(accessionOrders, testOrder.MasterAccessionNo, testOrder.OrderDate.Value);

            for (int idx = 0; idx < pnhTestOrders.Count; idx++)
            {
                if (idx > 2)
                {
                    break;
                }

                pnhResult.SetTotals(pnhTestOrders[idx]);
                this.AddNextObxElement("Previous Result: " + pnhTestOrders[idx].FinalDate.Value.ToShortDateString(), document, "F");
                this.AddNextObxElement("RBC: " + pnhResult.RedBloodTotal.ToString("F") + "%", document, "F");
                this.AddNextObxElement("WBC-Granulocytes: " + pnhResult.GranulocytesTotal.ToString("F") + "%", document, "F");
                this.AddNextObxElement("WBC-Monocytes: " + pnhResult.MonocytesTotal.ToString("F") + "%", document, "F");
                this.AddNextObxElement("", document, "F");
            }
        }
예제 #3
0
        private void SetPreviousResults(XElement document, PNHTestOrder testOrder)
        {
            PNHResult pnhResult = new PNHResult();
            List<YellowstonePathology.Business.Test.AccessionOrder> accessionOrders = pnhResult.GetPreviousAccessions(this.m_AccessionOrder.PatientId);
            List<PNHTestOrder> pnhTestOrders = pnhResult.GetPreviousPanelSetOrders(accessionOrders, testOrder.MasterAccessionNo, testOrder.OrderDate.Value);

            for (int idx = 0; idx < pnhTestOrders.Count; idx++)
            {
                if (idx > 2) break;

                pnhResult.SetTotals(pnhTestOrders[idx]);
                this.AddNextNteElement("Previous Result: " + pnhTestOrders[idx].FinalDate.Value.ToShortDateString(), document);
                this.AddNextNteElement("RBC: " + pnhResult.RedBloodTotal.ToString("F") + "%", document);
                this.AddNextNteElement("WBC-Granulocytes: " + pnhResult.GranulocytesTotal.ToString("F") + "%", document);
                this.AddNextNteElement("WBC-Monocytes: " + pnhResult.MonocytesTotal.ToString("F") + "%", document);
                this.AddBlankNteElement(document);
            }
        }
예제 #4
0
        private void SetPreviousResults()
        {
            PNHResult pnhResult = new PNHResult();
            List<YellowstonePathology.Business.Test.AccessionOrder> accessionOrders = pnhResult.GetPreviousAccessions(this.m_AccessionOrder.PatientId);
            List<PNHTestOrder> pnhTestOrders = pnhResult.GetPreviousPanelSetOrders(accessionOrders, this.m_PanelSetOrder.MasterAccessionNo, this.m_PanelSetOrder.OrderDate.Value);
            string dateString = string.Empty;
            string rbcString = string.Empty;
            string monoString = string.Empty;
            string granString = string.Empty;
            if (pnhTestOrders.Count > 0)
            {
                pnhResult.SetTotals(pnhTestOrders[0]);
                dateString = pnhTestOrders[0].FinalDate.Value.ToShortDateString();
                rbcString = pnhResult.RedBloodTotal.ToString("F") + "%";
                granString = pnhResult.GranulocytesTotal.ToString("F") + "%";
                monoString = pnhResult.MonocytesTotal.ToString("F") + "%";
            }
            this.ReplaceText("p_date_1", dateString);
            this.ReplaceText("rbc1_rbc2_p1", rbcString);
            this.ReplaceText("g2_g3_p1", granString);
            this.ReplaceText("m2_m3_p1", monoString);

            dateString = string.Empty;
            rbcString = string.Empty;
            monoString = string.Empty;
            granString = string.Empty;
            if (pnhTestOrders.Count > 1)
            {
                pnhResult.SetTotals(pnhTestOrders[1]);
                dateString = pnhTestOrders[1].FinalDate.Value.ToShortDateString();
                rbcString = pnhResult.RedBloodTotal.ToString("F") + "%";
                granString = pnhResult.GranulocytesTotal.ToString("F") + "%";
                monoString = pnhResult.MonocytesTotal.ToString("F") + "%";
            }
            this.ReplaceText("p_date_2", dateString);
            this.ReplaceText("rbc1_rbc2_p2", rbcString);
            this.ReplaceText("g2_g3_p2", granString);
            this.ReplaceText("m2_m3_p2", monoString);

            dateString = string.Empty;
            rbcString = string.Empty;
            monoString = string.Empty;
            granString = string.Empty;
            if (pnhTestOrders.Count > 2)
            {
                pnhResult.SetTotals(pnhTestOrders[2]);
                dateString = pnhTestOrders[2].FinalDate.Value.ToShortDateString();
                rbcString = pnhResult.RedBloodTotal.ToString("F") + "%";
                granString = pnhResult.GranulocytesTotal.ToString("F") + "%";
                monoString = pnhResult.MonocytesTotal.ToString("F") + "%";
            }
            this.ReplaceText("p_date_3", dateString);
            this.ReplaceText("rbc1_rbc2_p3", rbcString);
            this.ReplaceText("g2_g3_p3", granString);
            this.ReplaceText("m2_m3_p3", monoString);
        }