Procedure

CreateListItemsForDocumentTree

Module

uDocTree

Last Modified

7/15/2014 3:26:44 PM

Comments

Procedures for document treeviews/listviews
==============================================================
RPC [TIU DOCUMENTS BY CONTEXT] returns
the following string '^' pieces:
===============================================================
      1 -  Document IEN
      2 -  Document Title
      3 -  FM date of document
      4 -  Patient Name
      5 -  DUZ;Author name
      6 -  Location
      7 -  Status
      8 -  ADM/VIS: date;FMDate
      9 -  Discharge Date;FMDate
      10 - Package variable pointer
      11 - Number of images
      12 - Subject
      13 - Has children
      14 - Parent document
      15 - Order children of ID Note by title rather than date
===============================================================

Scope

Interfaced

Declaration

procedure CreateListItemsForDocumentTree(Dest, Source: TStrings; Context: integer; GroupBy: string;
          Ascending: boolean; TabIndex: integer);

Called-By Hierarchy


                                            CreateListItemsForDocumentTree
                                                    TfrmDCSumm.LoadSumms┤ 
                                            TfrmDCSumm.LstSummsToPrint┤ │ 
                            TfrmFrame.mnuFilePrintSelectedItemsClick┘ │ │ 
                                               TfrmDCSumm.mnuViewClick┤ │ 
                                           TfrmDCSumm.SetViewContext┤ │ │ 
                                            TfrmDCSumm.DisplayPage┤ │ │ │ 
                            TfrmDCSumm.mnuViewReturntoDefaultClick┘ │ │ │ 
                                TfrmDCSumm.mnuViewSaveAsDefaultClick┘ │ │ 
                                               TfrmDCSumm.StartNewEdit┤ │ 
                                           TfrmDCSumm.mnuActNewClick┤ │ │ 
                                        TfrmDCSumm.cmdNewSummClick┘ │ │ │ 
                                    TfrmDCSumm.mnuActAddIDEntryClick┤ │ │ 
                                        TfrmDCSumm.mnuActAddendClick┤ │ │ 
                                          TfrmDCSumm.mnuActEditClick┘ │ │ 
                              TfrmDCSumm.mnuActDetachFromIDParentClick┤ │ 
                                          TfrmDCSumm.mnuActDeleteClick┤ │ 
                                           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...┤     │ │ 
                                         TfrmDCSumm.RequestPrint┤     │ │ 
                                   TfrmFrame.mnuFilePrintClick┘ │     │ │ 
                                        TfrmDCSumm.InsertNewSumm┤     │ │ 
                                  TfrmDCSumm.mnuActNewClick...┤ │     │ │ 
                              TfrmDCSumm.mnuActAddIDEntryClick┘ │     │ │ 
                                      TfrmDCSumm.mnuViewClick...┤     │ │ 
                                      TfrmDCSumm.StartNewEdit...┤     │ │ 
                        TfrmDCSumm.mnuActDetachFromIDParentClick┤     │ │ 
                                 TfrmDCSumm.mnuActDeleteClick...┤     │ │ 
                                      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.mnuActSaveClick┤ │ 
                                            TfrmDCSumm.mnuActSignClick┤ │ 
                                            TfrmDCSumm.SaveSignItem...┤ │ 
                          TfrmDCSumm.mnuActIdentifyAddlSignersClick...┤ │ 
                                TfrmDCSumm.mnuActAttachtoIDParentClick┤ │ 
                                            TfrmDCSumm.DoAttachIDChild┘ │ 
                                          TfrmDCSumm.tvSummsDragDrop┤   │ 
                              TfrmDCSumm.mnuActAttachtoIDParentClick┘   │ 
                                           TfrmConsults.lstConsultsClick┤ 
                                         TfrmConsults.tvConsultsChange┘ │ 
                          TfrmConsults.mnuActDetachFromIDParentClick┤   │ 
                                            TfrmConsults.NotifyOrder┤   │ 
                                              TfrmFrame.UMNewOrder┘ │   │ 
                              TfrmConsults.mnuActDisplayDetailsClick┤   │ 
                         TfrmConsults.mnuActIdentifyAddlSignersClick┤   │ 
                             TfrmConsults.popNoteMemoAddlSignClick┘ │   │ 
                                   TfrmConsults.ProcessNotifications┤   │ 
                                          TfrmConsults.DisplayPage┘ │   │ 
                                           TfrmConsults.LoadConsults┤   │ 
                                           TfrmConsults.UpdateList┤ │   │ 
                                       TfrmConsults.mnuViewClick┤ │ │   │ 
                                   TfrmConsults.SetViewContext┘ │ │ │   │ 
                                    TfrmConsults.DisplayPage┤   │ │ │   │ 
                    TfrmConsults.mnuViewReturntoDefaultClick┘   │ │ │   │ 
                              TfrmConsults.mnuActNoteDeleteClick┤ │ │   │ 
                                TfrmConsults.SaveEditedConsult┘ │ │ │   │ 
                                TfrmConsults.SaveCurrentNote┘   │ │ │   │ 
                           TfrmConsults.AllowContextChange┤     │ │ │   │ 
                      TfrmFrame.AllowContextChangeAll...┘ │     │ │ │   │ 
                            TfrmConsults.SetViewContext...┤     │ │ │   │ 
                              TfrmConsults.mnuViewClick...┤     │ │ │   │ 
                TfrmConsults.mnuActDetachFromIDParentClick┤     │ │ │   │ 
                     TfrmConsults.mnuActNoteDeleteClick...┤     │ │ │   │ 
                     TfrmConsults.mnuActSignatureSaveClick┤     │ │ │   │ 
                     TfrmConsults.mnuActSignatureSignClick┤     │ │ │   │ 
                                 TfrmConsults.SaveSignItem┤     │ │ │   │ 
                                TfrmReview.cmdOKClick...┘ │     │ │ │   │ 
                           TfrmConsults.mnuActConsultClick┤     │ │ │   │ 
                                 TfrmConsults.RequestPrint┤     │ │ │   │ 
                      TfrmConsults.mnuActPrintSF513Click┤ │     │ │ │   │ 
                             TfrmFrame.mnuFilePrintClick┘ │     │ │ │   │ 
                    TfrmConsults.mnuActDisplayResultsClick┤     │ │ │   │ 
                    TfrmConsults.ProcessNotifications...┘ │     │ │ │   │ 
                      TfrmConsults.mnuActDisplaySF513Click┤     │ │ │   │ 
                        TfrmConsults.mnuActPrintSF513Click┤     │ │ │   │ 
                    TfrmConsults.mnuActDisplayDetailsClick┤     │ │ │   │ 
                                    TfrmConsults.FormClose┤     │ │ │   │ 
            TfrmConsults.mnuActIdentifyAddlSignersClick...┤     │ │ │   │ 
                      TfrmConsults.ProcessNotifications...┤     │ │ │   │ 
                         TfrmConsults.mnuActNotePrintClick┤     │ │ │   │ 
                      TfrmConsults.popNoteMemoPrintClick┘ │     │ │ │   │ 
                                 TfrmConsults.StartNewEdit┤     │ │ │   │ 
                        TfrmConsults.mnuActCompleteClick┤ │     │ │ │   │ 
                      TfrmConsults.mnuActAddIDEntryClick┤ │     │ │ │   │ 
                    TfrmConsults.mnuActMakeAddendumClick┤ │     │ │ │   │ 
                        TfrmConsults.mnuActNoteEditClick┘ │     │ │ │   │ 
                      TfrmConsults.mnuActCompleteClick┘   │     │ │ │   │ 
                          TfrmConsults.tvCsltNotesDragDrop┤     │ │ │   │ 
                         TfrmConsults.tvCsltNotesStartDrag┤     │ │ │   │ 
                  TfrmConsults.mnuActAttachtoIDParentClick┤     │ │ │   │ 
                           TfrmConsults.LstConsultsToPrint┘     │ │ │   │ 
                TfrmFrame.mnuFilePrintSelectedItemsClick┘       │ │ │   │ 
                           TfrmConsults.mnuActSignatureSaveClick┤ │ │   │ 
                           TfrmConsults.mnuActSignatureSignClick┤ │ │   │ 
                                    TfrmConsults.SaveSignItem...┤ │ │   │ 
                                 TfrmConsults.mnuActConsultClick┤ │ │   │ 
                                     TfrmConsults.NotifyOrder...┤ │ │   │ 
                                         TfrmConsults.UMNewOrder┤ │ │   │ 
                                  TfrmConsults.ProcessMedResults┘ │ │   │ 
                             TfrmConsults.mnuActAttachMedClick┤   │ │   │ 
                             TfrmConsults.mnuActRemoveMedClick┘   │ │   │ 
                              TfrmConsults.mnuActEditResubmitClick┤ │   │ 
                               TfrmConsults.cmdEditResubmitClick┘ │ │   │ 
                                TfrmConsults.LstConsultsToPrint...┘ │   │ 
                                        TfrmConsults.tvConsultsClick┤   │ 
                                      TfrmConsults.mnuViewClick...┤ │   │ 
                        TfrmConsults.mnuActDetachFromIDParentClick┤ │   │ 
                             TfrmConsults.mnuActNoteDeleteClick...┤ │   │ 
                             TfrmConsults.mnuActSignatureSaveClick┤ │   │ 
                             TfrmConsults.mnuActSignatureSignClick┤ │   │ 
                                      TfrmConsults.SaveSignItem...┤ │   │ 
                                   TfrmConsults.mnuActConsultClick┤ │   │ 
                           TfrmConsults.mnuActEditResubmitClick...┤ │   │ 
                                      TfrmConsults.StartNewEdit...┤ │   │ 
                                 TfrmConsults.ProcessMedResults...┤ │   │ 
                          TfrmConsults.mnuActAttachtoIDParentClick┘ │   │ 
                                        TfrmConsults.DoAttachIDChild┤   │ 
                                  TfrmConsults.tvCsltNotesDragDrop┤ │   │ 
                          TfrmConsults.mnuActAttachtoIDParentClick┘ │   │ 
                                        TfrmConsults.tvConsultsKeyUp┘   │ 
                                                     TfrmNotes.LoadNotes┘ 
                                             TfrmNotes.LstNotesToPrint┤   
                            TfrmFrame.mnuFilePrintSelectedItemsClick┘ │   
                                                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.SaveCurrentNote┘   │   
                                    TfrmNotes.AllowContextChange┤     │   
                            TfrmFrame.AllowContextChangeAll...┘ │     │   
                                    TfrmNotes.LstNotesToPrint...┤     │   
                                          TfrmNotes.RequestPrint┤     │   
                                   TfrmFrame.mnuFilePrintClick┘ │     │   
                                       TfrmNotes.mnuViewClick...┤     │   
                                       TfrmNotes.StartNewEdit...┤     │   
                         TfrmNotes.mnuActDetachFromIDParentClick┤     │   
                                  TfrmNotes.mnuActDeleteClick...┤     │   
                                       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.mnuActSaveClick┤   
                                             TfrmNotes.mnuActSignClick┤   
                                             TfrmNotes.SaveSignItem...┤   
                           TfrmNotes.mnuActIdentifyAddlSignersClick...┤   
                                 TfrmNotes.mnuActAttachtoIDParentClick┤   
                                             TfrmNotes.DoAttachIDChild┘   
                                           TfrmNotes.tvNotesDragDrop┤     
                               TfrmNotes.mnuActAttachtoIDParentClick┘     

