Procedure

TfrmGraphs.FastLab

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure FastLab(aList: TStringList);

Calls Hierarchy


TfrmGraphs.FastLab
 └TfrmGraphs.SaveTestData
   ├TfrmGraphs.ItemName
   └TfrmGraphs.LabData
     ├rpcGetItemData
     │ └onoff
     ├TfrmGraphs.SpecRefCheck
     │ └TfrmGraphs.RefUnits
     │   └TfrmGraphs.SelectRef
     │     └CheckRef
     ├TfrmGraphs.SpecRefSet
     │ └MultiRef
     ├TfrmGraphs.FileNameX
     ├TfrmGraphs.LabCheck
     ├TfrmGraphs.DateRangeMultiItems
     └TfrmGraphs.LabAdd

Called-By Hierarchy


                                         TfrmGraphs.FastLab
                                        TfrmGraphs.Switch┘ 
                                 TfrmGraphs.InitialData┤   
                                TfrmGraphs.Initialize┘ │   
                             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┘   │   │   
                    TfrmFrame.mnuToolsGraphingClick┤   │   
                             TfrmLabs.grdLabClick┤ │   │   
                          TfrmLabs.tvReportsClick┤ │   │   
                           TfrmLabs.DisplayPage┤ │ │   │   
                          TfrmLabs.LoadTreeView┤ │ │   │   
                         TfrmLabs.DisplayPage┤ │ │ │   │   
       TfrmOptionsReportsCustom.btnApplyClick┘ │ │ │   │   
        TfrmOptionsReportsCustom.btnOKClick┘   │ │ │   │   
                    TfrmLabs.cmdOtherTestsClick┤ │ │   │   
                       TfrmLabs.chkMaxFreqClick┤ │ │   │   
                  TfrmLabs.ProcessNotifications┤ │ │   │   
                         TfrmLabs.DisplayPage┘ │ │ │   │   
                                      ..(rec)..┤ │ │   │   
                      TfrmLabs.tvReportsKeyDown┤ │ │   │   
                TfrmFrame.lstCIRNLocationsClick┘ │ │   │   
                          TfrmFrame.SetUpCIRN┘   │ │   │   
                  TfrmFrame.SetupPatient...┘     │ │   │   
                                        ..(rec)..┘ │   │   
                            TfrmReports.ClearPtData┤   │   
                        TfrmFrame.ClearPatient...┘ │   │   
                                  TfrmReports.Graph┘   │   
                       TfrmReports.tvReportsClick┘     │   
             TfrmFrame.lstCIRNLocationsClick...┤       │   
                        TfrmReports.DisplayPage┤       │   
                       TfrmReports.LoadTreeView┤       │   
                      TfrmReports.DisplayPage┤ │       │   
         TfrmOptionsReportsDefault.btnOKClick┤ │       │   
      TfrmOptionsReportsDefault.btnResetClick┤ │       │   
    TfrmOptionsReportsCustom.btnApplyClick...┘ │       │   
               TfrmReports.ProcessNotifications┤       │   
                      TfrmReports.DisplayPage┘ │       │   
                   TfrmReports.tvReportsKeyDown┤       │   
                TfrmReports.tvProceduresKeyDown┤       │   
                    TfrmReports.chkMaxFreqClick┤       │   
           TfrmOptionsReportsDefault.btnOKClick┤       │   
        TfrmOptionsReportsDefault.btnResetClick┤       │   
      TfrmOptionsReportsCustom.btnApplyClick...┘       │   
                         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┤ │   │ │   
                TfrmReports.lstDateRangeClick┤ │ │   │ │   
                     TfrmReports.GraphPanel┘ │ │ │   │ │   
                     TfrmReports.Graph...┤   │ │ │   │ │   
            TfrmReports.tvReportsClick...┘   │ │ │   │ │   
                     TfrmGraphs.Initialize...┤ │ │   │ │   
                          TfrmGraphs.FormShow┤ │ │   │ │   
            TfrmGraphs.btnChangeSettingsClick┤ │ │   │ │   
             TfrmReports.btnChangeViewClick┘ │ │ │   │ │   
                 TfrmGraphs.CheckExpandedLabs┤ │ │   │ │   
                      TfrmGraphs.ItemsClick┘ │ │ │   │ │   
                   TfrmGraphs.DisplayData┤   │ │ │   │ │   
              TfrmFrame.ClearPatient...┤ │   │ │ │   │ │   
             TfrmReports.ClearPtData...┤ │   │ │ │   │ │   
                   TfrmReports.Graph...┤ │   │ │ │   │ │   
            TfrmGraphs.chkItemsTopClick┤ │   │ │ │   │ │   
         TfrmGraphs.chkItemsBottomClick┤ │   │ │ │   │ │   
     TfrmGraphs.mnuPopGraphIsolateClick┤ │   │ │ │   │ │   
       TfrmGraphs.cboDateRangeChange...┤ │   │ │ │   │ │   
               TfrmGraphs.ItemsClick...┤ │   │ │ │   │ │   
              TfrmGraphs.ViewsChange...┤ │   │ │ │   │ │   
      TfrmGraphs.mnuPopGraphRemoveClick┘ │   │ │ │   │ │   
        TfrmGraphs.lvwItemsBottomClick...┤   │ │ │   │ │   
              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.ViewSelections...┘ │   │ │   
                  TfrmGraphs.lstViewsBottomChange┘   │ │   
                       TfrmGraphs.Initialize...┤     │ │   
                      TfrmGraphs.GraphSwitch...┤     │ │   
               TfrmGraphs.cboDateRangeChange...┤     │ │   
                   TfrmGraphs.ViewSelections...┘     │ │   
                      TfrmGraphs.lvwItemsBottomChange┘ │   
                         TfrmGraphs.lvwItemsTopClick...┘   

Calls

Name Declaration Comments
TfrmGraphs.SaveTestData procedure SaveTestData(typeitem: string); -

Called-By

Name Declaration Comments
TfrmGraphs.Switch procedure Switch; -


Source

1516  procedure TfrmGraphs.FastLab(aList: TStringList);
1517  var
1518    i, lastnum: integer;
1519    newtypeitem, oldtypeitem, listline: string;
1520  begin
1521    lastnum := aList.Count - 1;
1522    if lastnum < 0 then
1523      exit;
1524    GtslScratchLab.Clear;
1525    aList.Sort;
1526    oldtypeitem := Pieces(aList[0], '^', 1, 2);
1527    for i := 0 to lastnum do
1528    begin
1529      listline := aList[i];
1530      newtypeitem := Pieces(listline, '^', 1 , 2);
1531      if lastnum = i then
1532      begin
1533        if newtypeitem <> oldtypeitem then
1534        begin
1535          SaveTestData(oldtypeitem);
1536          oldtypeitem := newtypeitem;
1537        end;
1538        GtslScratchLab.Add(listline);
1539        SaveTestData(oldtypeitem);
1540      end
1541      else if newtypeitem <> oldtypeitem then
1542      begin
1543        SaveTestData(oldtypeitem);
1544        GtslScratchLab.Add(listline);
1545        oldtypeitem := newtypeitem;
1546      end
1547      else
1548        GtslScratchLab.Add(listline);
1549    end;
1550  end;