Procedure

FormatECSDate

Module

rECS

Last Modified

7/15/2014 3:26:44 PM

Scope

Interfaced

Declaration

procedure FormatECSDate(ADTStr: string; var AnECSRpt: TECSReport);

Calls Hierarchy


FormatECSDate
 └StrToFMDateTime

Called-By Hierarchy


                                          FormatECSDate
                        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...┘     

Calls

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

Called-By

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


Source

81    procedure FormatECSDate(ADTStr: string; var AnECSRpt: TECSReport);
82    var
83      x,DaysBack :string;
84      Alpha, Omega: double;
85    begin
86      Alpha := 0;
87      Omega := 0;
88      if CharAt(ADTStr, 1) = 'T' then
89      begin
90        Alpha := StrToFMDateTime(Piece(ADTStr,';',1));
91        Omega := StrToFMDateTime(Piece(ADTStr,';',2));
92      end;
93      if CharAt(ADTStr, 1) = 'd' then
94      begin
95        x := Piece(ADTStr,';',1);
96        DaysBack := Copy(x, 2, Length(x));
97        Alpha := StrToFMDateTime('T-' + DaysBack);
98        Omega := StrToFMDateTime('T');
99      end;
100     AnECSRpt.ReportStart := FloatToStr(Alpha);
101     AnECSRpt.ReportEnd   := FloatToStr(Omega);
102   end;