Example #1
0
        public TaskOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.Task.Model.TaskOrder taskOrder,
			PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_TaskOrder = taskOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_TaskAssignmentList = YellowstonePathology.Business.Task.Model.TaskAssignment.GetTaskAssignmentList();
            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            this.m_PaymentTypeList = new List<string>();
            this.m_PaymentTypeList.Add("SENDER");
            this.m_PaymentTypeList.Add("THIRD_PARTY");
            this.m_PaymentTypeList.Add("RECIPIENT");

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            Loaded += TaskOrderPage_Loaded;
            Unloaded += TaskOrderPage_Unloaded;
        }
        private void BarcodeScanPort_AliquotOrderIdReceived(string scanData)
        {
            this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                                   new Action(
                                       delegate()
            {
                if (this.m_SpecimenOrder.AliquotOrderCollection.Exists(scanData) == true)
                {
                    YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
                    YellowstonePathology.Business.Facility.Model.LocationCollection locationCollection = YellowstonePathology.Business.Facility.Model.LocationCollection.GetAllLocations();
                    YellowstonePathology.Business.Facility.Model.Facility thisFacility = facilityCollection.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId);
                    YellowstonePathology.Business.Facility.Model.Location thisLocation = locationCollection.GetLocation(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LocationId);

                    YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_SpecimenOrder.AliquotOrderCollection.GetByAliquotOrderId(scanData);
                    aliquotOrder.Validate();

                    string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                    YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new Business.MaterialTracking.Model.MaterialTrackingLog(objectId, scanData, null, thisFacility.FacilityId, thisFacility.FacilityName,
                                                                                                                                                                           thisLocation.LocationId, thisLocation.Description, "Panther Aliquot Scanned", "Panther aliquot scanned at cytology aliquoting", "Aliquot", this.m_AccessionOrder.MasterAccessionNo, aliquotOrder.Label, aliquotOrder.ClientAccessioned);
                    YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingLog, Window.GetWindow(this));

                    if (this.m_SpecimenOrder.AliquotOrderCollection.HasUnvalidatedItems() == false)
                    {
                        this.Finished(this, new EventArgs());
                    }
                }
                else
                {
                    System.Windows.MessageBox.Show("The aliquot scanned does not appear to belong to this specimen.");
                }
            }));
        }
        public AccessionOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,             
            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,        
            PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_ClientOrder = clientOrder;

            if (YellowstonePathology.Business.User.SystemIdentity.Instance.User.IsUserInRole(Business.User.SystemUserRoleDescriptionEnum.Pathologist) == true)
            {
                this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetPathologistPanelSets();
            }
            else
            {
                this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets();
            }

            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_CaseTypeList = new OrderPageCaseTypeList();
            this.m_OrderAsResearchTesting = false;

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(AccessionOrderPage_Loaded);
        }
        public UserPreferences(YellowstonePathology.Business.User.UserPreference userPreference)
        {
            this.m_UserPreferenceList             = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetAllUserPreferences();
            this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection();
            this.m_CassettePrinterCollection      = new Business.Label.Model.CassettePrinterCollection();
            this.m_FacilityCollection             = Business.Facility.Model.FacilityCollection.Instance;

            System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer();
            this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections });

            this.m_ApplicationVersion = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this);

            InitializeComponent();

            if (userPreference == null)
            {
                this.m_UserPreference  = new Business.User.UserPreference();
                this.m_HostNameEnabled = true;
            }
            else
            {
                this.m_UserPreference  = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullUserPreference(userPreference.HostName, this);
                this.m_HostNameEnabled = false;
            }

            this.m_PageScannerCollection = new Business.Common.PageScannerCollection();
            this.DataContext             = this;
            this.Loaded  += new RoutedEventHandler(UserPreferences_Loaded);
            this.Closing += UserPreferences_Closing;
        }
        public AccessionOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                  YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
                                  PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder     = accessionOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_ClientOrder = clientOrder;

            if (YellowstonePathology.Business.User.SystemIdentity.Instance.User.IsUserInRole(Business.User.SystemUserRoleDescriptionEnum.Pathologist) == true)
            {
                this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetPathologistPanelSets();
            }
            else
            {
                this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets();
            }

            this.m_FacilityCollection     = Business.Facility.Model.FacilityCollection.Instance;
            this.m_CaseTypeList           = new OrderPageCaseTypeList();
            this.m_OrderAsResearchTesting = false;

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(AccessionOrderPage_Loaded);
        }
        public MaterialBatchPage(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch,
			YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection,
            bool backButtonVisible, bool nextButtonVisible, bool finishButtonVisible, 
			bool useMasterAccessionNo, string masterAccessionNo, YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_LocationCollection = YellowstonePathology.Business.Facility.Model.LocationCollection.GetAllLocations();

            this.m_PageNavigator = pageNavigator;

            this.m_MaterialTrackingBatch = materialTrackingBatch;
            this.m_MaterialTrackingLogCollection = materialTrackingLogCollection;

            this.m_UserMasterAccessionNo = useMasterAccessionNo;
            this.m_MasterAccessionNo = masterAccessionNo;

            if (this.m_UserMasterAccessionNo == true)
            {
                this.m_MaterialTrackingLogViewCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingLogViewCollectionByBatchIdMasterAccessionNo(this.m_MaterialTrackingBatch.MaterialTrackingBatchId, masterAccessionNo);
            }
            else
            {
                this.m_MaterialTrackingLogViewCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingLogViewCollectionByBatchId(this.m_MaterialTrackingBatch.MaterialTrackingBatchId);
            }

            this.m_BackButtonVisible = backButtonVisible;
            this.m_NextButtonVisible = nextButtonVisible;
            this.m_FinishButtonVisible = finishButtonVisible;

            InitializeComponent();
            DataContext = this;

            Loaded += new RoutedEventHandler(MaterialBatchPage_Loaded);
            Unloaded += new RoutedEventHandler(MaterialBatchPage_Unloaded);
        }
