Procedure

TraverseTree

Module

uDocTree

Last Modified

7/15/2014 3:26:44 PM

Scope

Interfaced

Declaration

procedure TraverseTree(ATree: TTreeView; AListView: TListView; ANode: TTreeNode; MyNodeID: string;
          AContext: TTIUContext);

Calls Hierarchy


TraverseTree
 ├ContextMatch
 ├TextFound
 ├AddListViewItem
 └..(rec)..

Called-By Hierarchy


                                                            TraverseTree
                                                             ..(rec)..┤ 
                                              TfrmDCSumm.tvSummsChange┤ 
                                           TfrmDCSumm.SaveEditedSumm┤ │ 
                                        TfrmDCSumm.SaveCurrentSumm┘ │ │ 
                                   TfrmDCSumm.AllowContextChange┤   │ │ 
                               TfrmFrame.AllowContextChangeAll┘ │   │ │ 
                                    TfrmFrame.FormCloseQuery┤   │   │ │ 
                                  TfrmFrame.mnuFileNextClick┤   │   │ │ 
                                TfrmFrame.mnuFileOpenClick┤ │   │   │ │ 
                                    TfrmFrame.UMInitiate┤ │ │   │   │ │ 
                           TfrmFrame.mnuFileNextClick...┤ │ │   │   │ │ 
                           TfrmFrame.mnuFileRefreshClick┤ │ │   │   │ │ 
                           TfrmOrders.CheckOrderStatus┤ │ │ │   │   │ │ 
                       TfrmOrders.mnuActChgEvntClick┤ │ │ │ │   │   │ │ 
                          TfrmOrders.mnuActHoldClick┤ │ │ │ │   │   │ │ 
                        TfrmOrders.mnuActUnholdClick┤ │ │ │ │   │   │ │ 
                         TfrmOrders.mnuActRenewClick┤ │ │ │ │   │   │ │ 
                        TfrmOrders.mnuActChangeClick┤ │ │ │ │   │   │ │ 
                          TfrmOrders.mnuActCopyClick┘ │ │ │ │   │   │ │ 
                                TfrmMeds.mnuActDCClick┤ │ │ │   │   │ │ 
                               TfrmMeds.CheckMedStatus┘ │ │ │   │   │ │ 
                            TfrmMeds.mnuActHoldClick┤   │ │ │   │   │ │ 
                           TfrmMeds.mnuActRenewClick┤   │ │ │   │   │ │ 
                          TfrmMeds.mnuActUnholdClick┤   │ │ │   │   │ │ 
                          TfrmMeds.mnuActChangeClick┤   │ │ │   │   │ │ 
                            TfrmMeds.mnuActCopyClick┤   │ │ │   │   │ │ 
                          TfrmMeds.mnuActRefillClick┘   │ │ │   │   │ │ 
                                      TfrmFrame.ViewInfo┘ │ │   │   │ │ 
                                   TfrmDCSumm.ViewInfo┤   │ │   │   │ │ 
                                 TfrmConsults.ViewInfo┤   │ │   │   │ │ 
                         TfrmFrame.pnlRemindersMouseUp┤   │ │   │   │ │ 
                          TfrmFrame.RemindersChanged┘ │   │ │   │   │ │ 
                              TfrmFrame.FormCreate┘   │   │ │   │   │ │ 
                                TfrmFrame.pnlCIRNClick┤   │ │   │   │ │ 
                          TfrmFrame.pnlVistaWebClick┤ │   │ │   │   │ │ 
                               TfrmFrame.FormKeyDown┘ │   │ │   │   │ │ 
                             TfrmFrame.pnlPatientClick┤   │ │   │   │ │ 
                               TfrmFrame.pnlVisitClick┤   │ │   │   │ │ 
                         TfrmFrame.pnlPrimaryCareClick┤   │ │   │   │ │ 
                           TfrmFrame.pnlRemindersClick┤   │ │   │   │ │ 
                            TfrmFrame.pnlPostingsClick┤   │ │   │   │ │ 
                                TfrmFrame.pnlFlagClick┤   │ │   │   │ │ 
                                  TfrmFrame.laMHVClick┤   │ │   │   │ │ 
                                 TfrmFrame.laVAA2Click┤   │ │   │   │ │ 
                                   TfrmOrders.ViewInfo┤   │ │   │   │ │ 
                                     TfrmMeds.ViewInfo┤   │ │   │   │ │ 
                                  TfrmSurgery.ViewInfo┤   │ │   │   │ │ 
                                    TfrmNotes.ViewInfo┤   │ │   │   │ │ 
                                 TfrmProblems.ViewInfo┘   │ │   │   │ │ 
                         TfrmFrame.mnuFileNotifRemoveClick┤ │   │   │ │ 
                                 TfrmFrame.NextButtonClick┘ │   │   │ │ 
                               TfrmFrame.SetUpNextButton┘   │   │   │ │ 
                         TfrmFrame.mnuFileOpenClick...┤     │   │   │ │ 
                                  TfrmFrame.FormResize┘     │   │   │ │ 
                                TfrmFrame.ChangeFont┘       │   │   │ │ 
                        TfrmFrame.LoadSizesForUser┤         │   │   │ │ 
                   TfrmFrame.LoadUserPreferences┘ │         │   │   │ │ 
                          TfrmFrame.UMInitiate┘   │         │   │   │ │ 
                        TfrmFrame.mnuFontSizeClick┘         │   │   │ │ 
                               TfrmFrame.mnuFileOpenClick...┤   │   │ │ 
                               TfrmFrame.ctxContextorPending┤   │   │ │ 
                              TfrmFrame.StartCCOWContextor┘ │   │   │ │ 
                                    TfrmFrame.FormCreate┘   │   │   │ │ 
                             TfrmFrame.ctxContextorCommitted┤   │   │ │ 
                           TfrmFrame.StartCCOWContextor...┘ │   │   │ │ 
                      TfrmFrame.mnuFileResumeContextGetClick┤   │   │ │ 
                      TfrmFrame.mnuFileResumeContextSetClick┘   │   │ │ 
                                      TfrmDCSumm.LstSummsToPrint┤   │ │ 
                      TfrmFrame.mnuFilePrintSelectedItemsClick┘ │   │ │ 
                                         TfrmDCSumm.RequestPrint┤   │ │ 
                                   TfrmFrame.mnuFilePrintClick┘ │   │ │ 
                                        TfrmDCSumm.InsertNewSumm┤   │ │ 
                                     TfrmDCSumm.mnuActNewClick┤ │   │ │ 
                                  TfrmDCSumm.cmdNewSummClick┘ │ │   │ │ 
                              TfrmDCSumm.mnuActAddIDEntryClick┘ │   │ │ 
                                         TfrmDCSumm.mnuViewClick┤   │ │ 
                                     TfrmDCSumm.SetViewContext┤ │   │ │ 
                                      TfrmDCSumm.DisplayPage┤ │ │   │ │ 
                      TfrmDCSumm.mnuViewReturntoDefaultClick┘ │ │   │ │ 
                          TfrmDCSumm.mnuViewSaveAsDefaultClick┘ │   │ │ 
                                         TfrmDCSumm.StartNewEdit┤   │ │ 
                                  TfrmDCSumm.mnuActNewClick...┤ │   │ │ 
                              TfrmDCSumm.mnuActAddIDEntryClick┤ │   │ │ 
                                  TfrmDCSumm.mnuActAddendClick┤ │   │ │ 
                                    TfrmDCSumm.mnuActEditClick┘ │   │ │ 
                        TfrmDCSumm.mnuActDetachFromIDParentClick┤   │ │ 
                                    TfrmDCSumm.mnuActDeleteClick┤   │ │ 
                                  TfrmDCSumm.SaveEditedSumm...┘ │   │ │ 
                                      TfrmDCSumm.mnuActSaveClick┤   │ │ 
                                      TfrmDCSumm.mnuActSignClick┤   │ │ 
                                         TfrmDCSumm.SaveSignItem┤   │ │ 
                                         TfrmReview.cmdOKClick┘ │   │ │ 
                                               ReviewChanges┘   │   │ │ 
                        TfrmFrame.AllowContextChangeAll...┤     │   │ │ 
                                  TfrmFrame.FormCloseQuery┤     │   │ │ 
                              TfrmFrame.mnuFileReviewClick┤     │   │ │ 
                                           UpdateEncounter┘     │   │ │ 
                         TfrmFrame.mnuFileEncounterClick┤       │   │ │ 
                                 TfrmFrame.ViewInfo...┤ │       │   │ │ 
                    TfrmODMedIV.SetValuesFromResponses┤ │       │   │ │ 
                             TfrmODMedIV.SetupDialog┤ │ │       │   │ │ 
                   TfrmODMedIV.cboSolutionMouseClick┘ │ │       │   │ │ 
                       TfrmODMedIV.cboSolutionExit┘   │ │       │   │ │ 
                  TfrmODMedIV.cboSolutionMouseClick...┤ │       │   │ │ 
                     TfrmODMedIV.cboAdditiveMouseClick┤ │       │   │ │ 
                         TfrmODMedIV.cboAdditiveExit┘ │ │       │   │ │ 
                                TfrmODAuto.SetupDialog┤ │       │   │ │ 
                                   ActivateOrderDialog┤ │       │   │ │ 
                           TfrmRemDlg.btnFinishClick┤ │ │       │   │ │ 
           TfrmConsults.mnuActNewConsultRequestClick┤ │ │       │   │ │ 
                   TfrmConsults.cmdNewConsultClick┘ │ │ │       │   │ │ 
                TfrmConsults.mnuActNewProcedureClick┤ │ │       │   │ │ 
                      TfrmConsults.cmdNewProcClick┘ │ │ │       │   │ │ 
                                        ChangeOrders┤ │ │       │   │ │ 
                      TfrmOrders.mnuActChangeClick┤ │ │ │       │   │ │ 
                        TfrmMeds.mnuActChangeClick┘ │ │ │       │   │ │ 
                                     ChangeOrdersEvt┤ │ │       │   │ │ 
                                          CopyOrders┤ │ │       │   │ │ 
                        TfrmOrders.mnuActCopyClick┤ │ │ │       │   │ │ 
                          TfrmMeds.mnuActCopyClick┤ │ │ │       │   │ │ 
                           TfrmODActive.btnOKClick┘ │ │ │       │   │ │ 
                                      TransferOrders┤ │ │       │   │ │ 
                        TfrmOrders.mnuActCopyClick┤ │ │ │       │   │ │ 
                          TfrmMeds.mnuActCopyClick┤ │ │ │       │   │ │ 
                           TfrmODActive.btnOKClick┘ │ │ │       │   │ │ 
                            TfrmOrders.lstWriteClick┤ │ │       │   │ │ 
               TfrmOrders.PlaceOrderForDefaultDialog┤ │ │       │   │ │ 
                  TfrmOrders.DisplayDefaultDlgList┤ │ │ │       │   │ │ 
                       TfrmOrders.ResetOrderPage┘ │ │ │ │       │   │ │ 
               TfrmOrders.btnDelayedOrderClick┘   │ │ │ │       │   │ │ 
                                 DisplayEvntDialog┤ │ │ │       │   │ │ 
                             SetDelayEventForMed┘ │ │ │ │       │   │ │ 
                      TfrmMeds.mnuActCopyClick┘   │ │ │ │       │   │ │ 
                                 DisplayEvntDialog┤ │ │ │       │   │ │ 
                                  SetViewForCopy┘ │ │ │ │       │   │ │ 
                    TfrmOrders.mnuActCopyClick┘   │ │ │ │       │   │ │ 
                                 DisplayEvntDialog┘ │ │ │       │   │ │ 
                                ExecuteChangeEvt┘   │ │ │       │   │ │ 
                 TfrmOrders.mnuActChgEvntClick┘     │ │ │       │   │ │ 
                             TfrmMeds.mnuActNewClick┤ │ │       │   │ │ 
                           TfrmOMNavA.ActivateDialog┤ │ │       │   │ │ 
                         TfrmOMNavA.grdMenuKeyDown┤ │ │ │       │   │ │ 
                         TfrmOMNavA.grdMenuMouseUp┘ │ │ │       │   │ │ 
                                TfrmOMSet.DoNextItem┘ │ │       │   │ │ 
                              TfrmOMSet.InsertList┤   │ │       │   │ │ 
                               ActivateOrderList┘ │   │ │       │   │ │ 
                     TfrmRemDlg.btnFinishClick┤   │   │ │       │   │ │ 
                             ActivateOrderHTML┤   │   │ │       │   │ │ 
                    TfrmOrders.lstWriteClick┤ │   │   │ │       │   │ │ 
    TfrmOrders.PlaceOrderForDefaultDialog...┘ │   │   │ │       │   │ │ 
                              ActivateOrderSet┤   │   │ │       │   │ │ 
                   TfrmRemDlg.btnFinishClick┤ │   │   │ │       │   │ │ 
