Ejemplo n.º 1
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetBillableSinglePlexIHCTestOrders()
        {
            List <string> exclusions = new List <string>();

            exclusions.Add("360"); //Kappa ISH
            exclusions.Add("361"); //Lambda ISH

            YellowstonePathology.Business.Test.Model.TestOrderCollection result            = new TestOrderCollection();
            YellowstonePathology.Business.Test.Model.TestCollection      ihcTestCollection = YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetIHCTests();

            foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this)
            {
                if (testOrder.OrderedAsDual == false)
                {
                    if (testOrder.NoCharge == false)
                    {
                        if (!exclusions.Contains(testOrder.TestId))
                        {
                            if (ihcTestCollection.Exists(testOrder.TestId) == true)
                            {
                                result.Add(testOrder);
                            }
                        }
                    }
                }
            }

            return(result);
        }
Ejemplo n.º 2
0
        public int GetUniqueTestCount()
        {
            TestOrderCollection testOrderCollection = new TestOrderCollection();

            foreach (TestOrder testOrder in this)
            {
                if (testOrderCollection.ExistsByTestId(testOrder.TestId) == false)
                {
                    testOrderCollection.Add(testOrder);
                }
            }
            return(testOrderCollection.Count);
        }
Ejemplo n.º 3
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetBillableGradeStains(bool includeOrderedAsDual)
        {
            YellowstonePathology.Business.Test.Model.TestOrderCollection result = new TestOrderCollection();
            YellowstonePathology.Business.Test.Model.TestCollection      gradedTestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetGradedTests();

            foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this)
            {
                if (gradedTestCollection.Exists(testOrder.TestId) == true && testOrder.OrderedAsDual == includeOrderedAsDual)
                {
                    result.Add(testOrder);
                }
            }

            return(result);
        }
Ejemplo n.º 4
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetBillableCytochemicalStainsForMicroorganisms(bool includeOrderedAsDual)
        {
            YellowstonePathology.Business.Test.Model.TestOrderCollection result = new TestOrderCollection();
            YellowstonePathology.Business.Test.Model.TestCollection      resultTestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetCytochemicalForMicroorganismsTests();

            foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this)
            {
                if (resultTestCollection.Exists(testOrder.TestId) == true && testOrder.OrderedAsDual == includeOrderedAsDual)
                {
                    result.Add(testOrder);
                }
            }

            return(result);
        }
Ejemplo n.º 5
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetBillableCytochemicalStains(bool includeOrderedAsDual)
        {
            YellowstonePathology.Business.Test.Model.TestOrderCollection result = new TestOrderCollection();
            YellowstonePathology.Business.Test.Model.TestCollection resultTestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetCytochemicalTests();

            foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this)
            {
                if (resultTestCollection.Exists(testOrder.TestId) == true && testOrder.OrderedAsDual == includeOrderedAsDual)
                {
                    result.Add(testOrder);
                }
            }

            return result;
        }
Ejemplo n.º 6
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetBillableSinglePlexIHCTestOrders()
        {
            YellowstonePathology.Business.Test.Model.TestOrderCollection result            = new TestOrderCollection();
            YellowstonePathology.Business.Test.Model.TestCollection      ihcTestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetIHCTests();

            foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this)
            {
                if (testOrder.OrderedAsDual == false)
                {
                    if (testOrder.NoCharge == false)
                    {
                        if (ihcTestCollection.Exists(testOrder.TestId) == true)
                        {
                            result.Add(testOrder);
                        }
                    }
                }
            }

            return(result);
        }
Ejemplo n.º 7
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetBillableSinglePlexIHCTestOrders()
        {
            YellowstonePathology.Business.Test.Model.TestOrderCollection result = new TestOrderCollection();
            YellowstonePathology.Business.Test.Model.TestCollection ihcTestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetIHCTests();

            foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this)
            {
                if (testOrder.OrderedAsDual == false)
                {
                    if (testOrder.NoCharge == false)
                    {
                        if (ihcTestCollection.Exists(testOrder.TestId) == true)
                        {
                            result.Add(testOrder);
                        }
                    }
                }
            }

            return result;
        }