Example #7
0
        public MaterialBatchPage(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch,
                                 YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection,
                                 bool backButtonVisible, bool nextButtonVisible, bool finishButtonVisible,
                                 bool useMasterAccessionNo, string masterAccessionNo, YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_LocationCollection = YellowstonePathology.Business.Facility.Model.LocationCollection.GetAllLocations();

            this.m_PageNavigator = pageNavigator;

            this.m_MaterialTrackingBatch         = materialTrackingBatch;
            this.m_MaterialTrackingLogCollection = materialTrackingLogCollection;

            this.m_UserMasterAccessionNo = useMasterAccessionNo;
            this.m_MasterAccessionNo     = masterAccessionNo;

            if (this.m_UserMasterAccessionNo == true)
            {
                this.m_MaterialTrackingLogViewCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingLogViewCollectionByBatchIdMasterAccessionNo(this.m_MaterialTrackingBatch.MaterialTrackingBatchId, masterAccessionNo);
            }
            else
            {
                this.m_MaterialTrackingLogViewCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingLogViewCollectionByBatchId(this.m_MaterialTrackingBatch.MaterialTrackingBatchId);
            }

            this.m_BackButtonVisible   = backButtonVisible;
            this.m_NextButtonVisible   = nextButtonVisible;
            this.m_FinishButtonVisible = finishButtonVisible;

            InitializeComponent();
            DataContext = this;

            Loaded   += new RoutedEventHandler(MaterialBatchPage_Loaded);
            Unloaded += new RoutedEventHandler(MaterialBatchPage_Unloaded);
        }
        private void HistologyBlockScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode)
        {
            this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
            {
                if (this.m_SpecimenOrder.AliquotOrderCollection.Exists(barcode.ID))
                {
                    YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
                    YellowstonePathology.Business.Facility.Model.LocationCollection locationCollection = YellowstonePathology.Business.Facility.Model.LocationCollection.GetAllLocations();
                    YellowstonePathology.Business.Facility.Model.Facility thisFacility = facilityCollection.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId);
                    YellowstonePathology.Business.Facility.Model.Location thisLocation = locationCollection.GetLocation(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LocationId);

                    YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_SpecimenOrder.AliquotOrderCollection.GetByAliquotOrderId(barcode.ID);
                    string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                    YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new Business.MaterialTracking.Model.MaterialTrackingLog(objectId, barcode.ID, null, thisFacility.FacilityId, thisFacility.FacilityName,
                                                                                                                                                                           thisLocation.LocationId, thisLocation.Description, "Block Scanned", "Block Scanned At Gross", "Aliquot", this.m_AccessionOrder.MasterAccessionNo, aliquotOrder.Label, aliquotOrder.ClientAccessioned);
                    YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingLog, Window.GetWindow(this));

                    this.m_SpecimenOrder.AliquotOrderCollection.ValidateBlock(barcode.ID, this.m_SystemIdentity.User.UserId);
                    this.GrossBlockManagementView = new Business.View.GrossBlockManagementView(this.m_AccessionOrder, this.m_CaseNotesDocument, this.m_SpecimenOrder);
                    this.SetupSpecimenView();

                    if (this.m_SpecimenOrder.AliquotOrderCollection.HasUnverifiedBlocks() == false)
                    {
                        CustomEventArgs.SpecimenOrderReturnEventArgs specimenOrderReturnEventArgs = new CustomEventArgs.SpecimenOrderReturnEventArgs(this.m_SpecimenOrder);
                        this.Next(this, specimenOrderReturnEventArgs);
                    }
                }
                else
                {
                    MessageBox.Show("The block scanned is not from this specimen.", "Scanned Block Mismatch", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                }
            }
                                                                                                                       ));
        }
