private void ButtonPrintCytologyNewLabel_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_AccessionOrder.SpecimenOrderCollection.HasThinPrepFluidSpecimen() == true)
            {
                YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetThinPrep();
                YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = null;
                if (specimenOrder.AliquotOrderCollection.HasThinPrepSlide() == false)
                {
                    aliquotOrder = specimenOrder.AliquotOrderCollection.AddThinPrepSlide(specimenOrder, this.m_AccessionOrder.AccessionDate.Value);
                }
                else
                {
                    aliquotOrder = specimenOrder.AliquotOrderCollection.GetThinPrepSlide();
                }

                YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2 barcode      = new YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2(Business.BarcodeScanning.BarcodePrefixEnum.PSLD, aliquotOrder.AliquotOrderId);
                YellowstonePathology.Business.BarcodeScanning.CytycBarcode    cytycBarcode = YellowstonePathology.Business.BarcodeScanning.CytycBarcode.Parse(this.m_AccessionOrder.MasterAccessionNo);
                Business.Label.Model.HologicSlideLabel hologicSlideLabel = new Business.Label.Model.HologicSlideLabel(this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PLastName, barcode, cytycBarcode);
                Business.Label.Model.HologicSlideLabelPrinter.Print(hologicSlideLabel, Business.User.UserPreferenceInstance.Instance.UserPreference.CytologySlideLabelPrinter, 2);
            }
            else
            {
                MessageBox.Show("Unable to find a Thin Prep Specimen");
            }
        }
 private void PrintThinPrepSlide(YellowstonePathology.Business.Test.AliquotOrder aliquotOrder)
 {
     YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2 barcode      = new YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2(Business.BarcodeScanning.BarcodePrefixEnum.PSLD, aliquotOrder.AliquotOrderId);
     YellowstonePathology.Business.BarcodeScanning.CytycBarcode    cytycBarcode = YellowstonePathology.Business.BarcodeScanning.CytycBarcode.Parse(this.m_AccessionOrder.MasterAccessionNo);
     Business.Label.Model.HologicSlideLabel hologicSlideLabel = new Business.Label.Model.HologicSlideLabel(this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PLastName, barcode, cytycBarcode);
     Business.Label.Model.HologicSlideLabelPrinter.Print(hologicSlideLabel, Business.User.UserPreferenceInstance.Instance.UserPreference.CytologySlideLabelPrinter, 1);
 }
        private void ButtonPrintCytologyLabels_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_AccessionOrder.SpecimenOrderCollection.HasThinPrepFluidSpecimen() == true)
            {
                YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetThinPrep();
                YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = null;
                if (specimenOrder.AliquotOrderCollection.HasThinPrepSlide() == false)
                {
                    aliquotOrder = specimenOrder.AliquotOrderCollection.AddThinPrepSlide(specimenOrder, this.m_AccessionOrder.AccessionDate.Value);
                }
                else
                {
                    aliquotOrder = specimenOrder.AliquotOrderCollection.GetThinPrepSlide();
                }

                YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2  barcode              = new YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2(Business.BarcodeScanning.BarcodePrefixEnum.PSLD, aliquotOrder.AliquotOrderId);
                YellowstonePathology.Business.BarcodeScanning.CytycBarcode     cytycBarcode         = YellowstonePathology.Business.BarcodeScanning.CytycBarcode.Parse(this.m_AccessionOrder.MasterAccessionNo);
                YellowstonePathology.Business.Label.Model.PAPSlideLabel        papSlideLabel        = new Business.Label.Model.PAPSlideLabel(this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PLastName, barcode, cytycBarcode);
                YellowstonePathology.Business.Label.Model.PAPSlideLabelPrinter papSlideLabelPrinter = new Business.Label.Model.PAPSlideLabelPrinter();
                for (int i = 0; i < 2; i++)
                {
                    papSlideLabelPrinter.Queue.Enqueue(papSlideLabel);
                }
                papSlideLabelPrinter.Print();
            }
            else
            {
                MessageBox.Show("Unable to find a Thin Prep Specimen");
            }
        }
Ejemplo n.º 4
0
        public PAPSlideLabel(string patientFirstName, string patientLastName, YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2 barcode,
			YellowstonePathology.Business.BarcodeScanning.CytycBarcode cytycBarcode)
        {
            this.m_PatientFirstName = patientFirstName;
            this.m_PatientLastName = patientLastName;
            this.m_Barcode = barcode;
            this.m_CytycBarcode = cytycBarcode;
        }