TfrmConsults.mnuActNewConsultRequestClick...┤ │   │   │ │       │   │ │ 
     TfrmConsults.mnuActNewProcedureClick...┤ │   │   │ │       │   │ │ 
                    TfrmOrders.lstWriteClick┤ │   │   │ │       │   │ │ 
    TfrmOrders.PlaceOrderForDefaultDialog...┤ │   │   │ │       │   │ │ 
                     TfrmMeds.mnuActNewClick┤ │   │   │ │       │   │ │ 
                TfrmOMNavA.ActivateDialog...┤ │   │   │ │       │   │ │ 
                     TfrmOMSet.DoNextItem...┘ │   │   │ │       │   │ │ 
                       TfrmOMNavA.DoSelectList┘   │   │ │       │   │ │ 
                     TfrmOMNavA.grdMenuKeyUp┤     │   │ │       │   │ │ 
                   TfrmOMNavA.grdMenuMouseUp┘     │   │ │       │   │ │ 
                                        SkipToNext┤   │ │       │   │ │ 
                         TfrmOMSet.DoNextItem...┘ │   │ │       │   │ │ 
                            TfrmOMSet.UMDelayEvent┘   │ │       │   │ │ 
                               TfrmOMSet.InsertList...┤ │       │   │ │ 
                                TfrmODMeds.SetupDialog┤ │       │   │ │ 
                             TfrmODMeds.btnSelectClick┤ │       │   │ │ 
                             TfrmODMeds.UMDelayClick┘ │ │       │   │ │ 
                                    ExecuteRenewOrders┘ │       │   │ │ 
                         TfrmOrders.mnuActRenewClick┤   │       │   │ │ 
                           TfrmMeds.mnuActRenewClick┘   │       │   │ │ 
                                        EncounterPresent┤       │   │ │ 
                                      ReadyForNewOrder┤ │       │   │ │ 
                           TfrmRemDlg.btnFinishClick┤ │ │       │   │ │ 
        TfrmConsults.mnuActNewConsultRequestClick...┤ │ │       │   │ │ 
             TfrmConsults.mnuActNewProcedureClick...┤ │ │       │   │ │ 
                                     ChangeOrders...┤ │ │       │   │ │ 
                                     ChangeOrdersEvt┤ │ │       │   │ │ 
                                       CopyOrders...┤ │ │       │   │ │ 
                                   TransferOrders...┤ │ │       │   │ │ 
                            TfrmOrders.lstWriteClick┤ │ │       │   │ │ 
                             TfrmMeds.mnuActNewClick┘ │ │       │   │ │ 
                                     ReadyForNewOrder1┤ │       │   │ │ 
            TfrmOrders.PlaceOrderForDefaultDialog...┘ │ │       │   │ │ 
                              TfrmOrders.mnuActDCClick┤ │       │   │ │ 
                             TfrmOrders.mnuActRelClick┤ │       │   │ │ 
                            TfrmOrders.mnuActHoldClick┤ │       │   │ │ 
                          TfrmOrders.mnuActUnholdClick┤ │       │   │ │ 
                           TfrmOrders.mnuActRenewClick┤ │       │   │ │ 
                         TfrmOrders.mnuActReleaseClick┤ │       │   │ │ 
                         TfrmOrders.mnuActOnChartClick┤ │       │   │ │ 
                            TfrmOrders.mnuActSignClick┤ │       │   │ │ 
                                TfrmMeds.mnuActDCClick┤ │       │   │ │ 
                              TfrmMeds.mnuActHoldClick┤ │       │   │ │ 
                             TfrmMeds.mnuActRenewClick┤ │       │   │ │ 
                            TfrmMeds.mnuActUnholdClick┤ │       │   │ │ 
                              TfrmMeds.mnuActCopyClick┤ │       │   │ │ 
                            TfrmMeds.mnuActRefillClick┘ │       │   │ │ 
                                     EncounterPresentEDO┤       │   │ │ 
                                   ReadyForNewOrder...┤ │       │   │ │ 
                         TfrmOrders.mnuActChgEvntClick┤ │       │   │ │ 
                          TfrmOrders.mnuActChangeClick┤ │       │   │ │ 
                            TfrmOrders.mnuActCopyClick┤ │       │   │ │ 
                       TfrmOrders.btnDelayedOrderClick┤ │       │   │ │ 
                            TfrmMeds.mnuActChangeClick┤ │       │   │ │ 
                              TfrmMeds.mnuActCopyClick┘ │       │   │ │ 
                                             UpdateVisit┤       │   │ │ 
                                           EditPCEData┤ │       │   │ │ 
                             TfrmSurgery.cmdPCEClick┤ │ │       │   │ │ 
                                 UpdateEncounterInfo┘ │ │       │   │ │ 
                             TfrmNotes.cmdPCEClick┘   │ │       │   │ │ 
                        TfrmVitals.btnEnterVitalsClick┘ │       │   │ │ 
                                             UpdateVisit┤       │   │ │ 
                                        EncounterPresent┘       │   │ │ 
                         TfrmProblems.lstProbActsClick┘         │   │ │ 
                     TfrmProblems.wgProbDataDblClick┤           │   │ │ 
                           TfrmProblems.lstViewClick┘           │   │ │ 
                   TfrmProblems.HighlightDuplicate┘             │   │ │ 
                         TfrmProblems.AddProblem┤               │   │ │ 
              TfrmProblems.lstProbActsClick...┤ │               │   │ │ 
                 TfrmProblems.lstProbPickClick┤ │               │   │ │ 
              TfrmProblems.lstProbPickDblClick┤ │               │   │ │ 
              TfrmProblems.edProbEntKeyPress┘ │ │               │   │ │ 
                      TfrmProblems.UMPLLexicon┘ │               │   │ │ 
                   TfrmdlgProb.bbChangeProbClick┘               │   │ │ 
                                            TfrmDCSumm.FormClose┤   │ │ 
                       TfrmDCSumm.mnuActIdentifyAddlSignersClick┤   │ │ 
                           TfrmDCSumm.popSummMemoAddlSignClick┘ │   │ │ 
                                 TfrmDCSumm.ProcessNotifications┤   │ │ 
                                        TfrmDCSumm.DisplayPage┘ │   │ │ 
                                    TfrmDCSumm.SetViewContext...┤   │ │ 
                                      TfrmDCSumm.tvSummsDragDrop┤   │ │ 
                                     TfrmDCSumm.tvSummsStartDrag┤   │ │ 
                          TfrmDCSumm.mnuActAttachtoIDParentClick┘   │ │ 
                                          TfrmDCSumm.mnuActSignClick┤ │ 
                                  TfrmDCSumm.ProcessNotifications...┤ │ 
                                                TfrmDCSumm.LoadSumms┘ │ 
                                     TfrmDCSumm.LstSummsToPrint...┤   │ 
                                        TfrmDCSumm.mnuViewClick...┤   │ 
                                        TfrmDCSumm.StartNewEdit...┤   │ 
                          TfrmDCSumm.mnuActDetachFromIDParentClick┤   │ 
                                   TfrmDCSumm.mnuActDeleteClick...┤   │ 
                                        TfrmDCSumm.mnuActSaveClick┤   │ 
                                        TfrmDCSumm.mnuActSignClick┤   │ 
                                        TfrmDCSumm.SaveSignItem...┤   │ 
                      TfrmDCSumm.mnuActIdentifyAddlSignersClick...┤   │ 
                            TfrmDCSumm.mnuActAttachtoIDParentClick┤   │ 
                                        TfrmDCSumm.DoAttachIDChild┘   │ 
                                      TfrmDCSumm.tvSummsDragDrop┤     │ 
                          TfrmDCSumm.mnuActAttachtoIDParentClick┘     │ 
                                               TfrmNotes.tvNotesChange┘ 
                                            TfrmNotes.SaveEditedNote┤   
                                         TfrmNotes.SaveCurrentNote┘ │   
                                    TfrmNotes.AllowContextChange┤   │   
                            TfrmFrame.AllowContextChangeAll...┘ │   │   
                                       TfrmNotes.LstNotesToPrint┤   │   
                      TfrmFrame.mnuFilePrintSelectedItemsClick┘ │   │   
                                          TfrmNotes.RequestPrint┤   │   
                                   TfrmFrame.mnuFilePrintClick┘ │   │   
                                          TfrmNotes.mnuViewClick┤   │   
                                      TfrmNotes.SetViewContext┤ │   │   
                                       TfrmNotes.DisplayPage┤ │ │   │   
                       TfrmNotes.mnuViewReturntoDefaultClick┘ │ │   │   
                           TfrmNotes.mnuViewSaveAsDefaultClick┘ │   │   
                                          TfrmNotes.StartNewEdit┤   │   
                                      TfrmNotes.mnuActNewClick┤ │   │   
                                   TfrmNotes.cmdNewNoteClick┘ │ │   │   
                               TfrmNotes.mnuActAddIDEntryClick┤ │   │   
                                   TfrmNotes.mnuActAddendClick┤ │   │   
                                     TfrmNotes.mnuActEditClick┘ │   │   
                         TfrmNotes.mnuActDetachFromIDParentClick┤   │   
                                     TfrmNotes.mnuActDeleteClick┤   │   
                                   TfrmNotes.SaveEditedNote...┘ │   │   
                                       TfrmNotes.mnuActSaveClick┤   │   
                                       TfrmNotes.mnuActSignClick┤   │   
                                          TfrmNotes.SaveSignItem┤   │   
                                      TfrmReview.cmdOKClick...┘ │   │   
                                             TfrmNotes.FormClose┤   │   
                        TfrmNotes.mnuActIdentifyAddlSignersClick┤   │   
                            TfrmNotes.popNoteMemoAddlSignClick┘ │   │   
                                  TfrmNotes.ProcessNotifications┤   │   
                                         TfrmNotes.DisplayPage┘ │   │   
                                     TfrmNotes.SetViewContext...┤   │   
                                       TfrmNotes.tvNotesDragDrop┤   │   
                           TfrmNotes.mnuActAttachtoIDParentClick┘   │   
                                           TfrmNotes.mnuActSignClick┤   
                                   TfrmNotes.ProcessNotifications...┤   
                                                 TfrmNotes.LoadNotes┘   
                                      TfrmNotes.LstNotesToPrint...┤     
                                         TfrmNotes.mnuViewClick...┤     
                                         TfrmNotes.StartNewEdit...┤     
                           TfrmNotes.mnuActDetachFromIDParentClick┤     
                                    TfrmNotes.mnuActDeleteClick...┤     
                                         TfrmNotes.mnuActSaveClick┤     
                                         TfrmNotes.mnuActSignClick┤     
                                         TfrmNotes.SaveSignItem...┤     
                       TfrmNotes.mnuActIdentifyAddlSignersClick...┤     
                             TfrmNotes.mnuActAttachtoIDParentClick┤     
                                         TfrmNotes.DoAttachIDChild┘     
                                       TfrmNotes.tvNotesDragDrop┤       
                           TfrmNotes.mnuActAttachtoIDParentClick┘       