Example #9
0
        public FacilityEntry(YellowstonePathology.Business.Facility.Model.Facility facility, bool isNewFacility)
        {
            this.m_IsNewFacility = isNewFacility;
            if (isNewFacility == true)
            {
                this.m_Facility = new Business.Facility.Model.Facility();
            }
            else
            {
                this.m_Facility = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullFacility(facility.FacilityId, this);
                if (this.m_Facility.ClientId != 0)
                {
                    this.m_Client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_Facility.ClientId);
                }
            }

            this.m_PaymentTypeList = new List <string>();
            this.m_PaymentTypeList.Add("SENDER");
            this.m_PaymentTypeList.Add("THIRD_PARTY");
            this.m_PaymentTypeList.Add("RECIPIENT");

            this.m_AccessioningFacilities = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllYPFacilities();
            this.m_AccessioningFacilities.Insert(0, new Business.Facility.Model.Facility());

            InitializeComponent();
            this.DataContext = this;
            Closing         += FacilityEntry_Closing;
        }
Example #10
0
        public TaskOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                             YellowstonePathology.Business.Task.Model.TaskOrder taskOrder,
                             PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder     = accessionOrder;
            this.m_TaskOrder          = taskOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.Instance;
            this.m_TaskAssignmentList = YellowstonePathology.Business.Task.Model.TaskAssignment.GetTaskAssignmentList();
            this.m_BarcodeScanPort    = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            this.m_PaymentTypeList = new List <string>();
            this.m_PaymentTypeList.Add("SENDER");
            this.m_PaymentTypeList.Add("THIRD_PARTY");
            this.m_PaymentTypeList.Add("RECIPIENT");

            this.m_FaxDocumentNameList = new List <string>();
            this.m_FaxDocumentNameList.Add("AdditionalTestingNotification");
            this.m_FaxDocumentNameList.Add("PreauthorizationNotification");

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            Loaded   += TaskOrderPage_Loaded;
            Unloaded += TaskOrderPage_Unloaded;
        }
        private void ButtonNewFacility_Click(object sender, RoutedEventArgs e)
        {
            FacilityEntry facilityEntry = new FacilityEntry(null, true);

            facilityEntry.ShowDialog();
            this.m_FacilityCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetAllFacilities();
            this.NotifyPropertyChanged("FacilityCollection");
        }
Example #12
0
        public static BillingComponent GetBillingComponent(YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder)
        {
            BillingComponent result = null;

            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            YellowstonePathology.Business.Facility.Model.Facility           technicalComponentBillingFacility    = facilityCollection.GetByFacilityId(panelSetOrder.TechnicalComponentBillingFacilityId);
            YellowstonePathology.Business.Facility.Model.Facility           professionalComponentBillingFacility = facilityCollection.GetByFacilityId(panelSetOrder.ProfessionalComponentBillingFacilityId);

            if (panelSetOrder.HasTechnicalComponent == true && panelSetOrder.HasProfessionalComponent == true)
            {
                if (YellowstonePathology.Business.Facility.Model.FacilityCollection.IsAYellowstonePathologyFacility(technicalComponentBillingFacility) &&
                    YellowstonePathology.Business.Facility.Model.FacilityCollection.IsAYellowstonePathologyFacility(professionalComponentBillingFacility) == true)
                {
                    result = new BillingComponentGlobal(panelSetOrder);
                }
                else if (technicalComponentBillingFacility.IsReferenceLab == true && professionalComponentBillingFacility.IsReferenceLab == true)
                {
                    result = new BillingComponentNoBilling(panelSetOrder);
                }
                else if (YellowstonePathology.Business.Facility.Model.FacilityCollection.IsAYellowstonePathologyFacility(technicalComponentBillingFacility) == true)
                {
                    result = new BillingComponentTechnicalOnly(panelSetOrder);
                }
                else if (YellowstonePathology.Business.Facility.Model.FacilityCollection.IsAYellowstonePathologyFacility(professionalComponentBillingFacility) == true)
                {
                    result = new BillingComponentProfessionalOnly(panelSetOrder);
                }
            }
            else if (panelSetOrder.HasTechnicalComponent == true && panelSetOrder.HasProfessionalComponent == false)
            {
                if (technicalComponentBillingFacility.IsReferenceLab == false)
                {
                    result = new BillingComponentTechnicalOnly(panelSetOrder);
                }
                else
                {
                    result = new BillingComponentNoBilling(panelSetOrder);
                }
            }
            else if (panelSetOrder.HasTechnicalComponent == false && panelSetOrder.HasProfessionalComponent == true)
            {
                if (professionalComponentBillingFacility.IsReferenceLab == false)
                {
                    result = new BillingComponentProfessionalOnly(panelSetOrder);
                }
                else
                {
                    result = new BillingComponentNoBilling(panelSetOrder);
                }
            }
            else if (panelSetOrder.HasTechnicalComponent == false && panelSetOrder.HasProfessionalComponent == false)
            {
                result = new BillingComponentNoBilling(panelSetOrder);
            }

            return(result);
        }
        public OrderSelectionPage(YellowstonePathology.Business.Facility.Model.Facility facility)
        {
            this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByFacility(facility);
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            InitializeComponent();

            this.DataContext = this;
        }
        public OrderSelectionPage(YellowstonePathology.Business.Facility.Model.Facility facility)
        {
            this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByFacility(facility);
            this.m_FacilityCollection     = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            InitializeComponent();

            this.DataContext = this;
        }
        public ProviderLookupDialog()
        {
            this.m_ClientGroupCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientGroupCollection();
            this.m_FacilityCollection    = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetAllFacilities();
            InitializeComponent();
            DataContext = this;
            this.TextBoxProviderName.Focus();

            Closing += ProviderLookupDialog_Closing;
        }
