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 override int GetBillableIHCTestOrderCount() { int result = 0; YellowstonePathology.Business.Test.Model.TestCollection ihcTestCollection = YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetIHCTests(); foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this.m_TestOrderCollection) { if (testOrder.NoCharge == false) { if (ihcTestCollection.Exists(testOrder.TestId) == true) { if (this.m_StainResultCollection.TestOrderExists(testOrder.TestOrderId) == true) { YellowstonePathology.Business.SpecialStain.StainResultItem stainResult = this.m_StainResultCollection.GetStainResult(testOrder.TestOrderId); if (stainResult.IsGraded == false) { result += 1; } } } } } return(result); }
public int GetBillableGradeStainCount(bool includeOrderedAsDual) { int result = 0; YellowstonePathology.Business.Test.Model.TestCollection gradedTestCollection = YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetGradedTests(); foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this) { if (testOrder.NoCharge == false) { if (gradedTestCollection.Exists(testOrder.TestId) == true) { if (includeOrderedAsDual == true) { result += 1; } else if (includeOrderedAsDual == false) { if (testOrder.OrderedAsDual == false) { result += 1; } } } } } return(result); }
private bool HandleRecutComment(YellowstonePathology.Business.Test.Model.TestCollection selectedTests) { bool result = true; if (selectedTests.Exists("150") == true) { if (string.IsNullOrEmpty(this.m_PanelOrderComment) == true) { result = false; MessageBox.Show("To better track the reason for recuts a comment is required. Click on the Recut Comment link to the right of the text box for canned comments."); } } return(result); }
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 int GetBillableGradedDualStainCount() { int result = 0; YellowstonePathology.Business.Test.Model.TestCollection gradedTestCollection = YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetGradedTests(); foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this) { if (gradedTestCollection.Exists(testOrder.TestId) == true && testOrder.OrderedAsDual == true) { result += 1; } } return(result); }
public override int GetBillableGradeStainCount(bool includeOrderedAsDual) { int result = 0; YellowstonePathology.Business.Test.Model.TestCollection gradedTestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetGradedTests(); foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this.m_TestOrderCollection) { if (testOrder.NoCharge == false) { if (gradedTestCollection.Exists(testOrder.TestId) == true) { if (includeOrderedAsDual == true) { result += 1; } else if (includeOrderedAsDual == false) { if (testOrder.OrderedAsDual == false) { result += 1; } } } else if (this.m_StainResultCollection.Exists(testOrder.TestOrderId) == true) { YellowstonePathology.Business.SpecialStain.StainResultItem stainResult = this.m_StainResultCollection.GetStainResult(testOrder.TestOrderId); if (stainResult.IsGraded == true) { if (includeOrderedAsDual == true) { result += 1; } else if (includeOrderedAsDual == false) { if (testOrder.OrderedAsDual == false) { result += 1; } } } } } } return(result); }
public int GetCytochemicalForMicroorganismsStainCount() { int result = 0; YellowstonePathology.Business.Test.Model.TestCollection cytochemicalForMicroorganismsTestCollection = YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetCytochemicalForMicroorganismsTests(); foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this) { if (testOrder.NoCharge == false) { if (cytochemicalForMicroorganismsTestCollection.Exists(testOrder.TestId) == true) { result += 1; } } } return(result); }
public int GetChargeableIHCTestOrderCount() { int result = 0; YellowstonePathology.Business.Test.Model.TestCollection ihcTestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetIHCTests(); foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in this) { if (testOrder.NoCharge == false) { if (ihcTestCollection.Exists(testOrder.TestId) == true) { result += 1; } } } 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); }