Function

TChanges.RequireReview

Module

uCore

Last Modified

7/15/2014 3:26:44 PM

Comments

Returns true if documents can be signed or if any orders exist in Changes

Visibility

Public

Owner

TChanges

Declaration

function RequireReview: Boolean;

Calls Hierarchy


TChanges.RequireReview
 └TChanges.AddUnsignedToChanges
   ├LoadUnsignedOrders
   ├TChanges.Add
   │ └TChangeItem.Create
   └TextForOrder

Called-By Hierarchy


                       TChanges.RequireReview
            TfrmFrame.AllowContextChangeAll┤ 
                 TfrmFrame.FormCloseQuery┤ │ 
               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.ctxContextorPending┤ │ 
           TfrmFrame.StartCCOWContextor┘ │ │ 
                 TfrmFrame.FormCreate┘   │ │ 
          TfrmFrame.ctxContextorCommitted┤ │ 
        TfrmFrame.StartCCOWContextor...┘ │ │ 
   TfrmFrame.mnuFileResumeContextGetClick┤ │ 
   TfrmFrame.mnuFileResumeContextSetClick┘ │ 
                   TfrmFrame.FormCloseQuery┘ 

Calls

Name Declaration Comments
TChanges.AddUnsignedToChanges procedure AddUnsignedToChanges; -

Called-By

Name Declaration Comments
TfrmFrame.AllowContextChangeAll function AllowContextChangeAll(var Reason: string): Boolean; -
TfrmFrame.FormCloseQuery procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean); -


Source

1385  function TChanges.RequireReview: Boolean;
1386  { returns true if documents can be signed or if any orders exist in Changes }
1387  var
1388    i: Integer;
1389  begin
1390    Result := False;
1391    AddUnsignedToChanges;
1392    if fOrders.Count > 0 then Result := True;
1393    if Result = False then with FDocuments do for i := 0 to Count - 1 do
1394      with TChangeItem(Items[i]) do if FSignState <> CH_SIGN_NA then
1395      begin
1396        Result := True;
1397        Break;
1398      end;
1399  end;