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); }
public int GetUniqueTestCount() { TestOrderCollection testOrderCollection = new TestOrderCollection(); foreach (TestOrder testOrder in this) { if (testOrderCollection.ExistsByTestId(testOrder.TestId) == false) { testOrderCollection.Add(testOrder); } } return(testOrderCollection.Count); }
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); }
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); }
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; }
public bool Exists(TestOrderCollection testOrderCollection) { bool result = false; foreach (TestOrder testOrder in testOrderCollection) { foreach (TestOrder existingTestOrder in this) { if (testOrder.TestOrderId == existingTestOrder.TestOrderId) { result = true; break; } } } return result; }
public bool Exists(TestOrderCollection testOrderCollection) { bool result = false; foreach (TestOrder testOrder in testOrderCollection) { foreach (TestOrder existingTestOrder in this) { if (testOrder.TestOrderId == existingTestOrder.TestOrderId) { result = true; break; } } } return(result); }
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); }
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; }