Procedure

TfrmGraphs.ItemCheck

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure ItemCheck(aListView: TListView; aItemName: string;
  var aNum: integer; var aTypeItem: string);

Called-By Hierarchy


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

Called-By

Name Declaration Comments
TfrmGraphs.mnuPopGraphDetailsClick procedure mnuPopGraphDetailsClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphIsolateClick procedure mnuPopGraphIsolateClick(Sender: TObject); -
TfrmGraphs.mnuPopGraphRemoveClick procedure mnuPopGraphRemoveClick(Sender: TObject); -
TfrmGraphs.ValueText function ValueText(Sender: TCustomChart; aSeries: TChartSeries; ValueIndex: Integer): string; -


Source

4110  procedure TFrmGraphs.ItemCheck(aListView: TListView; aItemName: string;
4111    var aNum: integer; var aTypeItem: string);
4112  var
4113    i: integer;
4114    aGraphItem: TGraphItem;
4115  begin
4116    aNum := -1;
4117    aTypeItem := '';
4118    with aListView do
4119    for i := 0 to Items.Count - 1 do
4120    if Items[i].Caption = aItemName then
4121    begin
4122      aGraphItem := TGraphItem(Items.Item[i].SubItems.Objects[3]);     //get file^ien match
4123      aNum := i;
4124      aTypeItem := Pieces(aGraphItem.Values, '^', 1, 2);
4125      break;
4126    end;
4127    if aNum = -1 then
4128    begin
4129      aItemName := ReverseString(aItemName);
4130      aItemName := Pieces(aItemName, '(', 2, DelimCount(aItemName, '(') + 1);
4131      aItemName := Copy(aItemName, 2, length(aItemName) - 1);
4132      aItemName := ReverseString(aItemName);
4133      with aListView do
4134      for i := 0 to Items.Count - 1 do
4135      if Items[i].Caption = aItemName then            // match without (specimen)
4136      begin
4137        aGraphItem := TGraphItem(Items.Item[i].SubItems.Objects[3]);     //get file^ien match
4138        aNum := i;
4139        aTypeItem := Pieces(aGraphItem.Values, '^', 1, 2);
4140        break;
4141      end;
4142    end;
4143  end;