Procedure

TfrmReports.DisplayHeading

Module

fReports

Last Modified

7/15/2014 3:26:38 PM

Visibility

Public/Published

Owner

TfrmReports

Declaration

procedure DisplayHeading(aRanges: string);

Calls Hierarchy


TfrmReports.DisplayHeading
 └ValidDateTimeStr

Called-By Hierarchy


                             TfrmReports.DisplayHeading
                        TfrmReports.lstQualifierClick┤ 
                         TfrmReports.tvReportsClick┘ │ 
                  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.DisplayPage┤   │ 
                         TfrmReports.LoadTreeView┤   │ 
                        TfrmReports.DisplayPage┤ │   │ 
           TfrmOptionsReportsDefault.btnOKClick┤ │   │ 
        TfrmOptionsReportsDefault.btnResetClick┤ │   │ 
         TfrmOptionsReportsCustom.btnApplyClick┘ │   │ 
          TfrmOptionsReportsCustom.btnOKClick┘   │   │ 
                 TfrmReports.ProcessNotifications┤   │ 
                        TfrmReports.DisplayPage┘ │   │ 
                     TfrmReports.tvReportsKeyDown┤   │ 
                  TfrmReports.tvProceduresKeyDown┤   │ 
                      TfrmReports.chkMaxFreqClick┤   │ 
             TfrmOptionsReportsDefault.btnOKClick┤   │ 
          TfrmOptionsReportsDefault.btnResetClick┤   │ 
        TfrmOptionsReportsCustom.btnApplyClick...┘   │ 
                        TfrmReports.tvReportsClick...┘ 

Calls

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

Called-By

Name Declaration Comments
TfrmReports.lstQualifierClick procedure lstQualifierClick(Sender: TObject); -
TfrmReports.tvReportsClick procedure tvReportsClick(Sender: TObject); -


Source

1434  procedure TfrmReports.DisplayHeading(aRanges: string);
1435  var
1436    x,x1,x2,y,z,DaysBack: string;
1437    d1,d2: TFMDateTime;
1438  begin
1439    with lblTitle do
1440    begin
1441      x := '';
1442      if tvReports.Selected = nil then
1443       tvReports.Selected := tvReports.Items.GetFirstNode;
1444      if tvReports.Selected.Parent <> nil then
1445        x := tvReports.Selected.Parent.Text + ' ' + tvReports.Selected.Text
1446      else
1447        x :=  tvReports.Selected.Text;
1448        x1 := '';
1449        x2 := '';
1450      if uReportType <> 'M' then
1451        begin
1452          if CharAt(aRanges, 1) = 'd' then
1453            begin
1454              if length(piece(aRanges,';',2)) > 0 then
1455                begin
1456                  x2 := '  Max/site:' + piece(aRanges,';',2);
1457                  aRanges := piece(aRanges,';',1);
1458                end;
1459              DaysBack := Copy(aRanges, 2, Length(aRanges));
1460              if DaysBack = '0' then
1461                aRanges := 'T' + ';T'
1462              else
1463                aRanges := 'T-' + DaysBack + ';T';
1464            end;
1465          if length(piece(aRanges,';',1)) > 0 then
1466            begin
1467              d1 := ValidDateTimeStr(piece(aRanges,';',1),'');
1468              d2 := ValidDateTimeStr(piece(aRanges,';',2),'');
1469              y := FormatFMDateTime('mmm dd,yyyy',d1);
1470              if Copy(y,8,2) = '18' then y := 'EARLIEST RESULT';
1471              z := FormatFMDateTime('mmm dd,yyyy',d2);
1472              x1 := ' [From: ' + y + ' to ' + z + ']';
1473            end;
1474          if length(piece(aRanges,';',3)) > 0 then
1475            x2 := '  Max/site:' + piece(aRanges,';',3);
1476          case uQualifierType of
1477            QT_DATERANGE:
1478                x := x + x1;
1479            QT_HSCOMPONENT:
1480                x := x + x1 + x2;
1481            QT_HSWPCOMPONENT:
1482                x := x + x1 + x2;
1483            QT_IMAGING:
1484                x := x + x1 + x2;
1485          end;
1486        end;
1487      if piece(uRemoteType, '^', 9) = '1' then x := x + ' <<ONLY REMOTE DATA INCLUDED IN REPORT>>';
1488      Caption := x;
1489    end;
1490    lvReports.Caption := x;
1491  end;