Function

TfrmGraphs.NonNumText

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

function NonNumText(listnum, seriesnum, valueindex: integer): string;

Calls Hierarchy


TfrmGraphs.NonNumText
 ├TfrmGraphs.FileNameX
 ├TfrmGraphs.ItemName
 └TfrmGraphs.SetRefNonNum
   └TfrmGraphs.RefUnits
     └TfrmGraphs.SelectRef
       └CheckRef

Called-By Hierarchy


                                              TfrmGraphs.NonNumText
                                             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.FileNameX function FileNameX(filenum: string): string; -
TfrmGraphs.ItemName function ItemName(filenum, itemnum: string): string; -
TfrmGraphs.SetRefNonNum procedure SetRefNonNum(var datax: string); -

Called-By

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


Source

6735  function TfrmGraphs.NonNumText(listnum , seriesnum, valueindex: integer): string;
6736  var
6737    ok: boolean;
6738    i: integer;
6739    date1, moreinfo, nonvalue, otherdate, resultdate: string;
6740    datestart: double;
6741    charttag, filename, filenum, itemnum, seriescheck, specimen, typeitemname, value: string;
6742  begin
6743    ok := false;
6744    seriescheck := inttostr(seriesnum - BIG_NUMBER);
6745    charttag := inttostr(listnum);
6746    for i := 0 to GtslNonNum.Count - 1 do
6747    begin
6748      nonvalue := GtslNonNum[i];
6749      if Piece(nonvalue, '^', 2) = charttag then
6750        if Piece(nonvalue, '^', 3) = seriescheck then
6751          if Piece(nonvalue, '^', 4) = inttostr(valueindex + 1) then
6752          begin
6753            ok := true;
6754            break;
6755          end;
6756    end;
6757    if not ok then
6758    begin
6759      Result := '';
6760      exit;
6761    end;
6762    date1    := Piece(nonvalue, '^', 1);
6763    filenum  := Piece(nonvalue, '^', 9);
6764    itemnum  := Piece(nonvalue, '^', 10);
6765    value    := Piece(nonvalue, '^', 13);
6766    specimen := Piece(nonvalue, '^', 16);
6767    filename := FileNameX(filenum);
6768    typeitemname := MixedCase(ItemName(filenum, itemnum));
6769    SetRefNonNum(nonvalue);
6770    if length(specimen) > 0 then
6771      typeitemname := typeitemname + ' (' + LowerCase(specimen) + ')';
6772    datestart := strtofloat(date1);
6773    resultdate := FormatDateTime('mmm d, yyyy  h:nn am/pm', datestart);
6774    otherdate := FormatDateTime('mm/dd/yy hh:nn', datestart);
6775    moreinfo := itemnum + '^' +
6776                Piece(nonvalue, '^', 11) + '^' +  //date
6777                value + '^' +
6778                Piece(nonvalue, '^', 14) + '^' +  //flag
6779                specimen + '^' +
6780                Piece(nonvalue, '^', 18) + '^' +  //refrange
6781                Piece(nonvalue, '^', 19);  //units
6782    Result := filenum + '^' +filename + '^' + resultdate + '^'
6783            + typeitemname + '^' + value + '^' + otherdate + '^' + moreinfo;
6784  end;