Procedure

TfrmLabs.DisplayHeading

Module

fLabs

Last Modified

7/15/2014 3:26:38 PM

Visibility

Public/Published

Owner

TfrmLabs

Declaration

procedure DisplayHeading(aRanges: string);

Calls Hierarchy


TfrmLabs.DisplayHeading
 └ValidDateTimeStr

Called-By Hierarchy


                                TfrmLabs.DisplayHeading
                           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.lstDatesClick┤ 
                         TfrmLabs.tvReportsClick...┘ │ 
                     TfrmLabs.ProcessNotifications...┤ 
                           TfrmLabs.tvReportsClick...┘ 

Calls

Name Declaration Comments
ValidDateTimeStr function ValidDateTimeStr(const AString, Flags: string): TFMDateTime; -

Called-By

Name Declaration Comments
TfrmLabs.lstDatesClick procedure lstDatesClick(Sender: TObject); -
TfrmLabs.lstQualifierClick procedure lstQualifierClick(Sender: TObject); -
TfrmLabs.ProcessNotifications procedure ProcessNotifications; -
TfrmLabs.tvReportsClick procedure tvReportsClick(Sender: TObject); -


Source

853   procedure TfrmLabs.DisplayHeading(aRanges: string);
854   var
855     x,x1,x2,y,z,DaysBack: string;
856     d1,d2: TFMDateTime;
857   begin
858     with lblTitle do
859     begin
860       x := '';
861       if tvReports.Selected = nil then
862        tvReports.Selected := tvReports.Items.GetFirstNode;
863       if tvReports.Selected.Parent <> nil then
864         x := tvReports.Selected.Parent.Text + ' ' + tvReports.Selected.Text
865       else
866         x :=  tvReports.Selected.Text;
867         x1 := '';
868         x2 := '';
869       if (uReportType <> 'M') and (not(uRptID = '1:MOST RECENT')) then
870         begin
871           if CharAt(aRanges, 1) = 'd' then
872             begin
873               if length(piece(aRanges,';',2)) > 0 then
874                 begin
875                   x2 := '  Max/site:' + piece(aRanges,';',2);
876                   aRanges := piece(aRanges,';',1);
877                 end;
878               DaysBack := Copy(aRanges, 2, Length(aRanges));
879               if DaysBack = '' then DaysBack := '7';
880               if DaysBack = '0' then
881                 aRanges := 'T' + ';T'
882               else
883                 if Copy(aRanges, 2, 1) = 'T' then
884                   aRanges := DaysBack + ';T'
885                 else
886                   aRanges := 'T-' + DaysBack + ';T';
887             end;
888           if length(piece(aRanges,';',1)) > 0 then
889             begin
890               d1 := ValidDateTimeStr(piece(aRanges,';',1),'');
891               d2 := ValidDateTimeStr(piece(aRanges,';',2),'');
892               y := FormatFMDateTime('mmm dd,yyyy',d1);
893               if Copy(y,8,2) = '18' then y := 'EARLIEST RESULT';
894               z := FormatFMDateTime('mmm dd,yyyy',d2);
895               x1 := ' [From: ' + y + ' to ' + z + ']';
896             end;
897           if length(piece(aRanges,';',3)) > 0 then
898             x2 := '  Max/site:' + piece(aRanges,';',3);
899           case uQualifierType of
900             QT_DATERANGE:
901                 x := x + x1;
902             QT_HSCOMPONENT:
903                 x := x + x1 + x2;
904             QT_HSWPCOMPONENT:
905                 x := x + x1 + x2;
906             QT_IMAGING:
907                 x := x + x1 + x2;
908             0:
909                 x := x + x1;
910           end;
911         end;
912       if piece(uRemoteType, '^', 9) = '1' then x := x + ' <<ONLY REMOTE DATA INCLUDED IN REPORT>>';
913       Caption := x;
914     end;
915     lvReports.Caption := x;
916   end;