Procedure

TfrmGraphs.ViewDefinition

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Public

Owner

TfrmGraphs

Declaration

procedure ViewDefinition(profile: string; amemo: TRichEdit);

Called-By Hierarchy


                              TfrmGraphs.ViewDefinition
                               TfrmGraphs.ViewsChange┘ 
                       TfrmGraphs.lstViewsTopChange┤   
                            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.GraphSwitch┤ │   
                           TfrmGraphs.GraphSwap┘ │ │   
              TfrmGraphs.mnuPopGraphSwapClick┘   │ │   
                    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.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.SplitClick┤ │   │ │ │   
       TfrmGraphs.mnuPopGraphSplitClick┘ │ │   │ │ │   
         TfrmGraphs.mnuPopGraphClearClick┤ │   │ │ │   
                    TfrmGraphs.AutoSelect┤ │   │ │ │   
              TfrmGraphs.ViewsChange...┘ │ │   │ │ │   
          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.ViewSelections...┘ │   
                    TfrmGraphs.lstViewsBottomChange┘   
                         TfrmGraphs.Initialize...┤     
                        TfrmGraphs.GraphSwitch...┤     
                 TfrmGraphs.cboDateRangeChange...┤     
                     TfrmGraphs.ViewSelections...┘     

Called-By

Name Declaration Comments
TfrmGraphs.ViewsChange procedure ViewsChange(aListView: TListView; aListBox: TORListBox; aSection: string); -


Source

5424  procedure TfrmGraphs.ViewDefinition(profile: string; amemo: TRichEdit);
5425  var
5426    i, defnum: integer;
5427    vdef, vlist, vname, vnum, vtype: string;
5428  begin
5429    vtype := Piece(profile, '^', 1);
5430    defnum := strtointdef(vtype, BIG_NUMBER);
5431    vname := Piece(profile, '^', 2);
5432    case defnum of
5433      -1:  vdef := 'Personal View';
5434      -2:  vdef := 'Public View';
5435      -3:  vdef := 'Lab Group';
5436      else vdef := 'Temporary View';
5437    end;
5438    amemo.Clear;
5439    amemo.Lines.Add(vname + ' [' + vdef + ']:');
5440    if vdef = 'Temporary View' then
5441    begin
5442      for i := 4 to BIG_NUMBER do
5443      begin
5444        vlist := Piece(profile, '^', i);
5445        if vlist = '' then break;
5446        amemo.Lines.Add('  ' + vlist);
5447      end;
5448    end
5449    else
5450    begin
5451      vnum := '';
5452      for i := 0 to GtslAllViews.Count - 1 do
5453      begin
5454        vlist := GtslAllViews[i];
5455        if Piece(vlist, '^', 4) = vname then
5456          if Piece(vlist, '^', 1) = vtype then
5457            if Piece(vlist, '^', 2) = 'V' then
5458              vnum := Piece(vlist, '^', 3);
5459        if vnum <> '' then
5460          if Piece(vlist, '^', 2) = 'C' then
5461             if Piece(vlist, '^', 3) = vnum then
5462               amemo.Lines.Add('   ' + Piece(vlist, '^', 4));
5463      end;
5464    end;
5465  end;