Procedure

TfrmGraphs.MakeNonNumSeries

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure MakeNonNumSeries(aChart: TChart; padvalue, highestvalue, lowestvalue: double; listofseries, section: string);

Calls Hierarchy


TfrmGraphs.MakeNonNumSeries
 └TfrmGraphs.MakeSeriesPoint

Called-By Hierarchy


                                    TfrmGraphs.MakeNonNumSeries
                                   TfrmGraphs.MakeNonNumerics┘ 
                                 TfrmGraphs.MakeOtherSeries┘   
                             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...┘       

Calls

Name Declaration Comments
TfrmGraphs.MakeSeriesPoint procedure MakeSeriesPoint(aChart: TChart; aPointSeries: TPointSeries); -

Called-By

Name Declaration Comments
TfrmGraphs.MakeNonNumerics procedure MakeNonNumerics(aChart: TChart); -


Source

2779  procedure TfrmGraphs.MakeNonNumSeries(aChart: TChart; padvalue, highestvalue, lowestvalue: double; listofseries, section: string);
2780  var
2781    asernum, i, j, offset, originalindex, linenum: integer;
2782    graphvalue, nonvalue: double;
2783    avalue, line: string;
2784    adatetime: TDateTime;
2785    serPoint: TPointSeries;
2786  begin
2787    for j := 2 to BIG_NUMBER do
2788    begin
2789      line := Piece(listofseries, '^' , j);
2790      if length(line) < 1 then break;
2791      linenum := strtointdef(line, -BIG_NUMBER);
2792      if linenum = -BIG_NUMBER then break;
2793      serPoint := TPointSeries.Create(aChart);
2794      MakeSeriesPoint(aChart, serPoint);
2795      with serPoint do
2796      begin
2797        serPoint.Title := '(non-numeric)';
2798        serPoint.Identifier := (aChart.Series[linenum] as TCustomSeries).Title;
2799        serPoint.Pointer.Style := (aChart.Series[linenum] as TCustomSeries).Pointer.Style;
2800        serPoint.SeriesColor := (aChart.Series[linenum] as TCustomSeries).SeriesColor;
2801        serPoint.Tag := BIG_NUMBER + linenum;
2802      end;
2803      for i := 0 to GtslNonNum.Count - 1 do
2804      begin
2805        avalue := GtslNonNum[i];
2806        if Piece(avalue, '^', 7) = section then
2807        begin
2808          originalindex := strtointdef(Piece(avalue, '^', 3), 0);
2809          if originalindex = linenum then
2810          begin
2811            adatetime := strtofloatdef(Piece(avalue, '^', 1), -BIG_NUMBER);
2812            asernum := aChart.Tag;
2813            if adatetime = -BIG_NUMBER then break;
2814            if asernum = strtointdef(Piece(avalue, '^', 2), -BIG_NUMBER) then
2815            begin
2816              offset := strtointdef(Piece(avalue, '^', 5), 1);
2817              graphvalue := padvalue * offset;
2818              if copy(Piece(avalue, '^', 13), 0, 1) = '>' then
2819                nonvalue := highestvalue
2820              else
2821                nonvalue := lowestvalue;
2822              nonvalue := nonvalue + graphvalue;
2823              with serPoint do
2824              begin
2825                Hint := Piece(avalue, '^', 9);
2826                AddXY(adatetime, nonvalue, '', serPoint.SeriesColor);
2827              end;
2828            end;
2829          end;
2830        end;
2831      end;
2832    end;
2833  end;