public virtual void PostTechnical(string billTo, string billby) { if (this.IsOkToPost() == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeCollection panelSetOrderCPTCodeSummaryCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetSummaryCollection(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode in panelSetOrderCPTCodeSummaryCollection) { YellowstonePathology.Business.Billing.Model.CptCode cptCode = Store.AppDataStore.Instance.CPTCodeCollection.GetClone(panelSetOrderCPTCode.CPTCode, panelSetOrderCPTCode.Modifier); if (cptCode.HasTechnicalComponent == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); item.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); item.BillTo = billTo; item.BillBy = billby; item.Modifier = cptCode.GetModifier(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical); if (this.m_AccessionOrder.PrimaryInsurance == "Medicare" && cptCode.HasMedicareQuantityLimit == true && billTo == "Patient") { item.Quantity = cptCode.MedicareQuantityLimit; } else { item.Quantity = panelSetOrderCPTCode.Quantity; } this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(item); } } } }
public void PostManualEntriesTechnical(string billTo, string billBy) { if (this.IsOkToPost() == true) { YellowstonePathology.Business.Billing.Model.CptCodeCollection cptCodeCollection = YellowstonePathology.Business.Billing.Model.CptCodeCollection.GetAll(); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeCollection panelSetOrderCPTCodeSummaryCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetManualEntrySummaryCollection(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode in panelSetOrderCPTCodeSummaryCollection) { YellowstonePathology.Business.Billing.Model.CptCode cptCode = cptCodeCollection.GetNewInstance(panelSetOrderCPTCode.CPTCode, panelSetOrderCPTCode.Modifier); if (cptCode.HasBillableTechnicalComponent() == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); item.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); item.ClientId = this.m_AccessionOrder.ClientId; item.BillTo = billTo; item.BillBy = billBy; item.Modifier = cptCode.GetModifier(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical); if (this.m_AccessionOrder.PrimaryInsurance == "Medicare") { if (cptCode.HasMedicareQuantityLimit == true) { item.Quantity = cptCode.MedicareQuantityLimit; } } this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(item); } } } }
public override void PostClientGCodes(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent) { if (this.IsOkToPost() == true) { YellowstonePathology.Business.Billing.Model.CptCodeDefinition.CPT88175 cpt88175 = new YellowstonePathology.Business.Billing.Model.CptCodeDefinition.CPT88175(); if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists(cpt88175.Code) == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetByCPTCode(cpt88175.Code); if (panelSetOrderCPTCodeBill.BillTo == "Client") { this.SetG0145(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical, "Patient", "CLNT", panelSetOrderCPTCodeBill.Modifier); } } YellowstonePathology.Business.Billing.Model.CptCodeDefinition.CPT88142 cpt88142 = new YellowstonePathology.Business.Billing.Model.CptCodeDefinition.CPT88142(); if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists(cpt88142.Code) == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetByCPTCode(cpt88142.Code); if (panelSetOrderCPTCodeBill.BillTo == "Client") { this.SetG0123(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical, "Patient", "CLNT", panelSetOrderCPTCodeBill.Modifier); } } } }
private void SetG0145(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent, string billTo, string billBy, string modifier) { CptCode cptG0145 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("G0145", null); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); panelSetOrderCPTCodeBill.ClientId = this.m_AccessionOrder.ClientId; panelSetOrderCPTCodeBill.BillTo = billTo; panelSetOrderCPTCodeBill.BillBy = billBy; panelSetOrderCPTCodeBill.CPTCode = cptG0145.Code; panelSetOrderCPTCodeBill.CodeType = cptG0145.CodeType.ToString(); panelSetOrderCPTCodeBill.Quantity = 1; panelSetOrderCPTCodeBill.Modifier = modifier; panelSetOrderCPTCodeBill.MedicalRecord = this.m_AccessionOrder.SvhMedicalRecord; panelSetOrderCPTCodeBill.Account = this.m_AccessionOrder.SvhAccount; if (panelSetOrderCPTCodeBill.Modifier == null) { panelSetOrderCPTCodeBill.Modifier = cptG0145.GetModifier(billingComponent); } if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists(panelSetOrderCPTCodeBill.CPTCode, panelSetOrderCPTCodeBill.Modifier) == false) { this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill); } }
public virtual void PostGlobal(string billTo, string billby) { if (this.IsOkToPost() == true) { YellowstonePathology.Business.Billing.Model.CptCodeCollection cptCodeCollection = YellowstonePathology.Business.Billing.Model.CptCodeCollection.GetAll(); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeCollection panelSetOrderCPTCodeSummaryCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetSummaryCollection(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode in panelSetOrderCPTCodeSummaryCollection) { YellowstonePathology.Business.Billing.Model.CptCode cptCode = cptCodeCollection.GetCptCode(panelSetOrderCPTCode.CPTCode); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); item.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); item.BillTo = billTo; item.BillBy = billby; if (this.m_AccessionOrder.PrimaryInsurance == "Medicare") { if (cptCode.HasMedicareQuantityLimit == true) { item.Quantity = cptCode.MedicareQuantityLimit; } } this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(item); } } }
public void ReverseBillTo(YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill reverseOriginal = this.GetNextItem(panelSetOrderCPTCodeBill.ReportNo); reverseOriginal.ClientId = panelSetOrderCPTCodeBill.ClientId; reverseOriginal.BillTo = panelSetOrderCPTCodeBill.BillTo; reverseOriginal.BillBy = panelSetOrderCPTCodeBill.BillBy; reverseOriginal.CPTCode = panelSetOrderCPTCodeBill.CPTCode; reverseOriginal.Modifier = panelSetOrderCPTCodeBill.Modifier; reverseOriginal.Quantity = panelSetOrderCPTCodeBill.Quantity * (-1); reverseOriginal.PostDate = DateTime.Today; reverseOriginal.MedicalRecord = panelSetOrderCPTCodeBill.MedicalRecord; reverseOriginal.Account = panelSetOrderCPTCodeBill.Account; reverseOriginal.CodeType = panelSetOrderCPTCodeBill.CodeType; this.Add(reverseOriginal); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill reverseNew = this.GetNextItem(panelSetOrderCPTCodeBill.ReportNo); reverseNew.ClientId = panelSetOrderCPTCodeBill.ClientId; reverseNew.BillTo = panelSetOrderCPTCodeBill.GetBillToReverse(); reverseNew.BillBy = panelSetOrderCPTCodeBill.BillBy; reverseNew.CPTCode = panelSetOrderCPTCodeBill.CPTCode; reverseNew.Modifier = panelSetOrderCPTCodeBill.Modifier; reverseNew.Quantity = panelSetOrderCPTCodeBill.Quantity; reverseNew.PostDate = DateTime.Today; reverseNew.MedicalRecord = panelSetOrderCPTCodeBill.MedicalRecord; reverseNew.Account = panelSetOrderCPTCodeBill.Account; reverseNew.CodeType = panelSetOrderCPTCodeBill.CodeType; this.Add(reverseNew); }
public override void PostTechnical(string billTo, string billBy) { if (this.IsOkToPost() == true) { YellowstonePathology.Business.PanelSet.Model.PanelSetCollection allPanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll(); YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = allPanelSets.GetPanelSet(this.m_PanelSetOrder.PanelSetId); YellowstonePathology.Business.Billing.Model.CptCodeCollection cptCodeCollection = YellowstonePathology.Business.Billing.Model.CptCodeCollection.GetAll(); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeCollection panelSetOrderCPTCodeSummaryCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetSummaryCollection(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode in panelSetOrderCPTCodeSummaryCollection) { YellowstonePathology.Business.Billing.Model.CptCode cptCode = cptCodeCollection.GetCptCode(panelSetOrderCPTCode.CPTCode); if (cptCode.HasTechnicalComponent == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); item.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); item.BillTo = "Client"; item.BillBy = "YPIBLGS"; item.Modifier = cptCode.GetModifier(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical); this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(item); } } } }
public void ImportReverse(DateTime postDate) { List <PanelSetOrderCPTCodeBill> itemList = this.GetList(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item in itemList) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill reverseOriginal = this.GetNextItem(item.ReportNo); reverseOriginal.ClientId = item.ClientId; reverseOriginal.BillTo = item.BillTo; reverseOriginal.BillBy = item.BillBy; reverseOriginal.CPTCode = item.CPTCode; reverseOriginal.Modifier = item.Modifier; reverseOriginal.Quantity = item.Quantity * (-1); reverseOriginal.PostDate = postDate; this.Add(reverseOriginal); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill reverseNew = this.GetNextItem(item.ReportNo); reverseNew.ClientId = item.ClientId; reverseNew.BillTo = item.GetBillToReverse(); reverseNew.BillBy = item.BillBy; reverseNew.CPTCode = item.CPTCode; reverseNew.Modifier = item.Modifier; reverseNew.Quantity = item.Quantity; reverseNew.PostDate = postDate; this.Add(reverseNew); } }
public override void PostGlobal(string billTo, string billBy) { if (this.IsOkToPost() == true) { YellowstonePathology.Business.PanelSet.Model.PanelSetCollection allPanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll(); YellowstonePathology.Business.PanelSet.Model.PanelSetMolecularTest panelSet = (YellowstonePathology.Business.PanelSet.Model.PanelSetMolecularTest)allPanelSets.GetPanelSet(this.m_PanelSetOrder.PanelSetId); if (panelSet.HasSplitCPTCode == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeCollection panelSetOrderCPTCodeSummaryCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetSummaryCollection(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode in panelSetOrderCPTCodeSummaryCollection) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); item.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); item.BillTo = billTo; item.BillBy = billBy; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(item); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill bill26 = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); bill26.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); bill26.BillTo = billTo; bill26.BillBy = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetBillBy(m_PanelSetOrder.ProfessionalComponentBillingFacilityId, this.m_PanelSetOrder.TechnicalComponentBillingFacilityId, "Global", billTo); bill26.Modifier = "26"; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(bill26); } } else { base.PostGlobal(billTo, billBy); } } }
public void Post88305(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent, string billTo, string billBy) { CptCode cpt88305 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("88305", null); int cpt88305Count = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetCodeQuantity(cpt88305.Code); if (cpt88305Count > 0) { string modifier = cpt88305.GetModifier(billingComponent); if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists(cpt88305.Code, modifier) == false) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); panelSetOrderCPTCodeBill.ClientId = this.m_AccessionOrder.ClientId; panelSetOrderCPTCodeBill.BillTo = billTo; panelSetOrderCPTCodeBill.BillBy = billBy; panelSetOrderCPTCodeBill.CPTCode = cpt88305.Code; panelSetOrderCPTCodeBill.CodeType = cpt88305.CodeType.ToString(); panelSetOrderCPTCodeBill.Modifier = modifier; panelSetOrderCPTCodeBill.Quantity = cpt88305Count; panelSetOrderCPTCodeBill.MedicalRecord = this.m_AccessionOrder.SvhMedicalRecord; panelSetOrderCPTCodeBill.Account = this.m_AccessionOrder.SvhAccount; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill); } } }
public override void PostClientGCodes(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent) { if (this.IsOkToPost() == true) { CptCode cpt88175 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("88175", null); if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.CPTCodeExists(cpt88175.Code) == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetByCPTCode(cpt88175.Code); if (panelSetOrderCPTCodeBill.BillTo == "Client") { this.SetG0145(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical, "Patient", "CLNT", panelSetOrderCPTCodeBill.Modifier); } } CptCode cpt88142 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("88142", null); if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.CPTCodeExists(cpt88142.Code) == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetByCPTCode(cpt88142.Code); if (panelSetOrderCPTCodeBill.BillTo == "Client") { this.SetG0123(YellowstonePathology.Business.Billing.Model.BillingComponentEnum.Technical, "Patient", "CLNT", panelSetOrderCPTCodeBill.Modifier); } } } }
private void MenuItemAddOne_Click(object sender, RoutedEventArgs e) { if (this.ListViewPanelSetOrderCPTCodeBill.SelectedItems.Count != 0) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = (YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill) this.ListViewPanelSetOrderCPTCodeBill.SelectedItem; panelSetOrderCPTCodeBill.Quantity += 1; } }
private void MenuItemAddWithCurrentClient_Click(object sender, RoutedEventArgs e) { if (this.ListViewPanelSetOrderCPTCodeBill.SelectedItems.Count != 0) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = (YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill) this.ListViewPanelSetOrderCPTCodeBill.SelectedItem; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.AddWithClientId(panelSetOrderCPTCodeBill, this.m_AccessionOrder.ClientId); } }
private void MenuItemReverse_Click(object sender, RoutedEventArgs e) { if (this.ListViewPanelSetOrderCPTCodeBill.SelectedItems.Count != 0) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = (YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill) this.ListViewPanelSetOrderCPTCodeBill.SelectedItem; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Reverse(panelSetOrderCPTCodeBill); } }
private void MenuItemDeletePanelSetOrderCPTCodeBill_Click(object sender, RoutedEventArgs e) { if (this.ListViewPanelSetOrderCPTCodeBill.SelectedItems.Count != 0) { for (int i = this.ListViewPanelSetOrderCPTCodeBill.SelectedItems.Count - 1; i >= 0; i--) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = (YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill) this.ListViewPanelSetOrderCPTCodeBill.SelectedItems[i]; this.m_PanelSetOrderCPTCodeBillCollection.Remove(panelSetOrderCPTCodeBill); } } }
public void Reverse(YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill reverseOriginal = this.GetNextItem(item.ReportNo); reverseOriginal.ClientId = item.ClientId; reverseOriginal.BillTo = item.BillTo; reverseOriginal.BillBy = item.BillBy; reverseOriginal.CPTCode = item.CPTCode; reverseOriginal.Modifier = item.Modifier; reverseOriginal.Quantity = item.Quantity * (-1); reverseOriginal.PostDate = DateTime.Today; this.Add(reverseOriginal); }
public YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill GetByCPTCode(string cptCode) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill result = null; foreach (PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill in this) { if (panelSetOrderCPTCodeBill.CPTCode == cptCode) { result = panelSetOrderCPTCodeBill; break; } } return(result); }
public void AddWithClientId(YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item, int clientId) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.GetNextItem(item.ReportNo); panelSetOrderCPTCodeBill.ClientId = item.ClientId; panelSetOrderCPTCodeBill.BillTo = item.BillTo; panelSetOrderCPTCodeBill.BillBy = item.BillBy; panelSetOrderCPTCodeBill.CPTCode = item.CPTCode; panelSetOrderCPTCodeBill.Modifier = item.Modifier; panelSetOrderCPTCodeBill.Quantity = item.Quantity; panelSetOrderCPTCodeBill.PostDate = DateTime.Today; panelSetOrderCPTCodeBill.ClientId = clientId; this.Add(panelSetOrderCPTCodeBill); }
public YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill GetExisting(YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill result = null; foreach (PanelSetOrderCPTCodeBill item in this) { if (panelSetOrderCPTCodeBill.CPTCode == item.CPTCode && panelSetOrderCPTCodeBill.Modifier == item.Modifier && panelSetOrderCPTCodeBill.BillTo == item.BillTo) { result = item; break; } } return(result); }
public bool Exists(YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill) { bool result = false; foreach (PanelSetOrderCPTCodeBill item in this) { if (panelSetOrderCPTCodeBill.CPTCode == item.CPTCode && panelSetOrderCPTCodeBill.Modifier == item.Modifier && panelSetOrderCPTCodeBill.BillTo == item.BillTo) { result = true; } } return(result); }
public void Reverse(YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill globalItem = this.GetNextItem(item.ReportNo); globalItem.ClientId = item.ClientId; globalItem.BillTo = item.BillTo; globalItem.BillBy = item.BillBy; globalItem.CPTCode = item.CPTCode; globalItem.Modifier = item.Modifier; globalItem.Quantity = item.Quantity * (-1); globalItem.PostDate = DateTime.Today; globalItem.MedicalRecord = item.MedicalRecord; globalItem.Account = item.Account; globalItem.CodeType = item.CodeType; this.Add(globalItem); }
public override void PostGlobal(string billTo, string billBy) { if (this.IsOkToPost() == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeCollection panelSetOrderCPTCodeSummaryCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection.GetSummaryCollection(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode in panelSetOrderCPTCodeSummaryCollection) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); item.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); item.BillTo = billTo; item.BillBy = billBy; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(item); } } }
public YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBillCollection GetSummaryCollection() { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBillCollection result = new PanelSetOrderCPTCodeBillCollection(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill in this) { if (result.Exists(panelSetOrderCPTCodeBill) == false) { result.Add(panelSetOrderCPTCodeBill); } else { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill existing = this.GetExisting(panelSetOrderCPTCodeBill); existing.Quantity = existing.Quantity + panelSetOrderCPTCodeBill.Quantity; } } return(result); }
public override void PostTechnical(string billTo, string billBy) { int blockCount = this.m_AccessionOrder.SpecimenOrderCollection.GetBlockCount(); YellowstonePathology.Business.Billing.Model.CptCodeDefinition.AutopsyBlock autopsyBlock = new Business.Billing.Model.CptCodeDefinition.AutopsyBlock(); foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode in this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill item = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); item.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); item.BillTo = billTo; item.BillBy = billBy; item.Quantity = blockCount; item.Modifier = autopsyBlock.Modifier; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(item); } }
public void PostPQRICodes() { if (this.IsOkToPost() == true) { foreach (YellowstonePathology.Business.Test.PanelSetOrderCPTCode panelSetOrderCPTCode in this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection) { YellowstonePathology.Business.Billing.Model.CptCode cptCode = Store.AppDataStore.Instance.CPTCodeCollection.GetClone(panelSetOrderCPTCode.CPTCode, panelSetOrderCPTCode.Modifier); if (cptCode is YellowstonePathology.Business.Billing.Model.PQRSCode == true) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill pqriCode = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); pqriCode.ClientId = this.m_AccessionOrder.ClientId; pqriCode.FromPanelSetOrderCPTCode(panelSetOrderCPTCode); pqriCode.BillTo = null; pqriCode.BillBy = null; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(pqriCode); } } } }
public void PostG0416(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent, string billTo, string billBy) { YellowstonePathology.Business.Billing.Model.GCodeDefinitions.CPTG0416 cptG0416 = new YellowstonePathology.Business.Billing.Model.GCodeDefinitions.CPTG0416(); string modifier = cptG0416.GetModifier(billingComponent); if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists(cptG0416.Code, modifier) == false) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); panelSetOrderCPTCodeBill.ClientId = this.m_AccessionOrder.ClientId; panelSetOrderCPTCodeBill.BillTo = billTo; panelSetOrderCPTCodeBill.BillBy = billBy; panelSetOrderCPTCodeBill.CPTCode = cptG0416.Code; panelSetOrderCPTCodeBill.CodeType = cptG0416.CodeType.ToString(); panelSetOrderCPTCodeBill.Modifier = modifier; panelSetOrderCPTCodeBill.Quantity = 1; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill); } }
public void Post3395F() { if (this.m_StainSpecimenCollection.Requires3395F() == true) { if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists("3395F") == false) { YellowstonePathology.Business.Billing.Model.PQRSCodeDefinitions.PQRS3395F pqrs3395F = new YellowstonePathology.Business.Billing.Model.PQRSCodeDefinitions.PQRS3395F(); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); panelSetOrderCPTCodeBill.ClientId = this.m_AccessionOrder.ClientId; panelSetOrderCPTCodeBill.BillTo = null; panelSetOrderCPTCodeBill.BillBy = null; panelSetOrderCPTCodeBill.CPTCode = pqrs3395F.Code; panelSetOrderCPTCodeBill.CodeType = pqrs3395F.CodeType.ToString(); panelSetOrderCPTCodeBill.Modifier = null; panelSetOrderCPTCodeBill.Quantity = 1; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill); } } }
private void SetG0124(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent, string billTo, string billBy, string modifier) { YellowstonePathology.Business.Billing.Model.GCodeDefinitions.CPTG0124 cptG0124 = new YellowstonePathology.Business.Billing.Model.GCodeDefinitions.CPTG0124(); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); panelSetOrderCPTCodeBill.ClientId = this.m_AccessionOrder.ClientId; panelSetOrderCPTCodeBill.BillTo = billTo; panelSetOrderCPTCodeBill.BillBy = billBy; panelSetOrderCPTCodeBill.CPTCode = cptG0124.Code; panelSetOrderCPTCodeBill.CodeType = cptG0124.CodeType.ToString(); panelSetOrderCPTCodeBill.Quantity = 1; panelSetOrderCPTCodeBill.Modifier = modifier; if (panelSetOrderCPTCodeBill.Modifier == null) { panelSetOrderCPTCodeBill.Modifier = cptG0124.GetModifier(billingComponent); } if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists(panelSetOrderCPTCodeBill.CPTCode, panelSetOrderCPTCodeBill.Modifier) == false) { this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill); } }
public void Post3395F() { if (this.m_StainSpecimenCollection.Requires3395F() == true) { if (this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Exists("3395F") == false) { YellowstonePathology.Business.Billing.Model.PQRSCode pqrs3395F = (PQRSCode)Store.AppDataStore.Instance.CPTCodeCollection.GetClone("3395F", null); YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); panelSetOrderCPTCodeBill.ClientId = this.m_AccessionOrder.ClientId; panelSetOrderCPTCodeBill.BillTo = null; panelSetOrderCPTCodeBill.BillBy = null; panelSetOrderCPTCodeBill.CPTCode = pqrs3395F.Code; panelSetOrderCPTCodeBill.CodeType = pqrs3395F.CodeType.ToString(); panelSetOrderCPTCodeBill.Modifier = null; panelSetOrderCPTCodeBill.Quantity = 1; panelSetOrderCPTCodeBill.MedicalRecord = this.m_AccessionOrder.SvhMedicalRecord; panelSetOrderCPTCodeBill.Account = this.m_AccessionOrder.SvhAccount; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill); } } }
public void Post88313(YellowstonePathology.Business.Billing.Model.BillingComponentEnum billingComponent, string billTo, string billBy) { YellowstonePathology.Business.Billing.Model.CptCode cpt88313 = Store.AppDataStore.Instance.CPTCodeCollection.GetClone("88313", null); string modifier = cpt88313.GetModifier(billingComponent); int cpt88313Count = this.m_StainSpecimenCollection.GetBillable88313Count() - this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetBilledCount(cpt88313.Code, modifier); if (cpt88313Count > 0) { YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBill panelSetOrderCPTCodeBill = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.GetNextItem(this.m_PanelSetOrder.ReportNo); panelSetOrderCPTCodeBill.ClientId = this.m_AccessionOrder.ClientId; panelSetOrderCPTCodeBill.BillTo = billTo; panelSetOrderCPTCodeBill.BillBy = billBy; panelSetOrderCPTCodeBill.CPTCode = cpt88313.Code; panelSetOrderCPTCodeBill.CodeType = cpt88313.CodeType.ToString(); panelSetOrderCPTCodeBill.Modifier = modifier; panelSetOrderCPTCodeBill.Quantity = cpt88313Count; panelSetOrderCPTCodeBill.MedicalRecord = this.m_AccessionOrder.SvhMedicalRecord; panelSetOrderCPTCodeBill.Account = this.m_AccessionOrder.SvhAccount; this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection.Add(panelSetOrderCPTCodeBill); } }