Function

GetGraphProfiles

Module

fGraphData

Last Modified

7/15/2014 3:26:36 PM

Comments

Auser: string;

Scope

Interfaced

Declaration

function GetGraphProfiles(profiles, permission: string; ext: integer; userx: int64): TStrings;

Calls Hierarchy


GetGraphProfiles
 └rpcGetGraphProfiles
   └onoff

Called-By Hierarchy


                                         GetGraphProfiles
                        TfrmGraphProfiles.AssignProfile┤ 
                   TfrmGraphProfiles.lstSourcesChange┤ │ 
                TfrmGraphProfiles.radSourceAllClick┤ │ │ 
                        TfrmGraphProfiles.IDProfile┘ │ │ 
                 TfrmGraphProfiles.btnRenameClick┤   │ │ 
                   TfrmGraphProfiles.btnSaveClick┘   │ │ 
              TfrmGraphProfiles.lstOtherSourcesChange┤ │ 
                TfrmGraphProfiles.radSourceAllClick┘ │ │ 
                TfrmGraphProfiles.btnDefinitionsClick┘ │ 
                     TfrmGraphProfiles.AssignProfilePre┤ 
                   TfrmGraphProfiles.AssignProfile...┘ │ 
                           TfrmGraphProfiles.FillSource┤ 
                           TfrmGraphProfiles.FormShow┤ │ 
                   TfrmGraphProfiles.btnDeleteClick┤ │ │ 
                     TfrmGraphProfiles.IDProfile...┘ │ │ 
                       TfrmGraphProfiles.cboUserClick┘ │ 
                                   TfrmGraphs.FillViews┤ 
                                TfrmGraphs.FormCreate┤ │ 
                   TfrmGraphs.btnGraphSelectionsClick┘ │ 
                TfrmReports.btnGraphSelectionsClick┘   │ 
                                TfrmGraphs.CheckProfile┘ 
                               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...┘   │ │   │ │ │     
                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...┘       

Calls

Name Declaration Comments
rpcGetGraphProfiles function rpcGetGraphProfiles(profiles, permission: string; ext: integer; userx: int64): TStrings; -

Called-By

Name Declaration Comments
TfrmGraphProfiles.AssignProfile procedure AssignProfile(aList: TStrings; aProfile: string; UserNum: int64; allitems: boolean); -
TfrmGraphProfiles.AssignProfilePre procedure AssignProfilePre(aList: TStrings; var aProfile: string; UserNum: int64); -
TfrmGraphs.CheckProfile procedure CheckProfile(var aProfile: string; var Updated: boolean); -
TfrmGraphProfiles.FillSource procedure FillSource(aList: TORListBox); -
TfrmGraphs.FillViews procedure FillViews; -


Source

533   function GetGraphProfiles(profiles, permission: string; ext: integer; userx: int64): TStrings;
534   var      // temporary fix - converting definitions in GtslAllViews to rpc format
535     allviews, fulltext: boolean;
536     i: integer;
537     aitem, aline, aname, atype, avc, avnum, avtype, bigline, partsnum, vtype: string;
538     //auser: string;
539   begin
540     if (userx > 0) and (userx <> User.DUZ) then
541       Result := rpcGetGraphProfiles(profiles, permission, ext, userx)
542     else
543     begin
544       profiles := UpperCase(profiles);
545       if permission = '1' then vtype := '-2'
546       else vtype := '-1';
547       allviews := (profiles = '1');
548       fulltext := (ext = 1);
549       partsnum := '0';
550       bigline := '';
551       GtslScratchTemp.Clear;
552       for i := 0 to GtslAllViews.Count - 1 do
553       begin
554         aline  := GtslAllViews[i];
555         avtype := Piece(aline, '^', 1);
556         avc    := Piece(aline, '^', 2);
557         avnum  := Piece(aline, '^', 3);
558         aname  := UpperCase(Piece(aline, '^', 4));
559         atype  := UpperCase(Piece(aline, '^', 5));
560         aitem  := Piece(aline, '^', 6);
561         //auser  := Piece(aline, '^', 7);
562         if partsnum <> '0' then
563         begin                                                 //AddLine(ext, aname, atype, aitem);
564           if (avc = 'C') and (partsnum = avnum) then
565           begin
566             if ext <> 1 then
567             begin
568                if aitem = '0' then bigline := bigline + '0~' + atype + '~|'
569                else bigline := bigline + atype + '~' + aitem  + '~|'
570             end
571             else
572             begin
573                if aitem = '0' then
574                  GtslScratchTemp.Add('0^' + atype + '^' + aname)
575                else
576                  GtslScratchTemp.Add(atype + '^' + aitem  + '^' + aname)
577             end;
578           end
579           else
580           begin
581             if length(bigline) > 0 then
582               GtslScratchTemp.Add(bigline);
583             break;
584           end;
585         end
586         else
587         if avtype = vtype then
588         begin
589           if allviews and (avc = 'V') then
590           begin
591             GtslScratchTemp.Add(aname);
592           end
593           else if (avc = 'V') and (aname = profiles) then
594             partsnum := avnum;
595         end;
596       end;
597       if allviews or fulltext then
598         MixedCaseList(GtslScratchTemp);
599       Result := GtslScratchTemp;
600     end;
601   end;