コード例 #1
0
 private void ButtonResendHPV1618PantherOrder_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewPantherHPV1618Orders.SelectedItem != null)
     {
         foreach (YellowstonePathology.Business.Test.PantherOrderListItem item in this.ListViewPantherHPV1618Orders.SelectedItems)
         {
             YellowstonePathology.Business.HL7View.Panther.PantherAssay pantherAssay = new Business.HL7View.Panther.PantherAssayHPV1618();
             this.ResendPantherOrder(item, pantherAssay);
         }
         MessageBox.Show("The selected order(s) have been sent.");
     }
 }
コード例 #2
0
        private void HandlePantherOrder()
        {
            if (this.m_PanelSet.SendOrderToPanther == true)
            {
                YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = (YellowstonePathology.Business.Test.AliquotOrder) this.m_TestOrderInfo.OrderTarget;
                YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByAliquotOrderId(aliquotOrder.AliquotOrderId);

                YellowstonePathology.Business.HL7View.Panther.PantherAssay pantherAssay = null;
                switch (this.m_PanelSetOrder.PanelSetId)
                {
                case 14:
                    pantherAssay = new Business.HL7View.Panther.PantherAssayHPV();
                    break;

                case 3:
                    pantherAssay = new Business.HL7View.Panther.PantherAssayNGCT();
                    break;

                case 62:
                case 269:
                    pantherAssay = new Business.HL7View.Panther.PantherAssayHPV1618();
                    break;

                case 61:
                    pantherAssay = new Business.HL7View.Panther.PantherAssayTrich();
                    break;

                default:
                    throw new Exception(this.m_PanelSetOrder.PanelSetName + " is mot implemented yet.");
                }

                this.m_PanelSetOrder.OrderedOnId         = aliquotOrder.AliquotOrderId;
                this.m_PanelSetOrder.OrderedOn           = YellowstonePathology.Business.Specimen.Model.OrderedOn.Aliquot;
                this.m_PanelSetOrder.InstrumentOrderDate = DateTime.Now;

                YellowstonePathology.Business.HL7View.Panther.PantherOrder pantherOrder = new Business.HL7View.Panther.PantherOrder(pantherAssay, specimenOrder, aliquotOrder, this.m_AccessionOrder, this.m_PanelSetOrder, YellowstonePathology.Business.HL7View.Panther.PantherActionCode.NewSample);
                pantherOrder.Send();
            }
        }
コード例 #3
0
        private void HandlePantherOrder()
        {
            if (this.m_PanelSet.SendOrderToPanther == true)
            {
                YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = (YellowstonePathology.Business.Test.AliquotOrder)this.m_TestOrderInfo.OrderTarget;
                YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByAliquotOrderId(aliquotOrder.AliquotOrderId);

                YellowstonePathology.Business.HL7View.Panther.PantherAssay pantherAssay = null;
                switch (this.m_PanelSetOrder.PanelSetId)
                {
                    case 14:
                        pantherAssay = new Business.HL7View.Panther.PantherAssayHPV();
                        break;
                    case 3:
                        pantherAssay = new Business.HL7View.Panther.PantherAssayNGCT();
                        break;
                    case 62:
                        pantherAssay = new Business.HL7View.Panther.PantherAssayHPV1618();
                        break;
                    case 61:
                        pantherAssay = new Business.HL7View.Panther.PantherAssayTrich();
                        break;
                    default:
                        throw new Exception(this.m_PanelSetOrder.PanelSetName +  " is mot implemented yet.");
                }

                this.m_PanelSetOrder.OrderedOnId = aliquotOrder.AliquotOrderId;
                this.m_PanelSetOrder.OrderedOn = YellowstonePathology.Business.Specimen.Model.OrderedOn.Aliquot;

                YellowstonePathology.Business.HL7View.Panther.PantherOrder pantherOrder = new Business.HL7View.Panther.PantherOrder(pantherAssay, specimenOrder, aliquotOrder, this.m_AccessionOrder, this.m_PanelSetOrder, YellowstonePathology.Business.HL7View.Panther.PantherActionCode.NewSample);
                pantherOrder.Send();
            }
        }
コード例 #4
0
 private void ButtonResendHPV1618PantherOrder_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewPantherHPV1618Orders.SelectedItem != null)
     {
         foreach (YellowstonePathology.Business.Test.PantherOrderListItem item in this.ListViewPantherHPV1618Orders.SelectedItems)
         {
             YellowstonePathology.Business.HL7View.Panther.PantherAssay pantherAssay = new Business.HL7View.Panther.PantherAssayHPV1618();
             this.ResendPantherOrder(item, pantherAssay);
         }
         MessageBox.Show("The selected order(s) have been sent.");
     }
 }