Function

TfrmGraphs.ValueText

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

function ValueText(Sender: TCustomChart; aSeries: TChartSeries; ValueIndex: Integer): string;

Calls Hierarchy


TfrmGraphs.ValueText
 ├TfrmGraphs.NonNumText
 │ ├TfrmGraphs.FileNameX
 │ ├TfrmGraphs.ItemName
 │ └TfrmGraphs.SetRefNonNum
 │   └TfrmGraphs.RefUnits
 │     └TfrmGraphs.SelectRef
 │       └CheckRef
 ├TfrmGraphs.ItemCheck
 ├TfrmGraphs.CheckMedNum
 ├TfrmGraphs.FileNameX
 ├TfrmGraphs.ValueDates
 ├TfrmGraphs.ResultValue
 │ ├TfrmGraphs.serDatelineTopGetMarkText
 │ └TfrmGraphs.BPValue
 └TfrmGraphs.OtherInfo
   └TfrmGraphs.SetRef
     └TfrmGraphs.RefUnits...

Called-By Hierarchy


                                             TfrmGraphs.ValueText
                                        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.ItemDateRange┤ 
                                        TfrmGraphs.AllDetails┤ │ 
                         TfrmGraphs.mnuPopGraphDetailsClick┘ │ │ 
                                  TfrmGraphs.MakeChart...┤   │ │ 
                                   TfrmGraphs.LabelClicks┘   │ │ 
                                 TfrmGraphs.MouseClicks┘     │ │ 
                        TfrmGraphs.chartBaseMouseDown┘       │ │ 
                        TfrmGraphs.chkItemsTopClick┤         │ │ 
                     TfrmGraphs.chkItemsBottomClick┤         │ │ 
                            TfrmGraphs.MakeChart...┘         │ │ 
                              TfrmGraphs.chartBaseClickLegend┘ │ 
                                    TfrmGraphs.MakeChart...┘   │ 
                                      TfrmGraphs.LabelClicks...┤ 
                          TfrmGraphs.mnuPopGraphDetailsClick...┤ 
                                   TfrmGraphs.timHintPauseTimer┘ 

Calls

Name Declaration Comments
TfrmGraphs.CheckMedNum procedure CheckMedNum(var typenum: string; aSeries: TChartSeries); -
TfrmGraphs.FileNameX function FileNameX(filenum: string): string; -
TfrmGraphs.ItemCheck procedure ItemCheck(aListView: TListView; aItemName: string; var aNum: integer; var aTypeItem: string); -
TfrmGraphs.NonNumText function NonNumText(listnum, seriesnum, valueindex: integer): string; -
TfrmGraphs.OtherInfo procedure OtherInfo(aTypeItem, aResult: string; aDateTime: double; var moreinfo: string); -
TfrmGraphs.ResultValue procedure ResultValue(var resultstring, seriestitle: string; typenum, typeitem: string; Sender: TCustomChart; aSeries: TChartSeries; ValueIndex, SeriesNum: Integer; var OKToUse: boolean); -
TfrmGraphs.ValueDates procedure ValueDates(aSeries: TChartSeries; ValueIndex: Integer; var resultdate, otherdate: string; var startdate: double); -

Called-By

Name Declaration Comments
TfrmGraphs.ItemDateRange procedure ItemDateRange(Sender: TCustomChart); -
TfrmGraphs.LabelClicks procedure LabelClicks(aChart: TChart; aSeries: TChartSeries; lbutton: boolean; tmp: integer); -
TfrmGraphs.mnuPopGraphDetailsClick procedure mnuPopGraphDetailsClick(Sender: TObject); -
TfrmGraphs.SeriesClicks procedure SeriesClicks(aChart: TChart; aSeries: TChartSeries; aIndex: integer; lbutton: boolean); -
TfrmGraphs.timHintPauseTimer procedure timHintPauseTimer(Sender: TObject); -


Source

6786  function TfrmGraphs.ValueText(Sender: TCustomChart; aSeries: TChartSeries; ValueIndex: Integer): string;
6787  var      // type#^typename^formatdate^itemname^result^date
6788    OKToUse: boolean;
6789    chartnum, i, selnum, SeriesNum: integer;
6790    startdate: double;
6791    filetype, moreinfo, otherdate: string;
6792    resultdate, resultstring, seriestitle, typeitem, typename, typenum: string;
6793  begin
6794    Result := '';
6795    SeriesNum := -1;
6796    filetype := '';
6797    for i := 0 to Sender.SeriesCount - 1 do
6798      if Sender.Series[i] = aSeries then
6799      begin
6800        SeriesNum := i;
6801        filetype := Sender.Series[i].Identifier;
6802        break;
6803      end;
6804    if SeriesNum = -1 then
6805    begin
6806      Result := '';
6807      exit;
6808    end;
6809    chartnum := Sender.Tag;
6810    seriestitle := Piece(Sender.Series[SeriesNum].Title, '^', 1);
6811    if seriestitle = '(non-numeric)' then
6812    begin
6813      Result := NonNumText(chartnum, (aSeries as TChartSeries).Tag, ValueIndex);
6814      exit;
6815    end;
6816    ItemCheck(lvwItemsTop, seriestitle, selnum, typeitem);
6817    typeitem := UpperCase(typeitem);
6818    if selnum < 0 then
6819    begin
6820      Result := '^^^' + seriestitle;
6821      exit;
6822    end;
6823    typenum := Piece(typeitem, '^', 1);
6824    if (typenum <> filetype) and (filetype <> '') then
6825    begin
6826      typenum := filetype;
6827      typeitem := typenum + '^' + Piece(typeitem, '^', 2);
6828    end;
6829    CheckMedNum(typenum, aSeries);
6830    typename := FileNameX(typenum);
6831    if ValueIndex < 0 then
6832    begin
6833      Result := typenum + '^' + typename + '^^' + seriestitle;
6834      exit;
6835    end;
6836    ValueDates(aSeries, ValueIndex, resultdate, otherdate, startdate);
6837    ResultValue(resultstring, seriestitle, typenum, typeitem, Sender, aSeries, ValueIndex, SeriesNum, OKToUse);
6838    if not OKToUse then
6839      Result := ''
6840    else
6841    begin
6842      moreinfo := '';
6843      if typenum = '63' then
6844        OtherInfo(typeitem, resultstring, startdate, moreinfo);
6845      Result := typenum + '  ^' + typename + '^' + resultdate + '^' +
6846        seriestitle + '^' + resultstring + '^' + otherdate + '^' + moreinfo;
6847    end;
6848  end;