示例#1
0
        private void HandleAddTask(YellowstonePathology.Business.Task.Model.Task task)
        {
            string taskOrderDetailId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderDetailId(this.m_TaskOrder.TaskOrderDetailCollection, this.m_TaskOrder.TaskOrderId);
            string objectId          = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.Task.Model.TaskOrderDetail taskOrderDetail = new Business.Task.Model.TaskOrderDetail(taskOrderDetailId, this.m_TaskOrder.TaskOrderId, objectId, task);
            this.m_TaskOrder.TaskOrderDetailCollection.Add(taskOrderDetail);
        }
示例#2
0
        private void HyperLinkSendAddGenericTask_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Task.Model.Task task = new Business.Task.Model.Task(string.Empty, string.Empty);
            string taskOrderDetailId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderDetailId(this.m_TaskOrder.TaskOrderDetailCollection, this.m_TaskOrder.TaskOrderId);
            string objectId          = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.Task.Model.TaskOrderDetail taskOrderDetail = new Business.Task.Model.TaskOrderDetail(taskOrderDetailId, this.m_TaskOrder.TaskOrderId, objectId, task, this.m_AccessionOrder.ClientId);
            this.m_TaskOrder.TaskOrderDetailCollection.Add(taskOrderDetail);
        }
示例#3
0
        private void HyperLinkSendToNeogenomics_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Facility.Model.Facility neo = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("NEOGNMCIRVN");
            YellowstonePathology.Business.Facility.Model.Facility ypi = YellowstonePathology.Business.Facility.Model.FacilityCollection.Instance.GetByFacilityId("YPIBLGS");

            this.m_TaskOrder.TaskOrderDetailCollection.Clear();
            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_TaskOrder.ReportNo);
            panelSetOrder.TechnicalComponentBillingFacilityId = ypi.FacilityId;
            panelSetOrder.TechnicalComponentFacilityId        = neo.FacilityId;

            panelSetOrder.ProfessionalComponentBillingFacilityId = neo.FacilityId;
            panelSetOrder.ProfessionalComponentFacilityId        = neo.FacilityId;

            YellowstonePathology.Business.Task.Model.TaskSendBlockToNeogenomics task = new Business.Task.Model.TaskSendBlockToNeogenomics();
            string taskOrderDetailId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderDetailId(this.m_TaskOrder.TaskOrderDetailCollection, this.m_TaskOrder.TaskOrderId);
            string objectId          = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.Task.Model.TaskOrderDetail taskOrderDetail = new Business.Task.Model.TaskOrderDetail(taskOrderDetailId, this.m_TaskOrder.TaskOrderId, objectId, task, this.m_AccessionOrder.ClientId);
            this.m_TaskOrder.TaskOrderDetailCollection.Add(taskOrderDetail);
        }
示例#4
0
        private void HyperLinkSendToNeogenomics_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Facility.Model.NeogenomicsIrvine neo = new YellowstonePathology.Business.Facility.Model.NeogenomicsIrvine();
            YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings ypi = new YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings();

            this.m_TaskOrder.TaskOrderDetailCollection.Clear();
            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_TaskOrder.ReportNo);
            panelSetOrder.TechnicalComponentBillingFacilityId = ypi.FacilityId;
            panelSetOrder.TechnicalComponentFacilityId = neo.FacilityId;

            panelSetOrder.ProfessionalComponentBillingFacilityId = neo.FacilityId;
            panelSetOrder.ProfessionalComponentFacilityId = neo.FacilityId;

            YellowstonePathology.Business.Task.Model.TaskSendBlockToNeogenomics task = new Business.Task.Model.TaskSendBlockToNeogenomics();
            string taskOrderDetailId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderDetailId(this.m_TaskOrder.TaskOrderDetailCollection, this.m_TaskOrder.TaskOrderId);
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
            YellowstonePathology.Business.Task.Model.TaskOrderDetail taskOrderDetail = new Business.Task.Model.TaskOrderDetail(taskOrderDetailId, this.m_TaskOrder.TaskOrderId, objectId, task);
            this.m_TaskOrder.TaskOrderDetailCollection.Add(taskOrderDetail);
        }
示例#5
0
 private void HyperLinkSendAddGenericTask_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Task.Model.Task task = new Business.Task.Model.Task(string.Empty, string.Empty);
     string taskOrderDetailId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderDetailId(this.m_TaskOrder.TaskOrderDetailCollection, this.m_TaskOrder.TaskOrderId);
     string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
     YellowstonePathology.Business.Task.Model.TaskOrderDetail taskOrderDetail = new Business.Task.Model.TaskOrderDetail(taskOrderDetailId, this.m_TaskOrder.TaskOrderId, objectId, task);
     this.m_TaskOrder.TaskOrderDetailCollection.Add(taskOrderDetail);
 }
 private void HandleAddTask(YellowstonePathology.Business.Task.Model.Task task)
 {
     string taskOrderDetailId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderDetailId(this.m_TaskOrder.TaskOrderDetailCollection, this.m_TaskOrder.TaskOrderId);
     string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
     YellowstonePathology.Business.Task.Model.TaskOrderDetail taskOrderDetail = new Business.Task.Model.TaskOrderDetail(taskOrderDetailId, this.m_TaskOrder.TaskOrderId, objectId, task);
     this.m_TaskOrder.TaskOrderDetailCollection.Add(taskOrderDetail);
 }
示例#7
0
        public YellowstonePathology.Business.Task.Model.TaskOrder CreateTask(YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo)
        {
            string taskOrderId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderId(this.TaskOrderCollection, this.MasterAccessionNo);
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
            YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = new Business.Task.Model.TaskOrder(taskOrderId, objectId, this.MasterAccessionNo,
                testOrderInfo.PanelSetOrder.ReportNo, testOrderInfo.PanelSet.TaskCollection[0], testOrderInfo.OrderTarget, testOrderInfo.PanelSet.PanelSetName, YellowstonePathology.Business.Task.Model.TaskAcknowledgementType.Immediate);

            foreach (YellowstonePathology.Business.Task.Model.Task task in testOrderInfo.PanelSet.TaskCollection)
            {
                string taskOrderDetailId = YellowstonePathology.Business.OrderIdParser.GetNextTaskOrderDetailId(taskOrder.TaskOrderDetailCollection, taskOrderId);
                string taskOrderDetailObjectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                YellowstonePathology.Business.Task.Model.TaskOrderDetail taskOrderDetail = new Business.Task.Model.TaskOrderDetail(taskOrderDetailId, taskOrderId, taskOrderDetailObjectId, task);

                if (this.ClientAccessioned == true)
                {
                    taskOrderDetail.AppendComment("Client Accessioned: " + this.m_ClientName + ", " + this.m_ClientAccessionNo);
                }

                taskOrder.TaskOrderDetailCollection.Add(taskOrderDetail);
            }

            return taskOrder;
        }