Procedure

ExtractSection

Module

rReports

Last Modified

7/15/2014 3:26:44 PM

Comments

Reports

Scope

Global

Declaration

procedure ExtractSection(Dest: TStrings; const Section: string; Mixed: Boolean);

Called-By Hierarchy


                                           ExtractSection
                                        LoadReportLists┤ 
                                 ListReportDateRanges┤ │ 
                            TfrmLabs.tvReportsClick┤ │ │ 
                             TfrmLabs.DisplayPage┤ │ │ │ 
                            TfrmLabs.LoadTreeView┤ │ │ │ 
                           TfrmLabs.DisplayPage┤ │ │ │ │ 
         TfrmOptionsReportsCustom.btnApplyClick┘ │ │ │ │ 
          TfrmOptionsReportsCustom.btnOKClick┘   │ │ │ │ 
                      TfrmLabs.cmdOtherTestsClick┤ │ │ │ 
                         TfrmLabs.chkMaxFreqClick┤ │ │ │ 
                    TfrmLabs.ProcessNotifications┤ │ │ │ 
                           TfrmLabs.DisplayPage┘ │ │ │ │ 
                                        ..(rec)..┤ │ │ │ 
                        TfrmLabs.tvReportsKeyDown┤ │ │ │ 
                  TfrmFrame.lstCIRNLocationsClick┘ │ │ │ 
                            TfrmFrame.SetUpCIRN┘   │ │ │ 
                       TfrmFrame.SetupPatient┘     │ │ │ 
                  UpdatePatientInfoForAlert┤       │ │ │ 
               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.AllowCCOWContextChange┤       │ │ │ 
            TfrmFrame.mnuFileNextClick...┤ │       │ │ │ 
            TfrmFrame.mnuFileOpenClick...┤ │       │ │ │ 
   TfrmFrame.mnuFileResumeContextSetClick┘ │       │ │ │ 
                TfrmFrame.UpdateCCOWContext┤       │ │ │ 
            TfrmFrame.mnuFileOpenClick...┤ │       │ │ │ 
          TfrmFrame.ctxContextorCommitted┤ │       │ │ │ 
           TfrmFrame.StartCCOWContextor┘ │ │       │ │ │ 
                 TfrmFrame.FormCreate┘   │ │       │ │ │ 
   TfrmFrame.mnuFileResumeContextGetClick┘ │       │ │ │ 
     TfrmFrame.mnuFileResumeContextSetClick┘       │ │ │ 
                         TfrmReports.tvReportsClick┘ │ │ 
               TfrmFrame.lstCIRNLocationsClick...┤   │ │ 
                          TfrmReports.DisplayPage┤   │ │ 
                         TfrmReports.LoadTreeView┤   │ │ 
                        TfrmReports.DisplayPage┤ │   │ │ 
           TfrmOptionsReportsDefault.btnOKClick┤ │   │ │ 
        TfrmOptionsReportsDefault.btnResetClick┤ │   │ │ 
      TfrmOptionsReportsCustom.btnApplyClick...┘ │   │ │ 
                 TfrmReports.ProcessNotifications┤   │ │ 
                        TfrmReports.DisplayPage┘ │   │ │ 
                     TfrmReports.tvReportsKeyDown┤   │ │ 
                  TfrmReports.tvProceduresKeyDown┤   │ │ 
                      TfrmReports.chkMaxFreqClick┤   │ │ 
             TfrmOptionsReportsDefault.btnOKClick┤   │ │ 
          TfrmOptionsReportsDefault.btnResetClick┤   │ │ 
        TfrmOptionsReportsCustom.btnApplyClick...┘   │ │ 
                               ListHealthSummaryTypes┘ │ 
                                 HealthSummaryCheck┘   │ 
                      TfrmReports.LoadTreeView...┘     │ 
                                     LoadLabReportLists┤ 
                                               LoadTree┘ 
                                          ListReports┤   
                        TfrmReports.LoadTreeView...┘ │   
                                       ListLabReports┘   
                           TfrmLabs.LoadTreeView...┘     

Called-By

Name Declaration Comments
LoadLabReportLists procedure LoadLabReportLists; -
LoadReportLists procedure LoadReportLists; -
LoadTree procedure LoadTree(Tab: String); -


Source

103   procedure ExtractSection(Dest: TStrings; const Section: string; Mixed: Boolean);
104   var
105     i: Integer;
106   begin
107     with RPCBrokerV do
108     begin
109       i := -1;
110       repeat Inc(i) until (i = Results.Count) or (Results[i] = Section);
111       Inc(i);
112       while (i < Results.Count) and (Results[i] <> '$$END') do
113       begin
114         {if (Pos('OR_ECS',UpperCase(Results[i]))>0) and (not uECSReport.ECSPermit) then
115         begin
116           Inc(i);
117           Continue;
118         end;}
119         if Mixed = true then
120           Dest.Add(MixedCase(Results[i]))
121         else
122           Dest.Add(Results[i]);
123         Inc(i);
124       end;
125     end;
126   end;