Example #16
0
        private void AddMaterialTrackingLog(YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder)
        {
            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            YellowstonePathology.Business.Facility.Model.LocationCollection locationCollection = YellowstonePathology.Business.Facility.Model.LocationCollection.GetAllLocations();
            YellowstonePathology.Business.Facility.Model.Facility           thisFacility       = facilityCollection.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId);
            YellowstonePathology.Business.Facility.Model.Location           thisLocation       = locationCollection.GetLocation(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LocationId);

            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new Business.MaterialTracking.Model.MaterialTrackingLog(objectId, specimenOrder.SpecimenOrderId, null, thisFacility.FacilityId, thisFacility.FacilityName,
                                                                                                                                                                   thisLocation.LocationId, thisLocation.Description, "Container Scan", "Container Scanned At Gross", "Specimen", this.m_AccessionOrder.MasterAccessionNo, specimenOrder.Description, specimenOrder.ClientAccessioned);
            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingLog, m_HistologyGrossDialog);
        }
Example #17
0
        private void AddMaterialTrackingLog(YellowstonePathology.Business.Slide.Model.SlideOrder slideOrder)
        {
            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            YellowstonePathology.Business.Facility.Model.LocationCollection locationCollection = YellowstonePathology.Business.Facility.Model.LocationCollection.GetAllLocations();
            YellowstonePathology.Business.Facility.Model.Facility           thisFacility       = facilityCollection.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId);
            YellowstonePathology.Business.Facility.Model.Location           thisLocation       = locationCollection.GetLocation(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LocationId);

            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new Business.MaterialTracking.Model.MaterialTrackingLog(objectId, slideOrder.SlideOrderId, null, thisFacility.FacilityId, thisFacility.FacilityName,
                                                                                                                                                                   thisLocation.LocationId, thisLocation.Description, "Slide Scanned", "Slide Scanned At Cutting", "SlideOrder", this.m_AccessionOrder.MasterAccessionNo, slideOrder.Label, slideOrder.ClientAccessioned);
            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingLog, Window.GetWindow(this));
        }
Example #18
0
        public HistologySlideLabelDocument(YellowstonePathology.Business.Slide.Model.SlideOrderCollection slideOrderCollection)
        {
            this.m_PrintDocument       = new System.Drawing.Printing.PrintDocument();
            this.m_HistologySlideQueue = new Queue <Business.BarcodeScanning.HistologySlide>();
            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();

            foreach (YellowstonePathology.Business.Slide.Model.SlideOrder slideOrder in slideOrderCollection)
            {
                YellowstonePathology.Business.BarcodeScanning.HistologySlide histologySlide = new Business.BarcodeScanning.HistologySlide(slideOrder.SlideOrderId,
                                                                                                                                          slideOrder.ReportNo, slideOrder.Label, slideOrder.PatientLastName, slideOrder.TestName, slideOrder.Location);
                this.m_HistologySlideQueue.Enqueue(histologySlide);
            }
        }
        private void ListBoxFacility_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewFacilities.SelectedItem != null)
            {
                YellowstonePathology.Business.Facility.Model.Facility listFacility   = (YellowstonePathology.Business.Facility.Model.Facility) this.ListViewFacilities.SelectedItem;
                YellowstonePathology.Business.Facility.Model.Facility pulledFacility = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullFacility(listFacility.FacilityId, this);

                FacilityEntry facilityEntry = new FacilityEntry(pulledFacility, false);
                facilityEntry.ShowDialog();
                this.m_FacilityCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetAllFacilities();
                this.NotifyPropertyChanged("FacilityCollection");
            }
        }
        public AssignmentPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_IsLoaded = false;
            this.m_AccessionOrder = accessionOrder;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);

            InitializeComponent();

            DataContext = this;
            this.Loaded += new RoutedEventHandler(AssignmentPage_Loaded);
            Unloaded += AssignmentPage_Unloaded;
        }
