Procedure

ProcessPatientChangeEventHook

Module

uEventHooks

Last Modified

7/15/2014 3:26:44 PM

Scope

Interfaced

Declaration

procedure ProcessPatientChangeEventHook;

Calls Hierarchy


ProcessPatientChangeEventHook
 ├GetPatientChangeGUIDs
 ├EnsureEventHookObjects
 │ └TCPRSEventHookManager.Create
 │   ├TCPRSBroker.Create
 │   └TCPRSState.Create
 └TCPRSEventHookManager.ProcessComObject
   └TCPRSBroker.Initialize

Called-By Hierarchy


                  ProcessPatientChangeEventHook
                       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┘   

Calls

Name Declaration Comments
EnsureEventHookObjects procedure EnsureEventHookObjects; -
GetPatientChangeGUIDs function GetPatientChangeGUIDs: string; -
TCPRSEventHookManager.ProcessComObject function ProcessComObject(const GUIDString: string; const AParam2, AParam3: string; var Data1, Data2: WideString): boolean; -

Called-By

Name Declaration Comments
TfrmFrame.SetupPatient procedure SetupPatient(AFlaggedList : TStringList = nil); -


Source

540   procedure ProcessPatientChangeEventHook;
541   var
542     d1, d2: WideString;
543     COMObj: string;
544   
545   begin
546     COMObj := GetPatientChangeGUIDs;
547     if(COMObj <> '') and (COMObj <> '0') then
548     begin
549       EnsureEventHookObjects;
550       d1 := '';
551       d2 := '';
552       uCPRSEventHookManager.ProcessComObject(COMObj, 'P=' + Patient.DFN, '', d1, d2);
553     end;
554   end;