public void GetAccessionOrder(string reportNo) { string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromReportNo(reportNo); if (string.IsNullOrEmpty(masterAccessionNo) == false) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); if (this.m_AccessionOrder != null) { this.m_SurgicalTestOrder = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, reportNo); this.RefreshBillingSpecimenViewCollection(); this.NotifyPropertyChanged(""); } else { MessageBox.Show("Case Not Found."); } } else { MessageBox.Show("Case Not Found."); } }
public void GetAccessionOrder(string masterAccessionNo, string reportNo) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); this.m_CaseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(this.AccessionOrder, reportNo); this.RunWorkspaceEnableRules(); this.NotifyPropertyChanged(""); }
private void ListBoxReportOrders_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.ListBoxReportOrders.SelectedItems.Count != 0) { YellowstonePathology.Business.Test.PanelSetOrder pso = (YellowstonePathology.Business.Test.PanelSetOrder) this.ListBoxReportOrders.SelectedItem; this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, pso.ReportNo); this.HandleContextMenu(pso); this.NotifyPropertyChanged("CaseDocumentCollection"); } }
private void CopyFiles(string reportNo, string masterAccessionNo, string workingFolder) { YellowstonePathology.Business.Document.CaseDocumentCollection caseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(reportNo); YellowstonePathology.Business.Document.CaseDocumentCollection billingCaseDocumentCollection = caseDocumentCollection.GetPsaFiles(reportNo, masterAccessionNo); foreach (YellowstonePathology.Business.Document.CaseDocument caseDocument in billingCaseDocumentCollection) { string sourceFile = caseDocument.FullFileName; string destinationFile = System.IO.Path.Combine(workingFolder, System.IO.Path.GetFileName(sourceFile)); File.Copy(sourceFile, destinationFile, true); } }
public DocumentMatchingWizardPage(YellowstonePathology.Business.Document.CaseDocumentCollection caseDocumentCollection, YellowstonePathology.Business.ClientOrder.Model.ClientOrderMedia clientOrderMedia, string clientOrderId) { this.m_CaseDocumentCollection = caseDocumentCollection; //this.m_Client = client; //this.m_ClientOrderMediaCollection = clientOrderMediaCollection; this.m_ClientOrderMedia = clientOrderMedia; this.m_ClientOrderId = clientOrderId; InitializeComponent(); Loaded += new RoutedEventHandler(DocumentMatchingWizardPage_Loaded); }
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 CreateInsuranceCard() { Business.HL7View.ADTMessages adtMessages = Business.Gateway.AccessionOrderGateway.GetADTMessages(this.m_AccessionOrder.SvhMedicalRecord); if (adtMessages.Messages.Count > 0) { Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_AccessionOrder.MasterAccessionNo); YellowstonePathology.Business.Document.ADTInsuranceDocument adtInsuranceDocument = new Business.Document.ADTInsuranceDocument(adtMessages); adtInsuranceDocument.SaveAsTIF(orderIdParser); this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_ReportNo); this.NotifyPropertyChanged("CaseDocumentCollection"); MessageBox.Show("The insurance card was successfully created."); } else { MessageBox.Show("No ADT information was found."); } }
public void GetAccessionOrder(string reportNo) { string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromReportNo(reportNo); if (string.IsNullOrEmpty(masterAccessionNo) == false) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); if (this.m_AccessionOrder != null) { this.m_SurgicalTestOrder = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, reportNo); this.RefreshBillingSpecimenViewCollection(); this.m_SpecialInstructions = null; this.m_SpecialInstructionsVisibility = Visibility.Collapsed; if (this.m_AccessionOrder.SpecimenOrderCollection.SpecimenTypeExists(this.m_FluidSpecimenList) == true) { if (this.m_AccessionOrder.AccessioningFacilityId == "YPICDY") { if (this.m_AccessionOrder.AccessionDate == DateTime.Today) { this.m_SpecialInstructions = "Its best that we wait to type the gross for this case. Cell blocks may be added later."; this.m_SpecialInstructionsVisibility = Visibility.Visible; } } } this.NotifyPropertyChanged(""); } else { MessageBox.Show("Case Not Found."); } } else { MessageBox.Show("Case Not Found."); } }
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 PrintBlockPage(YellowstonePathology.Business.User.SystemIdentity systemIdentity, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder) { this.m_SystemIdentity = systemIdentity; this.m_AccessionOrder = accessionOrder; this.m_SpecimenOrder = specimenOrder; this.SetReportNoToUse(); this.m_CaseNotesDocument = YellowstonePathology.Business.Gateway.XmlGateway.GetOrderComments(this.m_AccessionOrder.MasterAccessionNo); this.m_DocumentViewer = new DocumentWorkspace(); this.m_CaseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(this.m_AccessionOrder, this.m_ReportNoToUse); this.m_GrossBlockManagementView = new Business.View.GrossBlockManagementView(this.m_AccessionOrder, this.m_CaseNotesDocument, this.m_SpecimenOrder); this.SetupSpecimenView(); this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance; this.m_TestCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetAllTests(); this.m_HandETest = this.m_TestCollection.GetTest(49); this.m_IronTest = this.m_TestCollection.GetTest(115); this.m_HPyloriTest = this.m_TestCollection.GetTest(107); this.m_FrozenTest = this.m_TestCollection.GetTest(45); this.Aliquots = 1; this.m_ListBoxBlocksMouseDownTimer = new System.Windows.Threading.DispatcherTimer(); this.m_ListBoxBlocksMouseDownTimer.Interval = new TimeSpan(0, 0, 0, 0, 750); this.m_ListBoxBlocksMouseDownTimer.Tick += new EventHandler(ListBoxBlocksMouseDownTimer_Tick); InitializeComponent(); DataContext = this; this.DocumentViewer.Content = this.m_DocumentViewer; Loaded += new RoutedEventHandler(PrintBlockPage_Loaded); Unloaded += new RoutedEventHandler(PrintBlockPage_Unloaded); }
private void ListBoxDocumentListCopyTo_Click(object sender, RoutedEventArgs e) { MenuItem menuItem = (MenuItem)sender; YellowstonePathology.Business.Test.PanelSetOrder copyToPso = (YellowstonePathology.Business.Test.PanelSetOrder)menuItem.Tag; YellowstonePathology.Business.Test.PanelSetOrder copyFromPso = (YellowstonePathology.Business.Test.PanelSetOrder) this.ListBoxReportOrders.SelectedItem; YellowstonePathology.Business.Document.CaseDocumentCollection copyToCaseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(copyToPso.ReportNo); foreach (YellowstonePathology.Business.Document.CaseDocument caseDocument in this.ListBoxDocumentList.SelectedItems) { if (caseDocument.IsRequisition() == true) { string copyFromFileName = System.IO.Path.GetFileName(caseDocument.FullFileName); YellowstonePathology.Business.Document.CaseDocument newCaseDocument = copyToCaseDocumentCollection.GetNextRequisition(); copyToCaseDocumentCollection.Add(newCaseDocument); System.IO.File.Copy(caseDocument.FullFileName, newCaseDocument.FullFileName); } } YellowstonePathology.Business.Test.PanelSetOrder pso = (YellowstonePathology.Business.Test.PanelSetOrder) this.ListBoxReportOrders.SelectedItem; this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, pso.ReportNo); MessageBox.Show("The selected file(s) have been copied."); }
public CaseDocumentViewCollection(YellowstonePathology.Business.Document.CaseDocumentCollection caseDocumentCollection, bool showUnverifiedDocuments) { this.m_CaseDocumentCollection = caseDocumentCollection; this.m_ShowUnverifiedDocuments = showUnverifiedDocuments; Load(); }
public PathologistsReview(PathologistUI pathologistUI, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { this.m_PathologistUI = pathologistUI; this.m_SystemIdentity = systemIdentity; InitializeComponent(); this.m_DocumentViewer = new DocumentWorkspace(); this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer; this.m_TreeViewWorkspace = new YellowstonePathology.UI.Common.TreeViewWorkspace(this.m_PathologistUI.AccessionOrder, this.m_SystemIdentity); this.tabItemTreeView.Content = this.m_TreeViewWorkspace; this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.AccessionOrder, this.PanelSetOrder.ReportNo); this.DataContext = this; this.m_DocumentViewer.ClearContent(); this.m_TypingShortcutUserControl = new TypingShortcutUserControl(this.m_SystemIdentity); this.TabItemTypingShortCuts.Content = this.m_TypingShortcutUserControl; if (this.m_CaseDocumentCollection.Count != 0) { if (this.m_CaseDocumentCollection.GetFirstRequisition() != null) { this.m_DocumentViewer.ShowDocument(this.m_CaseDocumentCollection.GetFirstRequisition()); } } if (this.PanelSetOrder != null) { this.m_PathologistUI.RunWorkspaceEnableRules(); this.m_PathologistUI.RunPathologistEnableRules(); this.SetReviewContent(); if (this.PanelSetOrder.PanelSetId == 19) { if (this.PanelSetOrder.Accepted == true) { this.RightTabControl.SelectedItem = this.TabItemHistory; } else { this.RightTabControl.SelectedItem = this.TabItemReview; } } else if (this.PanelSetOrder.PanelSetId == 13 || this.PanelSetOrder.PanelSetId == 128) { if (this.PanelSetOrder.Accepted == true) { this.RightTabControl.SelectedItem = this.TabItemReview; } else { this.RightTabControl.SelectedItem = this.TabItemHistory; } } else { this.RightTabControl.SelectedIndex = this.m_PathologistUI.SelectedTabIndex; } } this.m_TreeViewWorkspace = new Common.TreeViewWorkspace(this.m_PathologistUI.AccessionOrder, this.m_SystemIdentity); this.m_TreeViewWorkspace.IsEnabled = this.m_PathologistUI.AccessionOrder.IsLockAquiredByMe; this.tabItemTreeView.Content = this.m_TreeViewWorkspace; this.Unloaded += PathologistsReview_Unloaded; }
public void RefreshCaseDocumentCollection(string reportNo) { this.m_CaseDocumentCollection = new Document.CaseDocumentCollection(reportNo); NotifyPropertyChanged("CaseDocumentCollection"); }
private void ListBoxReportOrders_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.ListBoxReportOrders.SelectedItems.Count != 0) { YellowstonePathology.Business.Test.PanelSetOrder pso = (YellowstonePathology.Business.Test.PanelSetOrder)this.ListBoxReportOrders.SelectedItem; this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, pso.ReportNo); this.HandleContextMenu(pso); this.NotifyPropertyChanged("CaseDocumentCollection"); } }
private void ListBoxDocumentListCopyTo_Click(object sender, RoutedEventArgs e) { MenuItem menuItem = (MenuItem)sender; YellowstonePathology.Business.Test.PanelSetOrder copyToPso = (YellowstonePathology.Business.Test.PanelSetOrder)menuItem.Tag; YellowstonePathology.Business.Test.PanelSetOrder copyFromPso = (YellowstonePathology.Business.Test.PanelSetOrder)this.ListBoxReportOrders.SelectedItem; YellowstonePathology.Business.Document.CaseDocumentCollection copyToCaseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(copyToPso.ReportNo); foreach (YellowstonePathology.Business.Document.CaseDocument caseDocument in this.ListBoxDocumentList.SelectedItems) { if (caseDocument.IsRequisition() == true) { string copyFromFileName = System.IO.Path.GetFileName(caseDocument.FullFileName); YellowstonePathology.Business.Document.CaseDocument newCaseDocument = copyToCaseDocumentCollection.GetNextRequisition(); copyToCaseDocumentCollection.Add(newCaseDocument); System.IO.File.Copy(caseDocument.FullFileName, newCaseDocument.FullFileName); } } YellowstonePathology.Business.Test.PanelSetOrder pso = (YellowstonePathology.Business.Test.PanelSetOrder)this.ListBoxReportOrders.SelectedItem; this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, pso.ReportNo); MessageBox.Show("The selected file(s) have been copied."); }
public void GetAccessionOrder(string reportNo) { string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromReportNo(reportNo); if(string.IsNullOrEmpty(masterAccessionNo) == false) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); if (this.m_AccessionOrder != null) { this.m_SurgicalTestOrder = (YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, reportNo); this.RefreshBillingSpecimenViewCollection(); this.NotifyPropertyChanged(""); } else { MessageBox.Show("Case Not Found."); } } else { MessageBox.Show("Case Not Found."); } }
private void ButtonMove_Click(object sender, RoutedEventArgs e) { if (this.ComboBoxServerFolder.SelectedItem != null) { ServerFolder serverFolder = (ServerFolder)this.ComboBoxServerFolder.SelectedItem; if (this.ListViewScannedFiles.SelectedItems.Count != 0) { ScannedFile scannedFile = (ScannedFile)this.ListViewScannedFiles.SelectedItem; YellowstonePathology.Business.Document.CaseDocumentCollection caseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_ReportNo); YellowstonePathology.Business.Document.CaseDocumentCollection requisitions = caseDocumentCollection.GetRequisitions(); int nextReqNo = requisitions.Count + 1; YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_ReportNo); if (orderIdParser.ReportNo != null || orderIdParser.MasterAccessionNo != null) { string newFileName = System.IO.Path.Combine(YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser), this.m_ReportNo + ".REQ." + nextReqNo.ToString() + ".TIF"); if (orderIdParser.IsLegacyReportNo == false) { string masterAccessionNo = orderIdParser.MasterAccessionNo; newFileName = System.IO.Path.Combine(YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser), masterAccessionNo + ".REQ." + nextReqNo.ToString() + ".TIF"); } if (scannedFile.Extension.ToUpper() == ".TIF") { System.IO.File.Copy(scannedFile.Name, newFileName); } else if (scannedFile.Extension.ToUpper() == ".JPG") { System.Drawing.Imaging.ImageCodecInfo myImageCodecInfo; System.Drawing.Imaging.Encoder myEncoder; System.Drawing.Imaging.EncoderParameter myEncoderParameter; System.Drawing.Imaging.EncoderParameters myEncoderParameters; myImageCodecInfo = GetEncoderInfo("image/tiff"); myEncoder = System.Drawing.Imaging.Encoder.Compression; myEncoderParameters = new System.Drawing.Imaging.EncoderParameters(1); myEncoderParameter = new System.Drawing.Imaging.EncoderParameter(myEncoder, (long)System.Drawing.Imaging.EncoderValue.CompressionCCITT4); myEncoderParameters.Param[0] = myEncoderParameter; System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(scannedFile.Name); bitmap.Save(newFileName, myImageCodecInfo, myEncoderParameters); bitmap.Dispose(); } System.IO.File.Delete(scannedFile.Name); this.StackPanelImage.Children.RemoveRange(0, this.StackPanelImage.Children.Count); this.m_ServerFileCollection = new ScannedFileCollection(); this.m_ServerFileCollection.LoadFiles(serverFolder.Path); this.NotifyPropertyChanged("ServerFileCollection"); this.ListViewScannedFiles.SelectedIndex = 0; if (orderIdParser.IsLegacyReportNo) { this.ReportNo = this.ReportNo.Substring(0, 4); } else { this.ReportNo = this.ReportNo.Substring(0, 3); } } else { MessageBox.Show("The Master Accession No should be used for the new style report - 13-123.S \nThe Report No needs to be used for old style reports - S13-123", "Use correct identifier"); } } } }
public void RefreshCaseDocumentCollection() { this.m_CaseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(this.m_PanelSetOrder.ReportNo); NotifyPropertyChanged("CaseDocumentCollection"); }
public void GetAccessionOrder(string masterAccessionNo, string reportNo) { this.AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); this.ReportNo = reportNo; this.m_CaseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(this.AccessionOrder, reportNo); }
public virtual void GetAccessionOrder(string masterAccessionNo, string reportNo) { this.m_AccessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer); this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); this.RunWorkspaceEnableRules(); this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, this.m_PanelSetOrder.ReportNo); this.m_AccessionOrder.PanelSetOrderCollection.PathologistTestOrderItemList.Build(this.m_AccessionOrder); this.NotifyPropertyChanged(""); }