Example #21
0
        public AssignmentPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_IsLoaded           = false;
            this.m_AccessionOrder     = accessionOrder;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);

            InitializeComponent();

            DataContext  = this;
            this.Loaded += new RoutedEventHandler(AssignmentPage_Loaded);
            Unloaded    += AssignmentPage_Unloaded;
        }
Example #22
0
        private YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog AddMaterialTrackingLogScan(string materialId, string materialType, string materialTrackingBatchId)
        {
            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            YellowstonePathology.Business.Facility.Model.LocationCollection locationCollection = Business.Facility.Model.LocationCollection.GetAllLocations();

            YellowstonePathology.Business.Facility.Model.Facility thisFacility = facilityCollection.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId);
            YellowstonePathology.Business.Facility.Model.Location thisLocation = locationCollection.GetLocation(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LocationId);

            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new Business.MaterialTracking.Model.MaterialTrackingLog(objectId, materialId, materialTrackingBatchId, thisFacility.FacilityId, thisFacility.FacilityName, thisLocation.LocationId, thisLocation.Description, materialType);
            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingLog, this.m_PageNavigator.PrimaryMonitorWindow);
            this.m_MaterialTrackingLogCollection.Add(materialTrackingLog);
            return(materialTrackingLog);
        }
Example #23
0
        private void AddMaterialTrackingLog(YellowstonePathology.Business.Test.AliquotOrder aliquotOrder)
        {
            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            YellowstonePathology.Business.Facility.Model.LocationCollection locationCollection = YellowstonePathology.Business.Facility.Model.LocationCollection.GetAllLocations();
            YellowstonePathology.Business.Facility.Model.Facility           thisFacility       = facilityCollection.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId);
            YellowstonePathology.Business.Facility.Model.Location           thisLocation       = locationCollection.GetLocation(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LocationId);
            string scanLocation = "Block Scanned At " + YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.HostName;

            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLog materialTrackingLog = new Business.MaterialTracking.Model.MaterialTrackingLog(objectId, aliquotOrder.AliquotOrderId, null, thisFacility.FacilityId, thisFacility.FacilityName,
                                                                                                                                                                   thisLocation.LocationId, thisLocation.Description, "Block Scanned", scanLocation, "Aliquot", this.m_AccessionOrder.MasterAccessionNo, aliquotOrder.Label, aliquotOrder.ClientAccessioned);

            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingLog, Window.GetWindow(this));
            this.m_MaterialTrackingLogCollection.Insert(0, materialTrackingLog);
        }
        public ReportOrderDetailPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder     = accessionOrder;
            this.m_PanelSetOrder      = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
            this.m_SystemIdentity     = systemIdentity;
            this.m_UserCollection     = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            this.m_ReportDocumentPath = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNamePDF(orderIdParser);

            InitializeComponent();

            DataContext   = this;
            this.Closing += new System.ComponentModel.CancelEventHandler(ReportOrderDetailPage_Closing);
        }
        public ReportOrderDetailPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_PanelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
            this.m_SystemIdentity = systemIdentity;
            this.m_UserCollection = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            this.m_ReportDocumentPath = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNamePDF(orderIdParser);

            InitializeComponent();

            DataContext = this;
            this.Closing += new System.ComponentModel.CancelEventHandler(ReportOrderDetailPage_Closing);
        }