Ejemplo n.º 5
0
 public PAPSlideLabel(string patientFirstName, string patientLastName, YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2 barcode,
                      YellowstonePathology.Business.BarcodeScanning.CytycBarcode cytycBarcode)
 {
     this.m_PatientFirstName = patientFirstName;
     this.m_PatientLastName  = patientLastName;
     this.m_Barcode          = barcode;
     this.m_CytycBarcode     = cytycBarcode;
 }
 private void PrintThinPrepSlide(YellowstonePathology.Business.Test.AliquotOrder aliquotOrder)
 {
     YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2  barcode              = new YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2(Business.BarcodeScanning.BarcodePrefixEnum.PSLD, aliquotOrder.AliquotOrderId);
     YellowstonePathology.Business.BarcodeScanning.CytycBarcode     cytycBarcode         = YellowstonePathology.Business.BarcodeScanning.CytycBarcode.Parse(this.m_AccessionOrder.MasterAccessionNo);
     YellowstonePathology.Business.Label.Model.ThinPrepSlide        thinPrepSlide        = new Business.Label.Model.ThinPrepSlide(this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PLastName, barcode, cytycBarcode);
     YellowstonePathology.Business.Label.Model.ThinPrepSlidePrinter thinPrepSlidePrinter = new Business.Label.Model.ThinPrepSlidePrinter();
     thinPrepSlidePrinter.Queue.Enqueue(thinPrepSlide);
     thinPrepSlidePrinter.Print();
 }
 public ThinPrepSlideDirectPrintLabel(string masterAccessionNo, string patientLastName, string patientFirstName,
                                      YellowstonePathology.Business.BarcodeScanning.CytycBarcode cytycBarcode, YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2 barcode)
 {
     this.m_MasterAccessionNo = masterAccessionNo;
     this.m_CytycOCRLine1     = cytycBarcode.LineOne;
     this.m_CytycOCRLine2     = cytycBarcode.LineTwo;
     this.m_PatientLastName   = patientLastName;
     this.m_PatientFirstName  = patientFirstName;
     this.m_CytycBarcode      = cytycBarcode;
     this.m_Barcode           = barcode;
 }
        public ThinPrepSlideDirectPrintLabel(string masterAccessionNo, string patientLastName, string patientFirstName,
			YellowstonePathology.Business.BarcodeScanning.CytycBarcode cytycBarcode, YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2 barcode)
        {
            this.m_MasterAccessionNo = masterAccessionNo;
            this.m_CytycOCRLine1 = cytycBarcode.LineOne;
            this.m_CytycOCRLine2 = cytycBarcode.LineTwo;
            this.m_PatientLastName = patientLastName;
            this.m_PatientFirstName = patientFirstName;
            this.m_CytycBarcode = cytycBarcode;
            this.m_Barcode = barcode;
        }
Ejemplo n.º 9
0
 private void CytologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.CytycBarcode barcode)
 {
     this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                            new Action(
                                delegate()
     {
         if (barcode.IsValidated == true)
         {
             this.ChangeListing(barcode.ReportNo);
         }
         else
         {
             System.Windows.MessageBox.Show("The scan did not result in a valid case, please try again.", "Invalid Scan", MessageBoxButton.OK, MessageBoxImage.Exclamation);
         }
     }));
 }
        private void ButtonPrintCytologyDummyLabel_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPAP();
            YellowstonePathology.Business.OrderIdParser      orderIdParser = new Business.OrderIdParser(panelSetOrder.ReportNo);
            string normalMA = orderIdParser.MasterAccessionNo;
            string dummyMA  = normalMA.Replace("19", "69");

            if (this.m_AccessionOrder.SpecimenOrderCollection.HasThinPrepFluidSpecimen() == true)
            {
                YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetThinPrep();
                YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = specimenOrder.AliquotOrderCollection.GetThinPrepSlide();

                YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2 barcode      = new YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2(Business.BarcodeScanning.BarcodePrefixEnum.PSLD, aliquotOrder.AliquotOrderId);
                YellowstonePathology.Business.BarcodeScanning.CytycBarcode    cytycBarcode = YellowstonePathology.Business.BarcodeScanning.CytycBarcode.Parse(dummyMA);
                Business.Label.Model.HologicSlideLabel hologicSlideLabel = new Business.Label.Model.HologicSlideLabel(this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PLastName, barcode, cytycBarcode);
                Business.Label.Model.HologicSlideLabelPrinter.Print(hologicSlideLabel, Business.User.UserPreferenceInstance.Instance.UserPreference.CytologySlideLabelPrinter, 2);
            }
            else
            {
                MessageBox.Show("Unable to find a Thin Prep Specimen");
            }
        }
