Procedure

TfrmGraphs.TempData

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure TempData(aStringList: TStringList; aType: string; dt1, dt2: double);

Calls Hierarchy


TfrmGraphs.TempData
 ├TfrmGraphs.ItemName
 └TfrmGraphs.SetRef
   └TfrmGraphs.RefUnits
     └TfrmGraphs.SelectRef
       └CheckRef

Called-By Hierarchy


                                                TfrmGraphs.TempData
                                           TfrmGraphs.AllTypeDate┘ 
                                        TfrmGraphs.SeriesClicks┤   
                              TfrmGraphs.chartBaseClickSeries┘ │   
                                       TfrmGraphs.MakeChart┘   │   
                             TfrmGraphs.MakeSeparateItems┤     │   
                                TfrmGraphs.MakeSeparate┘ │     │   
                               TfrmGraphs.DisplayData┤   │     │   
                             TfrmFrame.ClearPatient┤ │   │     │   
                           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.ClearPtData┤ │   │     │   
                        TfrmFrame.ClearPatient...┘ │ │   │     │   
                                  TfrmReports.Graph┤ │   │     │   
                       TfrmReports.tvReportsClick┘ │ │   │     │   
                TfrmFrame.lstCIRNLocationsClick┤   │ │   │     │   
                          TfrmFrame.SetUpCIRN┘ │   │ │   │     │   
                  TfrmFrame.SetupPatient...┘   │   │ │   │     │   
                        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...┘   │ │   │     │   
                        TfrmGraphs.chkItemsTopClick┤ │   │     │   
                     TfrmGraphs.chkItemsBottomClick┤ │   │     │   
                 TfrmGraphs.mnuPopGraphIsolateClick┤ │   │     │   
                      TfrmGraphs.cboDateRangeChange┤ │   │     │   
                    TfrmReports.lstDateRangeClick┤ │ │   │     │   
                         TfrmReports.GraphPanel┘ │ │ │   │     │   
                         TfrmReports.Graph...┤   │ │ │   │     │   
                TfrmReports.tvReportsClick...┘   │ │ │   │     │   
                            TfrmGraphs.Initialize┤ │ │   │     │   
                      TfrmFrame.ClearPatient...┤ │ │ │   │     │   
                TfrmFrame.mnuToolsGraphingClick┤ │ │ │   │     │   
                         TfrmLabs.grdLabClick┤ │ │ │ │   │     │   
                      TfrmLabs.tvReportsClick┤ │ │ │ │   │     │   
                       TfrmLabs.DisplayPage┤ │ │ │ │ │   │     │   
                      TfrmLabs.LoadTreeView┤ │ │ │ │ │   │     │   
                     TfrmLabs.DisplayPage┤ │ │ │ │ │ │   │     │   