Example #26
0
        public SlideLabel(YellowstonePathology.Business.Test.AliquotOrder aliquotOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AliquotOrder   = aliquotOrder;
            this.m_AccessionOrder = accessionOrder;

            this.m_MasterAccessionNo = accessionOrder.MasterAccessionNo;
            YellowstonePathology.Business.Patient.Model.Patient patient = new YellowstonePathology.Business.Patient.Model.Patient(accessionOrder.PFirstName, accessionOrder.PLastName);
            this.m_TruncatedFirstName = patient.GetTruncatedFirstName(12);
            this.m_TruncatedLastName  = patient.GetTruncatedLastName(12);
            this.m_SlideId            = aliquotOrder.Label;

            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            YellowstonePathology.Business.Facility.Model.Facility           facility           = facilityCollection.GetByFacilityId(accessionOrder.AccessioningFacilityId);

            this.m_LocationDescription = facility.LocationAbbreviation;
        }
Example #27
0
        public FlowUI(object writer)
        {
            this.m_Writer        = writer;
            this.m_FlowLogSearch = new FlowLogSearch();

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;
            if (this.m_SystemIdentity.User.IsUserInRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist))
            {
                this.m_FlowLogSearch.SetByLeukemiaNotFinal();
            }
            else
            {
                this.m_FlowLogSearch.SetByAccessionMonth(DateTime.Now);
            }

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_MedTechUsers     = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.MedTech, true);

            this.m_FlowPanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetFlowPanelSets(false);

            this.m_FlowComment = new FlowComment();
            this.m_FlowComment.FlowCommentCollection.SetFillCommandAll();
            this.m_FlowComment.FlowCommentCollection.Fill();

            this.m_Marker = new Marker();
            this.m_Marker.MarkerCollection.SetFillCommandAll();
            this.m_Marker.MarkerCollection.Fill();

            this.m_FlowCaseValidation = new FlowCaseValidation();

            this.m_ICDCodeList = new YellowstonePathology.Business.Billing.ICDCodeList();
            this.m_ICDCodeList.SetFillCommandByFlowCodes();
            this.m_ICDCodeList.Fill();

            this.m_FlowPanelList = new FlowPanelList();
            this.m_FlowPanelList.SetFillCommandByAll();
            this.m_FlowPanelList.Fill();

            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_CaseDocumentCollection = new Document.CaseDocumentCollection();
            this.m_PatientHistoryList     = new YellowstonePathology.Business.Patient.Model.PatientHistoryList();
            this.m_PanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll();

            this.Search();
        }
