Exemple #1
0
        private void SendStatusMessage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        {
            if (clientOrder.SystemInitiatingOrder == "EPIC")
            {
                if (clientOrder.Acknowledged == false)
                {
                    YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection universalServiceIdCollection = YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection.GetAll();
                    YellowstonePathology.Business.ClientOrder.Model.UniversalService           universalService             = universalServiceIdCollection.GetByUniversalServiceId(clientOrder.UniversalServiceId);

                    YellowstonePathology.Business.HL7View.EPIC.EPICStatusMessage statusMessage = new Business.HL7View.EPIC.EPICStatusMessage(clientOrder, YellowstonePathology.Business.HL7View.OrderStatusEnum.InProcess, universalService, "Yellowstone Pathology Institute: Order Is In Process.", "I", clientOrder.OrderDate.Value);
                    statusMessage.Publish();

                    clientOrder.Acknowledged     = true;
                    clientOrder.AcknowledgedById = this.m_SystemIdentity.User.UserId;
                    clientOrder.AcknowledgedDate = DateTime.Now;
                }
            }
        }
Exemple #2
0
        private void SendAcknowledgements()
        {
            if (this.m_ClientOrderReceivingHandler.ClientOrder.SystemInitiatingOrder == "EPIC")
            {
                if (this.m_ClientOrderReceivingHandler.ClientOrder.Acknowledged == false)
                {
                    YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection universalServiceIdCollection = YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection.GetAll();
                    YellowstonePathology.Business.ClientOrder.Model.UniversalService           universalServiceId           = universalServiceIdCollection.GetByUniversalServiceId(this.m_ClientOrderReceivingHandler.ClientOrder.UniversalServiceId);

                    YellowstonePathology.Business.HL7View.EPIC.EPICStatusMessage statusMessage = new Business.HL7View.EPIC.EPICStatusMessage(this.m_ClientOrderReceivingHandler.ClientOrder, YellowstonePathology.Business.HL7View.OrderStatusEnum.InProcess, universalServiceId, "Yellowstone Pathology Institute: Order Is In Process.", "I", this.m_ClientOrderReceivingHandler.ClientOrder.OrderDate.Value);
                    statusMessage.Publish();

                    this.m_ClientOrderReceivingHandler.ClientOrder.Acknowledged     = true;
                    this.m_ClientOrderReceivingHandler.ClientOrder.AcknowledgedById = YellowstonePathology.Business.User.SystemIdentity.Instance.User.UserId;
                    this.m_ClientOrderReceivingHandler.ClientOrder.AcknowledgedDate = DateTime.Now;
                }
            }

            this.StartAccessionOrderPath();
        }
        private void SendStatusMessage()
        {
            if (this.m_ClientOrder.SystemInitiatingOrder == "EPIC")
            {
                if (this.m_ClientOrder.Acknowledged == false)
                {
                    YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection universalServiceIdCollection = YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection.GetAll();
                    YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService = universalServiceIdCollection.GetByUniversalServiceId(this.m_ClientOrder.UniversalServiceId);

                    YellowstonePathology.Business.HL7View.EPIC.EPICStatusMessage statusMessage = new Business.HL7View.EPIC.EPICStatusMessage(this.m_ClientOrder, YellowstonePathology.Business.HL7View.OrderStatusEnum.InProcess, universalService);
                    YellowstonePathology.Business.Rules.MethodResult result = statusMessage.Send();

                    if (result.Success == false)
                    {
                        YellowstonePathology.Business.Logging.EmailExceptionHandler.HandleException(result.Message);
                    }
                    else
                    {
                        this.m_ClientOrder.Acknowledged = true;
                        this.m_ClientOrder.AcknowledgedById = this.m_SystemIdentity.User.UserId;
                        this.m_ClientOrder.AcknowledgedDate = DateTime.Now;
                    }
                }
            }
        }
        private void MenuItemSendHL7StatusMessage_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewCaseList.SelectedItem != null)
            {
                YellowstonePathology.Business.Search.ReportSearchItem item = (YellowstonePathology.Business.Search.ReportSearchItem)this.ListViewCaseList.SelectedItem;
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(item.MasterAccessionNo);

                YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection universalServiceIdCollection = YellowstonePathology.Business.ClientOrder.Model.UniversalServiceCollection.GetAll();
                YellowstonePathology.Business.ClientOrder.Model.UniversalService universalService = universalServiceIdCollection.GetByUniversalServiceId(clientOrderCollection[0].UniversalServiceId);

                YellowstonePathology.Business.HL7View.EPIC.EPICStatusMessage statusMessage = new Business.HL7View.EPIC.EPICStatusMessage(clientOrderCollection[0], YellowstonePathology.Business.HL7View.OrderStatusEnum.InProcess, universalService);
                YellowstonePathology.Business.Rules.MethodResult result = statusMessage.Send();

                if (result.Success == false)
                {
                    MessageBox.Show(result.Message);
                }
            }
        }