Procedure

TfrmGraphs.mnuPopGraphDetailsClick

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Public/Published

Owner

TfrmGraphs

Declaration

procedure mnuPopGraphDetailsClick(Sender: TObject);

Calls Hierarchy


TfrmGraphs.mnuPopGraphDetailsClick
 ├TfrmGraphs.ItemCheck
 ├TfrmGraphs.HSAbbrev
 ├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...
 ├TfrmGraphs.LabNameResults
 ├TfrmGraphs.AllTypeDate
 │ ├TfrmGraphs.CheckToAddData
 │ │ ├TfrmGraphs.LabData
 │ │ │ ├rpcGetItemData
 │ │ │ │ └onoff
 │ │ │ ├TfrmGraphs.SpecRefCheck
 │ │ │ │ └TfrmGraphs.RefUnits...
 │ │ │ ├TfrmGraphs.SpecRefSet
 │ │ │ │ └MultiRef
 │ │ │ ├TfrmGraphs.FileNameX
 │ │ │ ├TfrmGraphs.LabCheck
 │ │ │ ├TfrmGraphs.DateRangeMultiItems
 │ │ │ └TfrmGraphs.LabAdd
 │ │ └rpcGetItemData...
 │ ├TfrmGraphs.TempData
 │ │ ├TfrmGraphs.ItemName
 │ │ └TfrmGraphs.SetRef...
 │ └ReportBox
 │   └CreateReportBox
 │     └TfrmBase508Form.Create
 │       ├TfrmBase508Form.UpdateAccessibilityActions
 │       ├UnfocusableControlEnter
 │       └AdjustControls
 │         ├TfrmBase508Form.ModifyUnfocusableControl
 │         └..(rec)..
 ├TfrmGraphs.OneDayTypeDetails
 │ ├TfrmGraphs.FileNameX
 │ ├TfrmGraphs.ItemName
 │ ├rpcDetailDay
 │ │ └onoff
 │ ├TfrmGraphs.NotifyApps
 │ └ReportBox...
 └TfrmGraphs.AllDetails
   ├TfrmGraphs.HSAbbrev
   ├rpcDetailSelected
   │ └onoff
   ├TfrmGraphs.NotifyApps
   ├ReportBox...
   └TfrmGraphs.ItemDateRange
     ├TfrmGraphs.ValueText...
     └ReportBox...

Called-By Hierarchy


                           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...┘       

Calls

Name Declaration Comments
TfrmGraphs.AllDetails procedure AllDetails(aDate1, aDate2: TFMDateTime; aTempList: TStrings); -
TfrmGraphs.AllTypeDate procedure AllTypeDate(aType, aTypeName, firstline, secondline: string; aDate, aDate2: double); -
TfrmGraphs.HSAbbrev function HSAbbrev(aType: string): boolean; -
TfrmGraphs.ItemCheck procedure ItemCheck(aListView: TListView; aItemName: string; var aNum: integer; var aTypeItem: string); -
TfrmGraphs.LabNameResults procedure LabNameResults(astring: string; var labname, labresult: string); -
TfrmGraphs.OneDayTypeDetails procedure OneDayTypeDetails(aTypeItem: string); -
TfrmGraphs.ValueText function ValueText(Sender: TCustomChart; aSeries: TChartSeries; ValueIndex: Integer): string; -

Called-By

Name Declaration Comments
TfrmGraphs.LabelClicks procedure LabelClicks(aChart: TChart; aSeries: TChartSeries; lbutton: boolean; tmp: integer); -
TfrmGraphs.MakeChart procedure MakeChart(aChart: TChart; aScrollBox: TScrollBox); -


Source

4338  procedure TfrmGraphs.mnuPopGraphDetailsClick(Sender: TObject);
4339  var
4340    tmpList: TStringList;
4341    date1, date2: TFMDateTime;
4342    labresult, testname, teststring, textvalue, textvalue1, textvalue2, typeitem, typename, typenum: string;
4343    selnum: integer;
4344    aGraphItem: TGraphItem;
4345    aListView: TListView;
4346    aListItem: TListItem;
4347  begin
4348    if chartDatelineTop.Tag = 1 then               // series
4349    begin
4350      ItemCheck(lvwItemsTop, mnuPopGraphIsolate.Hint, selnum, typeitem);
4351      if selnum < 0 then exit;
4352      if not HSAbbrev(Piece(typeitem, '^', 1)) then
4353      begin
4354        if (FGraphSeries is TGanttSeries) then
4355        begin
4356          FDate1 := (FGraphSeries as TGanttSeries).StartValues[FGraphValueIndex];
4357          FDate2 := (FGraphSeries as TGanttSeries).EndValues[FGraphValueIndex];
4358        end
4359        else
4360        begin
4361          FDate1 := FGraphSeries.XValue[FGraphValueIndex];
4362          FDate2 := FDate1;
4363        end;
4364        textvalue := ValueText(FGraphClick, FGraphSeries, FGraphValueIndex);
4365        typename := Piece(textvalue, '^', 2);
4366        typenum := trim(Piece(textvalue, '^', 1));
4367        textvalue1 := Piece(textvalue, '^', 2) + '  ' + Piece(textvalue, '^', 3);
4368        if typenum = '63' then
4369        begin
4370          LabNameResults(textvalue, testname, labresult);
4371          textvalue2 := testname + '  ' + labresult;
4372        end
4373        else
4374          textvalue2 := Piece(textvalue, '^', 4) + '  ' + Piece(textvalue, '^', 5);
4375        AllTypeDate(typenum, typename, textvalue1, textvalue2, FDate1, FDate2);
4376        exit;
4377      end
4378      else
4379        OneDayTypeDetails(typeitem);
4380    end
4381    else            // legend
4382    begin
4383      date1 := DateTimeToFMDateTime(FGraphSetting.HighTime);
4384      date2 := DateTimeToFMDateTime(FGraphSetting.LowTime);
4385      tmpList := TStringList.Create;
4386      if pnlTop.Tag = 1 then
4387        aListView := lvwItemsTop
4388      else
4389        aListView := lvwItemsBottom;
4390      aListItem := aListView.Selected;
4391      while aListItem <> nil do
4392      begin
4393        aGraphItem := TGraphItem(aListItem.SubItems.Objects[3]);      //get file^ien match
4394        teststring := aGraphItem.Values;
4395        tmpList.Add(teststring);
4396        aListItem := aListView.GetNextItem(aListItem, sdAll, [isSelected]);
4397      end;
4398      if tmpList.Count > 0 then
4399        AllDetails(date1, date2, tmplist);
4400      tmpList.Free;
4401    end;
4402    FMouseDown := false;
4403    if (Sender is TChart) then
4404      (Sender as TChart).AllowZoom := false;
4405  end;