예제 #1
0
        public void AccessionClientOrders()
        {
            for (int idx = 0; idx < this.m_ClientOrderCollection.Count; idx++)
            {
                this.m_ClientOrderCollection[idx] = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrder(this.m_ClientOrderCollection[idx].ClientOrderId, this.m_Writer);
                YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = this.m_ClientOrderCollection[idx];
                clientOrder.Accession(this.m_AccessionOrder.MasterAccessionNo);

                if (this.m_ClientOrderId == clientOrder.ClientOrderId)
                {
                    this.m_AccessionOrder.AccessionSpecimen(clientOrder.ClientOrderDetailCollection);
                }

                this.SendStatusMessage(clientOrder);

                if (string.IsNullOrEmpty(this.m_AccessionOrder.SpecialInstructions) == true)
                {
                    this.m_AccessionOrder.SpecialInstructions = clientOrder.SpecialInstructions;
                }
                else if (this.m_AccessionOrder.SpecialInstructions.Contains(clientOrder.SpecialInstructions) == false)
                {
                    this.m_AccessionOrder.SpecialInstructions += Environment.NewLine + clientOrder.SpecialInstructions;
                }

                YellowstonePathology.Business.ClientOrder.Model.EPICClinicalHistoryExtractor epicClinicalHistoryConverter = new Business.ClientOrder.Model.EPICClinicalHistoryExtractor();
                string clinicalhistory = epicClinicalHistoryConverter.ExctractClinicalHistory(this.m_AccessionOrder.SpecialInstructions);
                if (string.IsNullOrEmpty(clinicalhistory) == false)
                {
                    if (string.IsNullOrEmpty(this.m_AccessionOrder.ClinicalHistory) == true)
                    {
                        this.m_AccessionOrder.ClinicalHistory = clinicalhistory;
                    }
                    else if (this.m_AccessionOrder.ClinicalHistory.Contains(clinicalhistory) == false)
                    {
                        this.m_AccessionOrder.ClinicalHistory = this.m_AccessionOrder.ClinicalHistory + " " + clinicalhistory;
                    }
                }

                this.m_AccessionOrder.PanelSetOrderCollection.FromClientOrder(clientOrder, this.m_AccessionOrder, this.m_SystemIdentity);
            }

            if (this.m_ClientOrderCollection.PanelSetIdExists(15) == true)
            {
                YellowstonePathology.Business.ClientOrder.Model.ClientOrder thinPrepClientOrder = this.m_ClientOrderCollection.GetClientOrderByPanelSetId(15);
                this.m_AccessionOrder.PanelSetOrderCollection.HandleReflexTestingFromClientOrder(thinPrepClientOrder, this.m_AccessionOrder, this.m_SystemIdentity);
            }
        }
        public void AccessionClientOrder()
        {
            this.m_ClientOrder.Accession(this.m_AccessionOrder.MasterAccessionNo);
            this.SendStatusMessage();
            this.m_AccessionOrder.AccessionSpecimen(this.m_ClientOrder.ClientOrderDetailCollection);

            YellowstonePathology.Business.ClientOrder.Model.EPICClinicalHistoryExtractor epicClinicalHistoryConverter = new Business.ClientOrder.Model.EPICClinicalHistoryExtractor();
            string clinicalhistory = epicClinicalHistoryConverter.ExctractClinicalHistory(this.m_AccessionOrder.SpecialInstructions);

            if (string.IsNullOrEmpty(clinicalhistory) == false)
            {
                if (string.IsNullOrEmpty(this.m_AccessionOrder.ClinicalHistory) == true)
                {
                    this.m_AccessionOrder.ClinicalHistory = clinicalhistory;
                }
                else
                {
                    this.m_AccessionOrder.ClinicalHistory = this.m_AccessionOrder.ClinicalHistory + " " + clinicalhistory;
                }
            }

            this.m_AccessionOrder.PanelSetOrderCollection.FromClientOrder(this.m_ClientOrder, this.m_AccessionOrder, this.m_SystemIdentity);
            this.m_AccessionOrder.PanelSetOrderCollection.HandleReflexTestingFromClientOrder(this.m_ClientOrder, this.m_AccessionOrder, this.m_SystemIdentity);
        }
        public void AccessionClientOrder()
        {
            this.m_ClientOrder.Accession(this.m_AccessionOrder.MasterAccessionNo);
            this.SendStatusMessage();
            this.m_AccessionOrder.AccessionSpecimen(this.m_ClientOrder.ClientOrderDetailCollection);

            YellowstonePathology.Business.ClientOrder.Model.EPICClinicalHistoryExtractor epicClinicalHistoryConverter = new Business.ClientOrder.Model.EPICClinicalHistoryExtractor();
            string clinicalhistory = epicClinicalHistoryConverter.ExctractClinicalHistory(this.m_AccessionOrder.SpecialInstructions);
            if (string.IsNullOrEmpty(clinicalhistory) == false)
            {
                if (string.IsNullOrEmpty(this.m_AccessionOrder.ClinicalHistory) == true)
                {
                    this.m_AccessionOrder.ClinicalHistory = clinicalhistory;
                }
                else
                {
                    this.m_AccessionOrder.ClinicalHistory = this.m_AccessionOrder.ClinicalHistory + " " + clinicalhistory;
                }
            }

            this.m_AccessionOrder.PanelSetOrderCollection.FromClientOrder(this.m_ClientOrder, this.m_AccessionOrder, this.m_SystemIdentity);
            this.m_AccessionOrder.PanelSetOrderCollection.HandleReflexTestingFromClientOrder(this.m_ClientOrder, this.m_AccessionOrder, this.m_SystemIdentity);
        }