Called-By

Name Declaration Comments
TfrmNotes.LoadNotes procedure LoadNotes; -
TfrmDCSumm.LoadSumms procedure LoadSumms; -
TfrmConsults.lstConsultsClick procedure lstConsultsClick(Sender: TObject); -


Source

74    procedure CreateListItemsForDocumentTree(Dest, Source: TStrings; Context: integer; GroupBy: string;
75              Ascending: Boolean; TabIndex: integer);
76    const
77      NO_MATCHES = '^No Matching Documents Found^^^^^^^^^^^%^0';
78    var
79      i: Integer;
80      x, x1, x2, x3, MyParent, MyTitle, MyLocation, MySubject: string;
81      AList, SrcList: TStringList;
82    begin
83      AList := TStringList.Create;
84      SrcList := TStringList.Create;
85      try
86        FastAssign(Source, SrcList);
87        with SrcList do
88          begin
89            if (Count = 0) then
90              begin
91                Dest.Insert(0, IntToStr(Context) + NO_MATCHES);
92                Exit;
93              end;
94            for i := 0 to Count - 1 do
95              begin
96                x := Strings[i];
97                MyParent   := Piece(x, U, 14);
98                MyTitle    := Piece(x, U, 2);
99                if Length(Trim(MyTitle)) = 0 then
100                 begin
101                   MyTitle := '** No Title **';
102                   SetPiece(x, U, 2, MyTitle);
103                 end;
104               MyLocation := Piece(x, U, 6);
105               if Length(Trim(MyLocation)) = 0 then
106                 begin
107                   MyLocation := '** No Location **';
108                   SetPiece(x, U, 6, MyLocation);
109                 end;
110               MySubject  := Piece(x, U, 12);
111   (*            case TIUContext.SearchField[1] of
112                 'T': if ((TextFound(MyTitle)) then continue;
113                 'S': if (not TextFound(MySubject)) then continue;
114                 'B': if not ((TextFound(MyTitle)) or (TextFound(MySubject))) then continue;
115               end;*)
116               if GroupBy <> '' then case GroupBy[1] of
117                 'D':  begin
118                         x1 := Piece(Piece(x, U, 8), ';', 1);                    // Visit date
119                         x2 := Piece(Piece(Piece(x, U, 8), ';', 2), '.', 1);     // Visit date (FM)   no time - v15.4
120                         if x2 = '' then
121                           begin
122                             x2 := 'No Visit';
123                             x1 := Piece(x1, ':', 1) + ':  No Visit';
124                           end;
125                         (*else
126                           x1 := Piece(x1, ':', 1) + ':  ' + FormatFMDateTimeStr('mmm dd,yy@hh:nn',x2)*) //removed v15.4
127                         if MyParent = IntToStr(Context) then
128                           SetPiece(x, U, 14, MyParent + x2 + Copy(x1, 1, 3));    // '2980324Adm'
129                         x3 := x2 + Copy(x1, 1, 3) + U + MixedCase(x1) + U + IntToStr(Context) + MixedCase(Copy(x1, 1, 3));
130                         if (Copy(MyTitle, 1, 8) <> 'Addendum') and (AList.IndexOf(x3) = -1) then
131                           AList.Add(x3);   // '2980324Adm^Mar 24,98'
132                       end;
133                 'L':  begin
134                         if MyParent = IntToStr(Context) then                  // keep ID notes together, or
135                           SetPiece(x, U, 14, MyParent + MyLocation);
136   (*                        if (Copy(MyTitle, 1, 8) <> 'Addendum') then       // split ID Notes by location?
137                           SetPiece(x, U, 14, IntToStr(Context) + MyLocation);*)
138                         x3 := MyLocation + U + MixedCase(MyLocation) + U + IntToStr(Context);
139                         if (Copy(MyTitle, 1, 8) <> 'Addendum') and (AList.IndexOf(x3) = -1) then
140                           AList.Add(x3);
141                       end;
142                 'T':  begin
143                         if MyParent = IntToStr(Context) then                  // keep ID notes together, or
144                           SetPiece(x, U, 14, MyParent + MyTitle);
145   (*                        if (Copy(MyTitle, 1, 8) <> 'Addendum') then       // split ID Notes by title?
146                           SetPiece(x, U, 14, IntToStr(Context) + MyTitle);*)
147                         x3 := MyTitle + U + MixedCase(MyTitle) + U + IntToStr(Context);
148                         if (Copy(MyTitle, 1, 8) <> 'Addendum') and (AList.IndexOf(x3) = -1) then
149                           AList.Add(x3);
150                       end;
151                 'A':  begin
152                         x1 := Piece(Piece(x, U, 5), ';', 3);
153                         if x1 = '' then x1 := '** No Author **';
154                         if MyParent = IntToStr(Context) then                  // keep ID notes together, or
155                           SetPiece(x, U, 14, MyParent + x1);
156                         //if (Copy(MyTitle, 1, 8) <> 'Addendum') then         // split ID Notes by author?
157                         //  SetPiece(x, U, 14, IntToStr(Context) + x1);
158                         x3 := x1 + U + MixedCase(x1) + U + IntToStr(Context);
159                         if (Copy(MyTitle, 1, 8) <> 'Addendum') and(AList.IndexOf(x3) = -1) then
160                           AList.Add(x3);
161                       end;
162   (*              'A':  begin                                                 // Makes note appear both places in tree,
163                         x1 := Piece(Piece(x, U, 5), ';', 3);                  // but also appears TWICE in lstNotes.
164                         if x1 = '' then x1 := '** No Author **';              // IS THIS REALLY A PROBLEM??
165                         if MyParent = IntToStr(Context) then                  // Impact on EditingIndex?
166                           SetPiece(x, U, 14, MyParent + x1);                  // Careful when deleting note being edited!!!
167                         Dest.Add(x);                                          // Need to find and delete ALL occurrences!
168                         SetPiece(x, U, 14, IntToStr(Context) + x1);
169                         x3 := x1 + U + MixedCase(x1) + U + IntToStr(Context);
170                         if (AList.IndexOf(x3) = -1) then AList.Add(x3);
171                       end;*)
172               end;
173               Dest.Add(x);
174             end; {for}
175           SortByPiece(TStringList(Dest), U, 3);
176           if not Ascending then InvertStringList(TStringList(Dest));
177           if GroupBy <> '' then if GroupBy[1] ='D' then
178             begin
179               AList.Add('Adm^Inpatient Notes' + U + IntToStr(Context));
180               AList.Add('Vis^Outpatient Notes' + U + IntToStr(Context));
181             end;
182           Dest.Insert(0, IntToStr(Context) + '^' + NC_TV_TEXT[TabIndex, Context] + '^^^^^^^^^^^%^0');
183           Alist.Sort;
184           InvertStringList(AList);
185           if GroupBy <> '' then if GroupBy[1] ='D' then
186             if (not Ascending) then InvertStringList(AList);
187           for i := 0 to AList.Count-1 do
188             Dest.Insert(0, IntToStr(Context) + Piece(AList[i], U, 1) + '^' + Piece(AList[i], U, 2) + '^^^^^^^^^^^%^' + Piece(AList[i], U, 3));
189         end;
190     finally
191       AList.Free;
192       SrcList.Free;
193     end;
194   end;