Example #28
0
        public FlowUI(object writer)
        {
            this.m_Writer = writer;
            this.m_FlowLogSearch = new FlowLogSearch();

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;
            if (this.m_SystemIdentity.User.IsUserInRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist))
            {
                this.m_FlowLogSearch.SetByLeukemiaNotFinal();
            }
            else
            {
                this.m_FlowLogSearch.SetByAccessionMonth(DateTime.Now);
            }

            this.m_PathologistUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.Pathologist, true);
            this.m_MedTechUsers = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetUsersByRole(YellowstonePathology.Business.User.SystemUserRoleDescriptionEnum.MedTech, true);

            this.m_FlowPanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetFlowPanelSets(false);

            this.m_FlowComment = new FlowComment();
            this.m_FlowComment.FlowCommentCollection.SetFillCommandAll();
            this.m_FlowComment.FlowCommentCollection.Fill();

            this.m_Marker = new Marker();
            this.m_Marker.MarkerCollection.SetFillCommandAll();
            this.m_Marker.MarkerCollection.Fill();

            this.m_FlowCaseValidation = new FlowCaseValidation();

            this.m_ICDCodeList = new YellowstonePathology.Business.Billing.ICDCodeList();
            this.m_ICDCodeList.SetFillCommandByFlowCodes();
            this.m_ICDCodeList.Fill();

            this.m_FlowPanelList = new FlowPanelList();
            this.m_FlowPanelList.SetFillCommandByAll();
            this.m_FlowPanelList.Fill();

            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_CaseDocumentCollection = new Document.CaseDocumentCollection();
            this.m_PatientHistoryList = new YellowstonePathology.Business.Patient.Model.PatientHistoryList();
            this.m_PanelSets = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll();

            this.Search();
        }
        private void HyperlinkReceiveMaterial_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            YellowstonePathology.Business.Facility.Model.Facility fromFacility = new YellowstonePathology.Business.Facility.Model.NullFacility();
            YellowstonePathology.Business.Facility.Model.Location fromLocation = new YellowstonePathology.Business.Facility.Model.LocationDefinitions.NullLocation();

            YellowstonePathology.Business.Facility.Model.Facility toFacility = facilityCollection.GetByFacilityId(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.FacilityId);
            YellowstonePathology.Business.Facility.Model.Location toLocation = toFacility.Locations.GetLocation(YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference.LocationId);

            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch(objectId, null, fromFacility, fromLocation, toFacility, toLocation, this.m_MasterAccessionNo);

            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingBatch, Window.GetWindow(this));
            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection = new Business.MaterialTracking.Model.MaterialTrackingLogCollection();
            this.ViewBatch(this, new YellowstonePathology.UI.CustomEventArgs.MaterialTrackingBatchEventArgs(materialTrackingBatch, materialTrackingLogCollection));
        }
        private void HyperlinkReceiveMaterialFromBillings_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();

            YellowstonePathology.Business.Facility.Model.Facility fromFacility = new YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings();
            YellowstonePathology.Business.Facility.Model.Location fromLocation = new YellowstonePathology.Business.Facility.Model.LocationDefinitions.NullLocation();

            YellowstonePathology.Business.Facility.Model.Facility toFacility = new YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteCody();
            YellowstonePathology.Business.Facility.Model.Location toLocation = new Business.Facility.Model.LocationDefinitions.PamCleggOffice();

            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch(objectId, "Receive material from Billings", fromFacility, fromLocation, toFacility, toLocation, this.m_MasterAccessionNo);
            YellowstonePathology.Business.Persistence.DocumentGateway.Instance.InsertDocument(materialTrackingBatch, Window.GetWindow(this));

            YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection materialTrackingLogCollection = new Business.MaterialTracking.Model.MaterialTrackingLogCollection();
            this.ViewBatch(this, new YellowstonePathology.UI.CustomEventArgs.MaterialTrackingBatchEventArgs(materialTrackingBatch, materialTrackingLogCollection));
        }
        public AccessionOrderPage(ClientOrderReceivingHandler clientOrderReceivingHandler, PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder = clientOrderReceivingHandler.AccessionOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_ClientOrder = clientOrderReceivingHandler.ClientOrder;

            this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets();
            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_CaseTypeList = new OrderPageCaseTypeList();

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(AccessionOrderPage_Loaded);
        }
        public AccessionOrderPage(ClientOrderReceivingHandler clientOrderReceivingHandler, PageNavigationModeEnum pageNavigationMode)
        {
            this.m_AccessionOrder     = clientOrderReceivingHandler.AccessionOrder;
            this.m_PageNavigationMode = pageNavigationMode;

            this.m_ClientOrder = clientOrderReceivingHandler.ClientOrder;

            this.m_PanelSetCollectionView = Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets();
            this.m_FacilityCollection     = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();

            this.m_CaseTypeList = new OrderPageCaseTypeList();

            InitializeComponent();

            this.SetButtonVisibility();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(AccessionOrderPage_Loaded);
        }
 private void ButtonDeleteFacility_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewFacilities.SelectedItem != null)
     {
         YellowstonePathology.Business.Facility.Model.Facility facility     = (YellowstonePathology.Business.Facility.Model.Facility) this.ListViewFacilities.SelectedItem;
         YellowstonePathology.Business.Rules.MethodResult      methodResult = this.CanDeleteFacililty(facility);
         if (methodResult.Success == true)
         {
             this.DeleteFacility(facility);
             YellowstonePathology.Business.Facility.Model.FacilityCollection.Refresh();
             this.m_FacilityCollection = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetAllFacilities();
             this.NotifyPropertyChanged("FacilityCollection");
         }
         else
         {
             MessageBox.Show(methodResult.Message, "Unable to delete at this time", MessageBoxButton.OK, MessageBoxImage.Exclamation);
         }
     }
 }
Example #34
0
        public UserPreferences()
        {
            this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection();
            this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference;

            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_LocationCollection = new Business.Facility.Model.LocationCollection();

            System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer();
            this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections });

            this.m_ApplicationVersion = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this);

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(UserPreferences_Loaded);
            this.Closing += UserPreferences_Closing;
        }
        public UserPreferences()
        {
            this.m_MolecularLabelFormatCollection = YellowstonePathology.Business.Label.Model.LabelFormatCollection.GetMolecularLabelCollection();
            this.m_UserPreference = YellowstonePathology.Business.User.UserPreferenceInstance.Instance.UserPreference;

            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_LocationCollection = new Business.Facility.Model.LocationCollection();

            System.Printing.LocalPrintServer printServer = new System.Printing.LocalPrintServer();
            this.m_PrintQueueCollection = printServer.GetPrintQueues(new[] { System.Printing.EnumeratedPrintQueueTypes.Local, System.Printing.EnumeratedPrintQueueTypes.Connections });

            this.m_ApplicationVersion     = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.GetApplicationVersion(this);
            this.m_ProcessorRunCollection = Business.Surgical.ProcessorRunCollection.GetAll(true);

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(UserPreferences_Loaded);
            this.Closing    += UserPreferences_Closing;
        }
        public ClientFedxDialog(YellowstonePathology.Business.Facility.Model.Facility facility)
        {
            this.m_FakeAccessionNo = "FromClnt";
            this.m_Facility        = facility;
            if (this.m_Facility != null)
            {
                this.SetShipTo(this.m_Facility);
            }

            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.Instance;

            this.m_PaymentTypeList = new List <string>();
            this.m_PaymentTypeList.Add("SENDER");
            this.m_PaymentTypeList.Add("THIRD_PARTY");
            this.m_PaymentTypeList.Add("RECIPIENT");

            InitializeComponent();

            DataContext = this;
        }