TfrmOptionsReportsCustom.btnApplyClick...┘ │ │ │ │ │ │   │     │   
                TfrmLabs.cmdOtherTestsClick┤ │ │ │ │ │   │     │   
                   TfrmLabs.chkMaxFreqClick┤ │ │ │ │ │   │     │   
              TfrmLabs.ProcessNotifications┤ │ │ │ │ │   │     │   
                     TfrmLabs.DisplayPage┘ │ │ │ │ │ │   │     │   
                                  ..(rec)..┤ │ │ │ │ │   │     │   
                  TfrmLabs.tvReportsKeyDown┤ │ │ │ │ │   │     │   
         TfrmFrame.lstCIRNLocationsClick...┘ │ │ │ │ │   │     │   
                                    ..(rec)..┘ │ │ │ │   │     │   
                     TfrmReports.ClearPtData...┤ │ │ │   │     │   
                           TfrmReports.Graph...┘ │ │ │   │     │   
                              TfrmGraphs.FormShow┤ │ │   │     │   
                TfrmGraphs.btnChangeSettingsClick┤ │ │   │     │   
                 TfrmReports.btnChangeViewClick┘ │ │ │   │     │   
                     TfrmGraphs.CheckExpandedLabs┤ │ │   │     │   
                          TfrmGraphs.ItemsClick┘ │ │ │   │     │   
                    TfrmGraphs.DisplayData...┤   │ │ │   │     │   
               TfrmGraphs.lvwItemsBottomClick┤   │ │ │   │     │   
                   TfrmGraphs.Initialize...┤ │   │ │ │   │     │   
                    TfrmGraphs.CheckContext┤ │   │ │ │   │     │   
                      TfrmGraphs.FormShow┘ │ │   │ │ │   │     │   
               TfrmGraphs.chkDualViewsClick┤ │   │ │ │   │     │   
                 TfrmGraphs.Initialize...┤ │ │   │ │ │   │     │   
                      TfrmGraphs.FormShow┤ │ │   │ │ │   │     │   
                                   Layout┤ │ │   │ │ │   │     │   
                     TfrmGraphs.GetSize┘ │ │ │   │ │ │   │     │   
                  TfrmGraphs.FormShow┘   │ │ │   │ │ │   │     │   
     TfrmGraphs.mnuPopGraphDualViewsClick┤ │ │   │ │ │   │     │   
                TfrmGraphs.ViewSelections┘ │ │   │ │ │   │     │   
          TfrmReports.tvReportsClick...┤   │ │   │ │ │   │     │   
     TfrmGraphs.btnGraphSelectionsClick┘   │ │   │ │ │   │     │   
  TfrmReports.btnGraphSelectionsClick┘     │ │   │ │ │   │     │   
                     TfrmGraphs.GraphSwitch┤ │   │ │ │   │     │   
                     TfrmGraphs.GraphSwap┘ │ │   │ │ │   │     │   
        TfrmGraphs.mnuPopGraphSwapClick┘   │ │   │ │ │   │     │   
                      TfrmGraphs.SplitClick┤ │   │ │ │   │     │   
         TfrmGraphs.mnuPopGraphSplitClick┘ │ │   │ │ │   │     │   
           TfrmGraphs.mnuPopGraphClearClick┤ │   │ │ │   │     │   
                      TfrmGraphs.AutoSelect┤ │   │ │ │   │     │   
                   TfrmGraphs.ViewsChange┘ │ │   │ │ │   │     │   
           TfrmGraphs.lstViewsTopChange┤   │ │   │ │ │   │     │   
             TfrmGraphs.Initialize...┤ │   │ │   │ │ │   │     │   
            TfrmGraphs.GraphSwitch...┤ │   │ │   │ │ │   │     │   
     TfrmGraphs.cboDateRangeChange...┤ │   │ │   │ │ │   │     │   
         TfrmGraphs.ViewSelections...┘ │   │ │   │ │ │   │     │   
        TfrmGraphs.lstViewsBottomChange┘   │ │   │ │ │   │     │   
             TfrmGraphs.Initialize...┤     │ │   │ │ │   │     │   
            TfrmGraphs.GraphSwitch...┤     │ │   │ │ │   │     │   
     TfrmGraphs.cboDateRangeChange...┤     │ │   │ │ │   │     │   
         TfrmGraphs.ViewSelections...┘     │ │   │ │ │   │     │   
            TfrmGraphs.lvwItemsBottomChange┘ │   │ │ │   │     │   
                  TfrmGraphs.lvwItemsTopClick┘   │ │ │   │     │   
                   TfrmGraphs.Initialize...┤     │ │ │   │     │   
                        TfrmGraphs.FormShow┤     │ │ │   │     │   
            TfrmGraphs.chkDualViewsClick...┤     │ │ │   │     │   
                  TfrmGraphs.GraphSwitch...┤     │ │ │   │     │   
                   TfrmGraphs.SplitClick...┤     │ │ │   │     │   
           TfrmGraphs.mnuPopGraphClearClick┤     │ │ │   │     │   
                   TfrmGraphs.AutoSelect...┤     │ │ │   │     │   
           TfrmGraphs.mnuPopGraphResetClick┤     │ │ │   │     │   
                      TfrmGraphs.FormShow┤ │     │ │ │   │     │   
    TfrmGraphs.mnuPopGraphHorizontalClick┤ │     │ │ │   │     │   
      TfrmGraphs.mnuPopGraphVerticalClick┤ │     │ │ │   │     │   
        TfrmGraphs.mnuPopGraphRemoveClick┤ │     │ │ │   │     │   
      TfrmGraphs.mnuPopGraphZoomBackClick┘ │     │ │ │   │     │   
               TfrmGraphs.lvwItemsTopChange┘     │ │ │   │     │   
                        TfrmGraphs.ViewsChange...┤ │ │   │     │   
             TfrmGraphs.mnuPopGraphMergeLabsClick┘ │ │   │     │   
                           TfrmGraphs.ItemsClick...┤ │   │     │   
                          TfrmGraphs.ViewsChange...┤ │   │     │   
                  TfrmGraphs.mnuPopGraphRemoveClick┘ │   │     │   
                         TfrmGraphs.MakeTogetherMaybe┘   │     │   
                          TfrmGraphs.DisplayData...┘     │     │   
                                  TfrmGraphs.MakeTogether┘     │   
                        TfrmGraphs.MakeTogetherMaybe...┘       │   
                                         TfrmGraphs.LabelClicks┤   
                                       TfrmGraphs.MouseClicks┘ │   
                              TfrmGraphs.chartBaseMouseDown┘   │   
                              TfrmGraphs.chkItemsTopClick┤     │   
                           TfrmGraphs.chkItemsBottomClick┤     │   
                                  TfrmGraphs.MakeChart...┘     │   
                             TfrmGraphs.mnuPopGraphDetailsClick┘   
                                      TfrmGraphs.MakeChart...┤     
                                    TfrmGraphs.LabelClicks...┘     

