Exemplo n.º 1
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();
        }
Exemplo n.º 2
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;
        }
Exemplo n.º 3
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;
        }