Example #37
0
        private bool IsProfessionalBillingFacilityValid()
        {
            bool result = true;

            YellowstonePathology.Business.Facility.Model.FacilityCollection facilityCollection            = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            YellowstonePathology.Business.Facility.Model.Facility           professionalComponentFacility = facilityCollection.GetByFacilityId(this.m_PanelSetOrder.ProfessionalComponentFacilityId);

            YellowstonePathology.Business.Facility.Model.ClientBillingFacilityCollection clientBillingFacilityCollection = new YellowstonePathology.Business.Facility.Model.ClientBillingFacilityCollection();
            YellowstonePathology.Business.Rules.MethodResult professionalResult = clientBillingFacilityCollection.FindMatch(this.m_PanelSetOrder.ProfessionalComponentFacilityId, this.m_PanelSetOrder.ProfessionalComponentBillingFacilityId, this.m_AccessionOrder.ClientId, "Professional");

            if (professionalResult.Success == false)
            {
                MessageBoxResult messageBoxResult = MessageBox.Show(professionalResult.Message, "Are you sure you want to continue?", MessageBoxButton.YesNo);
                if (messageBoxResult == MessageBoxResult.No)
                {
                    result = false;
                }
            }

            return(result);
        }
Example #38
0
        public BillingPage(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ReportNo       = reportNo;

            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_FacilityCollection.Insert(0, new Business.Facility.Model.NullFacility());

            this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);
            this.m_PanelSetOrderCPTCodeCollection     = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection;
            this.m_PanelSetOrderCPTCodeBillCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection;

            this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_ReportNo);
            this.m_PageHeaderText         = "Billing For: " + this.m_AccessionOrder.PatientDisplayName + " - " + this.m_AccessionOrder.PBirthdate.Value.ToShortDateString();

            InitializeComponent();

            DataContext  = this;
            this.Loaded += new RoutedEventHandler(BillingPage_Loaded);
            Unloaded    += BillingPage_Unloaded;
        }
Example #39
0
        public BillingPage(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_ReportNo = reportNo;

            this.m_FacilityCollection = YellowstonePathology.Business.Facility.Model.FacilityCollection.GetAllFacilities();
            this.m_FacilityCollection.Insert(0, new Business.Facility.Model.NullFacility());

            this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);
            this.m_PanelSetOrderCPTCodeCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeCollection;
            this.m_PanelSetOrderCPTCodeBillCollection = this.m_PanelSetOrder.PanelSetOrderCPTCodeBillCollection;

            this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_ReportNo);
            this.m_PageHeaderText = "Billing For: " + this.m_AccessionOrder.PatientDisplayName + " - " + this.m_AccessionOrder.PBirthdate.Value.ToShortDateString();

            InitializeComponent();

            DataContext = this;
            this.Loaded += new RoutedEventHandler(BillingPage_Loaded);
            Unloaded += BillingPage_Unloaded;
        }
        public ReportOrderDetailPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string reportNo, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_AccessionOrder     = accessionOrder;
            this.m_PanelSetOrder      = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
            this.m_SystemIdentity     = systemIdentity;
            this.m_UserCollection     = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection;
            this.m_FacilityCollection = Business.Facility.Model.FacilityCollection.Instance;

            YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            this.m_ReportDocumentPath = YellowstonePathology.Business.Document.CaseDocument.GetCaseFileNamePDF(orderIdParser);

            this.m_ResultDocumentSources = new List <string>();
            this.m_ResultDocumentSources.Add(YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.YPIDatabase.ToString());
            this.m_ResultDocumentSources.Add(YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.PublishedDocument.ToString());
            this.m_ResultDocumentSources.Add(YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.RetiredTestDocument.ToString());
            this.m_ResultDocumentSources.Add(YellowstonePathology.Business.PanelSet.Model.ResultDocumentSourceEnum.None.ToString());

            InitializeComponent();

            DataContext   = this;
            this.Closing += new System.ComponentModel.CancelEventHandler(ReportOrderDetailPage_Closing);
        }