Calls

Name Declaration Comments
TfrmGraphs.ItemName function ItemName(filenum, itemnum: string): string; -
TfrmGraphs.SetRef procedure SetRef(var datax: string); -

Called-By

Name Declaration Comments
TfrmGraphs.AllTypeDate procedure AllTypeDate(aType, aTypeName, firstline, secondline: string; aDate, aDate2: double); -


Source

3828  procedure TfrmGraphs.TempData(aStringList: TStringList; aType: string; dt1, dt2: double);
3829  var
3830    i: integer;
3831    dttm, datax, fmdate1, fmdate2, itemnum, itemqualifier, newdata: string;
3832    date1, date2, itemvalue: string;
3833    dtdata, dtdata1, dtdata2: double;
3834    ok: boolean;
3835  begin
3836    for i := 0 to GtslData.Count - 1 do
3837    begin
3838      datax := GtslData[i];
3839      if Piece(datax, '^', 1) = aType then
3840      begin
3841        itemnum := Piece(datax, '^', 2);
3842        date1 := Piece(datax, '^', 3);
3843        date2 := Piece(datax, '^', 4);
3844        itemvalue := Piece(datax, '^', 5);
3845        if (length(date2)> 0) then    // date/times of episodes
3846        begin
3847          dtdata1 := strtofloatdef(date1, -1);
3848          fmdate1 := FormatFMDateTime('mm/dd/yy hh:nn', dtdata1);
3849          fmdate1 := StringReplace(fmdate1, ' 00:00', '', [rfReplaceAll]);
3850          dtdata2 := strtofloatdef(date2, -1);
3851          fmdate2 := FormatFMDateTime('mm/dd/yy hh:nn', dtdata2);
3852          fmdate2 := StringReplace(fmdate2, ' 00:00', '', [rfReplaceAll]);
3853          if (dtdata2 > dt1) and (dtdata1 < dt2) then
3854          begin
3855            newdata := date1 + '^' +
3856                       itemnum + '^' +
3857                       fmdate1 + ' - ' +
3858                       fmdate2 + '^' +
3859                       ItemName(aType, itemnum) + '^' +
3860                       itemvalue;
3861            aStringList.Add(MixedCase(newdata));
3862          end;
3863        end
3864        else
3865        begin
3866          ok := true;
3867          if aType = '63' then
3868          begin
3869            SetRef(datax);
3870            itemqualifier := Piece(itemnum, '.', 2);
3871            if length(itemqualifier) > 0 then
3872            begin
3873              if FGraphSetting.MergeLabs then
3874                if itemqualifier  <> '0' then ok := false;
3875              if not FGraphSetting.MergeLabs then
3876                if itemqualifier  = '0' then ok := false;
3877            end;
3878          end;
3879          if ok then
3880          begin
3881            dtdata := strtofloatdef(date1, -1);
3882            if (dtdata >= dt1) and (dtdata < dt2) then
3883            begin
3884              if length(Piece(date1, '.', 2)) > 0 then
3885                dttm := FormatFMDateTime('mm/dd/yy hh:nn', dtdata)
3886              else
3887                dttm := FormatFMDateTime('mm/dd/yy', dtdata);
3888              newdata := date1 + '^' +
3889              itemnum + '^' +
3890              itemvalue + '^' +
3891              dttm + '^' +
3892              ItemName(aType, itemnum);
3893              newdata := MixedCase(newdata);
3894              newdata := newdata + '^' + Pieces(datax, '^', 6, 11);
3895              aStringList.Add(newdata);
3896            end;
3897          end;
3898        end;
3899      end;
3900    end;
3901  end;