Procedure

TfrmFlags.PutFlagsOnLists

Module

fPatientFlagMulti

Last Modified

7/15/2014 3:26:38 PM

Visibility

Private

Owner

TfrmFlags

Declaration

procedure PutFlagsOnLists(flags, Cat1List,  Cat2List: TStrings);

Called-By Hierarchy


                        TfrmFlags.PutFlagsOnLists
                                      ShowFlags┘ 
                       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.ViewInfo...┤   
                       TfrmCover.lstFlagClick┘   
                   TfrmCover.lstFlagKeyDown┘     

Called-By

Name Declaration Comments
ShowFlags procedure ShowFlags(FlagId: integer = 0); -


Source

309   procedure TfrmFlags.PutFlagsOnLists(flags, Cat1List, Cat2List: TStrings);
310   Const
311     FLAG_TYPE_POS = 3;
312     TRUE_STRING = '1';
313   var
314     i, TypeOneCount, TypeTwoCount : integer;
315   begin
316     TypeOneCount := 0;
317     TypeTwoCount := 0;
318     for i := 0 to flags.Count-1 do begin
319       if Piece(flags[i],U,FLAG_TYPE_POS) = TRUE_STRING then begin
320         Cat1List.Add(flags[i]);
321         Inc(TypeOneCount);
322       end else begin
323         Cat2List.Add(flags[i]);
324         Inc(TypeTwoCount);
325       end;
326     end;
327     If TypeOneCount > 0 then
328      lblCat1.Caption := 'Category I Flags: ' + IntToStr(TypeOneCount) + ' Item(s)'
329     else
330      lblCat1.Caption := 'Category I Flags';
331   
332     If TypeTwoCount > 0 then
333      lblFlags.Caption := 'Category II Flags: ' + IntToStr(TypeTwoCount) + ' Item(s)'
334     else
335      lblFlags.Caption := 'Category II Flags';
336   end;