Procedure

TfrmGraphs.GetData

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure GetData(aString: string);

Calls Hierarchy


TfrmGraphs.GetData
 └TfrmGraphs.FMCorrectedDate

Called-By Hierarchy


                                             TfrmGraphs.GetData
                                    TfrmGraphs.MakeSeriesInfo┘ 
                                  TfrmGraphs.MakeLineSeries┤   
                             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.MakeTogetherOnlyLines┤ │   
                                TfrmGraphs.MakeTogether┘ │ │   
                      TfrmGraphs.MakeTogetherMaybe...┘   │ │   
                          TfrmGraphs.MakeTogetherAnyLines┘ │   
                             TfrmGraphs.MakeTogether...┘   │   
                                 TfrmGraphs.MakePointSeries┤   
                          TfrmGraphs.MakeSeparateItems...┤ │   
                                  TfrmGraphs.MakeDateline┘ │   
                         TfrmGraphs.MakeTogetherNoLines┤   │   
                           TfrmGraphs.MakeTogether...┘ │   │   
                     TfrmGraphs.MakeTogetherAnyLines...┘   │   
                                   TfrmGraphs.MakeBarSeries┤   
                          TfrmGraphs.MakeSeparateItems...┤ │   
                               TfrmGraphs.MakeDateline...┘ │   
                                 TfrmGraphs.MakeGanttSeries┤   
                          TfrmGraphs.MakeSeparateItems...┤ │   
                               TfrmGraphs.MakeDateline...┘ │   
                            TfrmGraphs.MakeVisitGanttSeries┘   
                          TfrmGraphs.MakeSeparateItems...┤     
                               TfrmGraphs.MakeDateline...┘     

Calls

Name Declaration Comments
TfrmGraphs.FMCorrectedDate function FMCorrectedDate(fmtime: string): string; -

Called-By

Name Declaration Comments
TfrmGraphs.MakeSeriesInfo procedure MakeSeriesInfo(aChart: TChart; aSeries: TChartSeries; aTitle, aFileType: string; aSerCnt: integer); -


Source

4539  procedure TfrmGraphs.GetData(aString: string);
4540  var
4541    i: integer;
4542    filenum, itemdata, itemid: string;
4543    aDate, aDate1: double;
4544  begin
4545    GtslTemp.Clear;
4546    itemid := UpperCase(Pieces(aString, '^', 1, 2));
4547    for i := GtslData.Count - 1 downto 0 do
4548      if itemid = UpperCase(Pieces(GtslData[i], '^', 1, 2)) then
4549      begin
4550        itemdata := GtslData[i];
4551        filenum := Piece(itemdata, '^', 1);
4552        if (filenum = '52') or (filenum = '55') or (filenum = '55NVA')
4553        or (filenum = '9999911') or (filenum = '405') or (filenum = '9000010') then
4554        begin
4555          aDate := strtofloat(FMCorrectedDate(Piece(itemdata, '^', 3)));
4556          aDate1 := strtofloat(FMCorrectedDate(Piece(itemdata, '^', 4)));
4557          if (aDate < FGraphSetting.FMStopDate) and (aDate > FGraphSetting.FMStartDate) then
4558            GtslTemp.Add(GtslData[i])
4559          else if (aDate < FGraphSetting.FMStopDate) and (aDate1 > FGraphSetting.FMStartDate) then
4560            GtslTemp.Add(GtslData[i])
4561          else if (aDate < FGraphSetting.FMStartDate) and (aDate1 > FGraphSetting.FMStopDate) then
4562            GtslTemp.Add(GtslData[i]);
4563        end
4564        else if Piece(itemdata, '^', 3) <> '' then
4565        begin
4566          aDate := strtofloat(FMCorrectedDate(Piece(itemdata, '^', 3)));
4567          if (aDate < FGraphSetting.FMStopDate) and (aDate > FGraphSetting.FMStartDate) then
4568            if Copy(itemdata, 1, 4) = '63MI' then
4569              GtslTemp.Add(Pieces(GtslData[i], '^', 1, 4))
4570            else if Copy(itemdata, 1, 4) = '63AP' then
4571              GtslTemp.Add(Pieces(GtslData[i], '^', 1, 4))
4572            //else GtslTemp.Add(Pieces(Items[i], '^', 1, 5));         // add in non micro, ap
4573            else GtslTemp.Add(GtslData[i]);         // add in non micro, ap
4574        end;
4575      end;
4576  end;