Procedure

TfrmGraphs.ResultValue

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure ResultValue(var resultstring, seriestitle: string; typenum, typeitem: string;
  Sender: TCustomChart; aSeries: TChartSeries; ValueIndex, SeriesNum: Integer; var OKToUse: boolean);

Calls Hierarchy


TfrmGraphs.ResultValue
 ├TfrmGraphs.serDatelineTopGetMarkText
 └TfrmGraphs.BPValue

Called-By Hierarchy


                                             TfrmGraphs.ResultValue
                                             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.BPValue function BPValue(aDateTime: TDateTime): string; -
TfrmGraphs.serDatelineTopGetMarkText procedure serDatelineTopGetMarkText(Sender: TChartSeries; ValueIndex: Integer; var MarkText: String); -

Called-By

Name Declaration Comments
TfrmGraphs.ValueText function ValueText(Sender: TCustomChart; aSeries: TChartSeries; ValueIndex: Integer): string; -


Source

6952  procedure TfrmGraphs.ResultValue(var resultstring, seriestitle: string; typenum, typeitem: string;
6953    Sender: TCustomChart; aSeries: TChartSeries; ValueIndex, SeriesNum: Integer; var OKToUse: boolean);
6954  var
6955    i: integer;
6956    astring, datecheck, fmdatecheck, item, partitem: string;
6957  begin
6958    resultstring := '';
6959    OKToUse := true;
6960    if typenum = '63' then
6961    begin
6962      if aSeries is TLineSeries then
6963        if (aSeries as TLineSeries).LinePen.Style = psDash then
6964        begin
6965          OKToUse := false;
6966          exit;    // serHigh or serLow
6967        end;
6968      if aSeries is TPointSeries then
6969        if (aSeries as TPointSeries).Pointer.Style = psSmallDot then
6970        begin
6971          OKToUse := false;
6972          exit;    // serBlank
6973        end;
6974      if copy(seriestitle, length(seriestitle) - 12, length(seriestitle)) = '(non-numeric)' then
6975      begin
6976        seriestitle := copy(seriestitle, 1, length(seriestitle) - 13);
6977        serDatelineTopGetMarkText(Sender.Series[SeriesNum], ValueIndex, resultstring);
6978      end
6979      else
6980        resultstring := floattostr(aSeries.YValue[ValueIndex]);
6981    end
6982    else if typenum <> '120.5' then
6983    begin
6984      item := Piece(typeitem, '^', 2);
6985      partitem := copy(item, 1, 4);
6986      //if (partitem = 'M;A;') then     //or (partitem = 'M;T;') then   tb antibiotic on 1st piece
6987      begin
6988        fmdatecheck := floattostr(DateTimeToFMDateTime(aSeries.XValue[ValueIndex]));
6989        for i := 0 to GtslData.Count - 1 do
6990        begin
6991          astring := GtslData[i];
6992          if typenum = Piece(astring, '^', 1) then
6993            if item = Piece(astring, '^', 2) then
6994            begin
6995              datecheck := Piece(astring, '^', 3);
6996              if length(Piece(datecheck, '.', 2)) > 0 then
6997                datecheck := Piece(datecheck, '.', 1) + '.' + copy(Piece(datecheck, '.', 2), 1, 4);
6998              if datecheck = fmdatecheck then
6999              begin
7000                resultstring := MixedCase(Pieces(astring, '^', 5, 6)) + '^' + Piece(astring, '^', 7);
7001                break;
7002              end;
7003            end;
7004        end;
7005      end;
7006    end
7007    else if typenum = '120.5' then
7008    begin
7009      if seriestitle = 'Blood Pressure' then
7010        resultstring := BPValue(aSeries.XValue[ValueIndex])
7011      else
7012        resultstring := floattostr(aSeries.YValue[ValueIndex]);
7013    end;
7014  end;