Procedure

TfrmGraphs.MakeTogetherAnyLines

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure MakeTogetherAnyLines(aListView: TListView; section: string; aChart: TChart);

Calls Hierarchy


TfrmGraphs.MakeTogetherAnyLines
 ├TfrmGraphs.SingleLabTest
 ├TfrmGraphs.TitleInfo
 │ └TfrmGraphs.RefUnits
 │   └TfrmGraphs.SelectRef
 │     └CheckRef
 ├TfrmGraphs.GraphTypeNum
 ├TfrmGraphs.MakeLineSeries
 │ ├TfrmGraphs.MakeSeriesInfo
 │ │ ├TfrmGraphs.GetData
 │ │ │ └TfrmGraphs.FMCorrectedDate
 │ │ └TfrmGraphs.NextColor
 │ ├TfrmGraphs.NextPointerStyle
 │ ├TfrmGraphs.BPCheck
 │ │ └TfrmGraphs.MakeSeriesBP
 │ ├TfrmGraphs.FMCorrectedDate
 │ ├TfrmGraphs.HighLow
 │ │ └TfrmGraphs.FMToDateTime
 │ ├TfrmGraphs.BPAdd
 │ │ └TfrmGraphs.BorderValue
 │ ├TfrmGraphs.NumAdd
 │ │ ├TfrmGraphs.StdDev
 │ │ ├TfrmGraphs.BorderValue
 │ │ └TfrmGraphs.InvVal
 │ ├TfrmGraphs.NonNumSave
 │ ├TfrmGraphs.MakeSeriesRef
 │ │ └TfrmGraphs.BorderValue
 │ ├TfrmGraphs.MakeSeriesPoint
 │ ├TfrmGraphs.PainAdd
 │ └TfrmGraphs.FixedDates
 ├TfrmGraphs.DisplayFreeText
 └TfrmGraphs.MakeDateline
   ├TfrmGraphs.MakeBarSeries
   │ ├TfrmGraphs.MakeSeriesPoint
   │ ├TfrmGraphs.MakeSeriesInfo...
   │ ├TfrmGraphs.NextPointerStyle
   │ ├TfrmGraphs.FMCorrectedDate
   │ ├TfrmGraphs.HighLow...
   │ ├TfrmGraphs.InfoMessage
   │ ├TfrmGraphs.MergedLabsSelected
   │ └TfrmGraphs.FixedDates
   ├TfrmGraphs.MakeVisitGanttSeries
   │ ├TfrmGraphs.MakeSeriesPoint
   │ ├TfrmGraphs.MakeSeriesInfo...
   │ ├TfrmGraphs.FMCorrectedDate
   │ ├TfrmGraphs.HighLow...
   │ └TfrmGraphs.FixedDates
   ├TfrmGraphs.MakePointSeries
   │ ├TfrmGraphs.MakeSeriesInfo...
   │ ├TfrmGraphs.NextPointerStyle
   │ ├TfrmGraphs.FMCorrectedDate
   │ ├TfrmGraphs.HighLow...
   │ └TfrmGraphs.TempCheck
   └TfrmGraphs.MakeGanttSeries
     ├TfrmGraphs.MakeSeriesPoint
     ├TfrmGraphs.MakeSeriesInfo...
     ├TfrmGraphs.FMCorrectedDate
     ├TfrmGraphs.HighLow...
     └TfrmGraphs.FixedDates

Called-By Hierarchy


                            TfrmGraphs.MakeTogetherAnyLines
                                  TfrmGraphs.MakeTogether┘ 
                           TfrmGraphs.MakeTogetherMaybe┘   
                               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┘       

Calls

Name Declaration Comments
TfrmGraphs.DisplayFreeText procedure DisplayFreeText(aChart: TChart); -
TfrmGraphs.GraphTypeNum function GraphTypeNum(aType: string): integer; -
TfrmGraphs.MakeDateline procedure MakeDateline(section, aTitle, aFileType: string; aChart: TChart; graphtype: integer; var bcnt, pcnt, gcnt, vcnt: integer); -
TfrmGraphs.MakeLineSeries procedure MakeLineSeries(aChart: TChart; aTitle, aFileType, section: string; var aSerCnt, aNonCnt: integer; multiline: boolean); -
TfrmGraphs.SingleLabTest function SingleLabTest(aListView: TListView): boolean; -
TfrmGraphs.TitleInfo function TitleInfo(filetype, typeitem, caption: string): string; -

Called-By

Name Declaration Comments
TfrmGraphs.MakeTogether procedure MakeTogether(aScrollBox: TScrollBox; aListView: TListView; aPadPanel: TPanel; section: string); -


Source

2457  procedure TfrmGraphs.MakeTogetherAnyLines(aListView: TListView; section: string; aChart: TChart);
2458  var
2459    singletest: boolean;
2460    bcnt, gcnt, graphtype, lcnt, ncnt, pcnt, vcnt: integer;
2461    aTitle, filetype, typeitem: string;
2462    aGraphItem: TGraphItem;
2463    aListItem: TListItem;
2464  begin
2465    singletest := SingleLabTest(aListView);
2466    pcnt := 0; gcnt := 0; vcnt := 0; lcnt := 0; bcnt := 0;
2467    aListItem := aListView.Selected;
2468    while aListItem <> nil do
2469    begin
2470      aGraphItem := TGraphItem(aListItem.SubItems.Objects[3]);
2471      filetype := Piece(aGraphItem.Values, '^', 1);
2472      typeitem := Piece(aGraphItem.Values, '^', 2);
2473      aTitle := TitleInfo(filetype, typeitem, aListItem.Caption);
2474      graphtype := GraphTypeNum(filetype);
2475      if graphtype = 1 then
2476      begin
2477        if btnChangeSettings.Tag = 1 then
2478          aChart.LeftAxis.Title.Caption := 'StdDev'
2479        else
2480          aChart.LeftAxis.Title.Caption := Piece(aTitle, '^', 7);
2481        if singletest then
2482          splGraphs.Tag := 1
2483        else
2484          splGraphs.Tag := 0;
2485        MakeLineSeries(aChart, aTitle, filetype, section, lcnt, ncnt, true);
2486        if FDisplayFreeText = true then DisplayFreeText(aChart);
2487      end
2488      else if section = 'top' then
2489        MakeDateline(section, aTitle, filetype, chartDatelineTop, graphtype, bcnt, pcnt, gcnt, vcnt)
2490      else
2491        MakeDateline(section, aTitle, filetype, chartDatelineBottom, graphtype, bcnt, pcnt, gcnt, vcnt);
2492      aListItem := aListView.GetNextItem(aListItem, sdAll, [isSelected]);
2493    end;
2494    if section = 'top' then
2495    begin
2496      scrlTop.Align := alTop;
2497      pnlDatelineTop.Align := alBottom;
2498      pnlDatelineTop.Height := pnlScrollTopBase.Height div 2;
2499      scrlTop.Align := alClient;
2500      pnlDatelineTop.Visible := true;
2501    end
2502    else
2503    begin
2504      scrlBottom.Align := alTop;
2505      pnlDatelineBottom.Align := alBottom;
2506      pnlDatelineBottom.Height := pnlScrollBottomBase.Height div 2;
2507      scrlBottom.Align := alClient;
2508      pnlDatelineBottom.Visible := true;
2509    end;
2510    with aChart do
2511    begin
2512      if btnChangeSettings.Tag = 1 then
2513        LeftAxis.Title.Caption := 'StdDev';
2514      Visible := true;
2515    end;
2516  end;