Ejemplo n.º 11
0
 private void CytologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.CytycBarcode barcode)
 {
     this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                            new Action(
                                delegate()
     {
         if (barcode.IsValidated == true)
         {
             this.Save(false);
             bool found = false;
             for (int i = 0; i < this.ListViewSearchResults.Items.Count; i++)
             {
                 YellowstonePathology.Business.Search.PathologistSearchResult psr = (YellowstonePathology.Business.Search.PathologistSearchResult) this.ListViewSearchResults.Items[i];
                 if (psr.ReportNo == barcode.ReportNo)
                 {
                     this.ListViewSearchResults.SelectedIndex = i;
                     found = true;
                 }
             }
             if (found == false)
             {
                 this.m_PathologistUI.DoReportNoSearch(barcode.ReportNo);
                 if (this.m_PathologistUI.Search.Results.Count != 0)
                 {
                     this.ListViewSearchResults.SelectedIndex = 0;
                 }
                 else
                 {
                     this.ReleaseLock();
                 }
             }
         }
         else
         {
             System.Windows.MessageBox.Show("The scan did not result in a valid case, please try again.", "Invalid Scan", MessageBoxButton.OK, MessageBoxImage.Exclamation);
         }
     }));
 }
Ejemplo n.º 12
0
 private void CytologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.CytycBarcode cytycBarcode)
 {
     this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                            new Action(
                                delegate()
     {
         YellowstonePathology.UI.MainWindow mainWindow = Application.Current.MainWindow as YellowstonePathology.UI.MainWindow;
         if (((TabItem)mainWindow.TabControlLeftWorkspace.SelectedItem).Tag.ToString() == "Cytology")
         {
             if (cytycBarcode.IsValidated == true)
             {
                 if (this.m_CytologyUI.SetAccessionOrderByReportNo(cytycBarcode.ReportNo))
                 {
                     this.m_CytologyResultsWorkspace.ReportNo = cytycBarcode.ReportNo;
                 }
             }
             else
             {
                 System.Windows.MessageBox.Show("The scanner did not read the label correctly.", "Scan not successful.", MessageBoxButton.OK, MessageBoxImage.Exclamation);
             }
         }
     }));
 }
Ejemplo n.º 13
0
 private void HyperLinkPrintSlide_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewAliquotOrders.SelectedItem != null)
     {
         YellowstonePathology.Business.Test.AliquotOrder                         aliquotOrder = (YellowstonePathology.Business.Test.AliquotOrder) this.ListViewAliquotOrders.SelectedItem;
         YellowstonePathology.Business.BarcodeScanning.CytycBarcode              cytycBarcode = Business.BarcodeScanning.CytycBarcode.Parse(this.m_AccessionOrder.MasterAccessionNo);
         YellowstonePathology.Business.BarcodeScanning.BarcodeVersion2           barcode      = new Business.BarcodeScanning.BarcodeVersion2(Business.BarcodeScanning.BarcodePrefixEnum.PSLD, aliquotOrder.AliquotOrderId);
         YellowstonePathology.Business.Label.Model.ThinPrepSlideDirectPrintLabel thinPrepSlideDirectPrintLabel = new Business.Label.Model.ThinPrepSlideDirectPrintLabel(this.m_SpecimenOrder.MasterAccessionNo, this.m_AccessionOrder.PLastName, this.m_AccessionOrder.PFirstName, cytycBarcode, barcode);
         YellowstonePathology.Business.Label.Model.ThermoFisherPAPSlidePrinter   thermoFisherPAPSlidePrinter   = new Business.Label.Model.ThermoFisherPAPSlidePrinter();
         thermoFisherPAPSlidePrinter.Queue.Add(thinPrepSlideDirectPrintLabel);
         thermoFisherPAPSlidePrinter.Print();
     }
 }