Procedure

LoadReportText

Module

rReports

Last Modified

7/15/2014 3:26:44 PM

Scope

Interfaced

Declaration

procedure LoadReportText(Dest: TStrings; ReportType: string; const Qualifier: string; ARpc, AHSTag: string);

Calls Hierarchy


LoadReportText
 └StrToFMDateTime

Called-By Hierarchy


                                         LoadReportText
                           TfrmLabs.lstQualifierClick┤ 
                            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┘         │ 
                           TfrmLabs.tvReportsClick...┤ 
                        TfrmReports.lstQualifierClick┤ 
                         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...┘   │ 
                        TfrmReports.tvReportsClick...┤ 
                      TfrmReports.lvReportsSelectItem┤ 
                       TfrmReports.tvProceduresChange┘ 

Calls

Name Declaration Comments
StrToFMDateTime function StrToFMDateTime(const AString: string): TFMDateTime; -

Called-By

Name Declaration Comments
TfrmLabs.lstQualifierClick procedure lstQualifierClick(Sender: TObject); -
TfrmReports.lstQualifierClick procedure lstQualifierClick(Sender: TObject); -
TfrmReports.lvReportsSelectItem procedure lvReportsSelectItem(Sender: TObject; Item: TListItem; Selected: Boolean); -
TfrmReports.tvProceduresChange procedure tvProceduresChange(Sender: TObject; Node: TTreeNode); -
TfrmLabs.tvReportsClick procedure tvReportsClick(Sender: TObject); -
TfrmReports.tvReportsClick procedure tvReportsClick(Sender: TObject); -


Source

304   procedure LoadReportText(Dest: TStrings; ReportType: string; const Qualifier: string; ARpc, AHSTag: string);
305   var
306     HSType, DaysBack, ExamID, MaxOcc, AReport, x: string;
307     Alpha, Omega, Trans: double;
308   begin
309     HSType := '';
310     DaysBack := '';
311     ExamID := '';
312     Alpha := 0;
313     Omega := 0;
314     if CharAt(Qualifier, 1) = 'T' then
315       begin
316         Alpha := StrToFMDateTime(Piece(Qualifier,';',1));
317         Omega := StrToFMDateTime(Piece(Qualifier,';',2));
318         if Alpha > Omega then
319           begin
320             Trans := Omega;
321             Omega := Alpha;
322             Alpha := Trans;
323           end;
324         MaxOcc := Piece(Qualifier,';',3);
325         SetPiece(AHSTag,';',4,MaxOcc);
326       end;
327     if CharAt(Qualifier, 1) = 'd' then
328       begin
329         MaxOcc := Piece(Qualifier,';',2);
330         SetPiece(AHSTag,';',4,MaxOcc);
331         x := Piece(Qualifier,';',1);
332         DaysBack := Copy(x, 2, Length(x));
333       end;
334     if CharAt(Qualifier, 1) = 'h' then HSType   := Copy(Qualifier, 2, Length(Qualifier));
335     if CharAt(Qualifier, 1) = 'i' then ExamID   := Copy(Qualifier, 2, Length(Qualifier));
336     AReport := ReportType + '~' + AHSTag;
337     if Length(ARpc) > 0 then
338       begin
339         CallV(ARpc, [Patient.DFN, AReport, HSType, DaysBack, ExamID, Alpha, Omega]);
340         QuickCopy(RPCBrokerV.Results,Dest);
341       end
342     else
343       begin
344         Dest.Add('RPC is missing from report definition (file 101.24).');
345         Dest.Add('Please contact Technical Support.');
346       end;
347   end;