Calls

Name Declaration Comments
AddListViewItem procedure AddListViewItem(ANode: TTreeNode; AListView: TListView); -
ContextMatch function ContextMatch(ANode: TORTreeNode; AParentID: string; AContext: TTIUContext): Boolean; -
TextFound function TextFound(ANode: TORTreeNode; CurrentContext: TTIUContext): Boolean; -
TraverseTree procedure TraverseTree(ATree: TTreeView; AListView: TListView; ANode: TTreeNode; MyNodeID: string; AContext: TTIUContext); -

Called-By

Name Declaration Comments
TraverseTree procedure TraverseTree(ATree: TTreeView; AListView: TListView; ANode: TTreeNode; MyNodeID: string; AContext: TTIUContext); -
TfrmNotes.tvNotesChange procedure tvNotesChange(Sender: TObject; Node: TTreeNode); -
TfrmDCSumm.tvSummsChange procedure tvSummsChange(Sender: TObject; Node: TTreeNode); -


Source

364   procedure TraverseTree(ATree: TTreeView; AListView: TListView; ANode: TTreeNode; MyNodeID: string; AContext: TTIUContext);
365   var
366     IncludeIt: Boolean;
367     x: string;
368   begin
369     if ANode = nil then Exit;
370     IncludeIt := False;
371     if (ContextMatch(TORTreeNode(ANode), MyNodeID, AContext) and TextFound(TORTreeNode(ANode), AContext)) then
372       with PDocTreeObject(ANode.Data)^ do
373         begin
374           if (AContext.GroupBy <> '') and
375              (ATree.Selected.ImageIndex in [IMG_GROUP_OPEN, IMG_GROUP_SHUT]) then
376               begin
377                 case AContext.GroupBy[1] of
378                   'T': if (UpperCase(DocTitle) = UpperCase(PDocTreeObject(ATree.Selected.Data)^.DocTitle)) or
379                           (UpperCase(DocTitle) = UpperCase('Addendum to ' + PDocTreeObject(ATree.Selected.Data)^.DocTitle)) or
380                            (AContext.Filtered and TextFound(TORTreeNode(ANode), AContext)) then
381                          IncludeIt := True;
382                   'D': begin
383                          x := PDocTreeObject(ATree.Selected.Data)^.DocID;
384                          if (Copy(x, 2, 3) = 'Vis') or (Copy(x, 2, 3) = 'Adm') then
385                            begin
386                              if Copy(VisitDate, 1, 3) = Copy(x, 2, 3) then
387                                IncludeIt := True;
388                            end
389                          else if Piece(Piece(VisitDate, ';', 2), '.', 1) = Copy(x, 2, Length(x) - 4) then
390                            IncludeIt := True;
391                        end;
392                   'L': if MyNodeID + Location = PDocTreeObject(ATree.Selected.Data)^.DocID then
393                          IncludeIt := True;
394                   'A': if MyNodeID + Piece(Author, ';', 2) = PDocTreeObject(ATree.Selected.Data)^.DocID then
395                          IncludeIt := True;
396                 end;
397               end
398           else
399             IncludeIt := True;
400         end;
401     if IncludeIt then AddListViewItem(ANode, AListView);
402     if ANode.HasChildren then TraverseTree(ATree, AListView, ANode.GetFirstChild, MyNodeID, AContext);
403     TraverseTree(ATree, AListView, ANode.GetNextSibling, MyNodeID, AContext);
404   end;