public void Add(YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBillCollection summaryCollection)
 {
     foreach (PanelSetOrderCPTCodeBill item in summaryCollection)
     {
         PanelSetOrderCPTCodeBill newItem = this.GetNextItem(item.ReportNo);
         newItem.From(item);
         this.Add(newItem);
     }
 }
Esempio n. 2
0
        public BillingPage(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ReportNo = reportNo;

            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_FacilityCollection.Insert(0, new Business.Facility.Model.NullFacility());

            this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);
            this.m_PanelSetOrderCPTCodeCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection;
            this.m_PanelSetOrderCPTCodeBillCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection;

            this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_ReportNo);
            this.m_PageHeaderText = "Billing For: " + this.m_AccessionOrder.PatientDisplayName + " - " + this.m_AccessionOrder.PBirthdate.Value.ToShortDateString();

            InitializeComponent();

            DataContext = this;
            this.Loaded += new RoutedEventHandler(BillingPage_Loaded);
            Unloaded += BillingPage_Unloaded;
        }
Esempio n. 3
0
        public BillingPage(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ReportNo       = reportNo;

            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_FacilityCollection.Insert(0, new Business.Facility.Model.NullFacility());

            this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);
            this.m_PanelSetOrderCPTCodeCollection     = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection;
            this.m_PanelSetOrderCPTCodeBillCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection;

            this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_ReportNo);
            this.m_PageHeaderText         = "Billing For: " + this.m_AccessionOrder.PatientDisplayName + " - " + this.m_AccessionOrder.PBirthdate.Value.ToShortDateString();

            InitializeComponent();

            DataContext  = this;
            this.Loaded += new RoutedEventHandler(BillingPage_Loaded);
            Unloaded    += BillingPage_Unloaded;
        }
        public YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBillCollection GetMissing(YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBillCollection shouldBeIncludedOnBillCollection)
        {
            YellowstonePathology.Business.Test.PanelSetOrderCPTCodeBillCollection result = new PanelSetOrderCPTCodeBillCollection();

            return(result);
        }
Esempio n. 5
0
        public PanelSetOrder(string masterAccessionNo, string reportNo, string objectId, YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet, YellowstonePathology.Business.Interface.IOrderTarget orderTarget, bool distribute)
        {
            this.MasterAccessionNo = masterAccessionNo;
            this.ReportNo = reportNo;
            this.m_ObjectId = objectId;
            this.m_OrderedById = Business.User.SystemIdentity.Instance.User.UserId;
            this.m_OrderedByInitials = Business.User.SystemIdentity.Instance.User.Initials;
            this.OrderDate = DateTime.Today;
            this.OrderTime = DateTime.Now;
            this.m_CaseType = panelSet.CaseType;

            if (orderTarget != null)
            {
                this.m_OrderedOnId = orderTarget.GetId();
                this.m_OrderedOn = orderTarget.GetOrderedOnType();
            }

            this.m_PanelSetId = panelSet.PanelSetId;
            this.m_PanelSetName = panelSet.PanelSetName;

            if (panelSet.HasTechnicalComponent == true)
            {
                this.m_HasTechnicalComponent = true;
                this.m_TechnicalComponentFacilityId = panelSet.TechnicalComponentFacility.FacilityId;
                this.m_TechnicalComponentBillingFacilityId = panelSet.TechnicalComponentBillingFacility.FacilityId;
            }

            if (panelSet.HasProfessionalComponent == true)
            {
                this.m_HasProfessionalComponent = true;
                this.m_ProfessionalComponentFacilityId = panelSet.ProfessionalComponentFacility.FacilityId;
                this.m_ProfessionalComponentBillingFacilityId = panelSet.ProfessionalComponentBillingFacility.FacilityId;
            }

            this.m_ExpectedFinalTime = YellowstonePathology.Business.Helper.DateTimeExtensions.GetExpectedFinalTime(this.m_OrderTime.Value, panelSet.ExpectedDuration);
            this.m_IsBillable = panelSet.IsBillable;
            this.m_ResultDocumentSource = panelSet.ResultDocumentSource.ToString();

            this.m_Distribute = distribute;
            if (panelSet.NeverDistribute == true)
            {
                this.m_Distribute = false;
            }

            this.m_PanelOrderCollection = new PanelOrderCollection();
            this.m_PanelSetOrderCPTCodeCollection = new PanelSetOrderCPTCodeCollection();
            this.m_PanelSetOrderCPTCodeBillCollection = new PanelSetOrderCPTCodeBillCollection();
            this.m_TestOrderReportDistributionCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection();
            this.m_TestOrderReportDistributionLogCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionLogCollection();

            this.m_AmendmentCollection = new YellowstonePathology.Business.Amendment.Model.AmendmentCollection();

            YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService = panelSet.UniversalServiceIdCollection.GetByApplicationName(YellowstonePathology.Business.ClientOrder.Model.UniversalServiceApplicationNameEnum.EPIC);
            this.m_UniversalServiceId = universalService.UniversalServiceId;
        }
Esempio n. 6
0
        public PanelSetOrder()
        {
            this.m_PanelOrderCollection = new PanelOrderCollection();
            this.m_PanelSetOrderCPTCodeCollection = new PanelSetOrderCPTCodeCollection();
            this.m_PanelSetOrderCPTCodeBillCollection = new PanelSetOrderCPTCodeBillCollection();
            this.m_TestOrderReportDistributionCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection();
            this.m_TestOrderReportDistributionLogCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionLogCollection();

            this.m_AmendmentCollection = new YellowstonePathology.Business.Amendment.Model.AmendmentCollection();
        }
Esempio n. 7
0
        public PanelSetOrder(string masterAccessionNo, string reportNo, string objectId, YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet, bool distribute)
        {
            this.MasterAccessionNo = masterAccessionNo;
            this.ReportNo = reportNo;
            this.m_ObjectId = objectId;
            this.m_OrderedById = Business.User.SystemIdentity.Instance.User.UserId;
            this.m_OrderedByInitials = Business.User.SystemIdentity.Instance.User.Initials;
            this.OrderDate = DateTime.Today;
            this.OrderTime = DateTime.Now;
            this.m_ResearchTesting = panelSet.ResearchTesting;
            this.m_PanelSetId = panelSet.PanelSetId;
            this.m_CaseType = panelSet.CaseType;
            this.m_PanelSetName = panelSet.PanelSetName;

            this.m_HasTechnicalComponent = false;
            if (panelSet.HasTechnicalComponent == true)
            {
                this.m_HasTechnicalComponent = true;
                this.m_TechnicalComponentFacilityId = panelSet.TechnicalComponentFacility.FacilityId;
                this.m_TechnicalComponentBillingFacilityId = panelSet.TechnicalComponentBillingFacility.FacilityId;
            }

            this.m_HasProfessionalComponent = false;
            if (panelSet.HasProfessionalComponent == true)
            {
                this.m_HasProfessionalComponent = true;
                this.m_ProfessionalComponentFacilityId = panelSet.ProfessionalComponentFacility.FacilityId;
                this.m_ProfessionalComponentBillingFacilityId = panelSet.ProfessionalComponentBillingFacility.FacilityId;
            }

            this.m_ResultDocumentSource = panelSet.ResultDocumentSource.ToString();
            this.m_IsBillable = panelSet.IsBillable;
            this.m_ExpectedFinalTime = YellowstonePathology.Business.Helper.DateTimeExtensions.GetEndDateConsideringWeekends(this.m_OrderTime.Value, panelSet.ExpectedDuration);

            this.m_Distribute = distribute;
            if (panelSet.NeverDistribute == true)
            {
                this.m_Distribute = false;
            }

            this.m_PanelOrderCollection = new PanelOrderCollection();
            this.m_PanelSetOrderCPTCodeCollection = new PanelSetOrderCPTCodeCollection();
            this.m_PanelSetOrderCPTCodeBillCollection = new PanelSetOrderCPTCodeBillCollection();
            this.m_TestOrderReportDistributionCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionCollection();
            this.m_TestOrderReportDistributionLogCollection = new YellowstonePathology.Business.ReportDistribution.Model.TestOrderReportDistributionLogCollection();

            this.m_AmendmentCollection = new YellowstonePathology.Business.Amendment.Model.AmendmentCollection();

            YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService = panelSet.UniversalServiceIdCollection.GetByApplicationName(YellowstonePathology.Business.ClientOrder.Model.UniversalServiceApplicationNameEnum.EPIC);
            this.m_UniversalServiceId = universalService.UniversalServiceId;

            this.m_Final = false;
            this.m_Accepted = false;
            this.m_HoldBilling = false;
            this.m_Audited = false;
            this.m_Published = false;
            this.m_PublishNotificationSent = false;
            this.m_NoCharge = false;
            this.m_Ordered14DaysPostDischarge = false;
            this.m_IsPosted = false;
            this.m_IsDelayed = false;
            this.m_HoldForPeerReview = false;
            this.m_HoldDistribution = false;
            this.m_AdditionalTestingEmailSent = false;
        }