Procedure

TChanges.Remove

Module

uCore

Last Modified

7/15/2014 3:26:44 PM

Comments

Remove a change item from the appropriate list of changes (depending on type)
  this doesn't check groupnames, may leave a groupname without any associated items

Visibility

Public

Owner

TChanges

Declaration

procedure Remove(ItemType: Integer; const AnID: string);

Calls Hierarchy


TChanges.Remove
 ├UnlockOrder
 └UnlockDocument

Called-By Hierarchy


                                                       TChanges.Remove
                                           TfrmDCSumm.SaveEditedSumm┤ 
                                        TfrmDCSumm.SaveCurrentSumm┘ │ 
                                   TfrmDCSumm.AllowContextChange┤   │ 
                               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┘   │   │ 
                                      TfrmDCSumm.LstSummsToPrint┤   │ 
                      TfrmFrame.mnuFilePrintSelectedItemsClick┘ │   │ 
                                         TfrmDCSumm.RequestPrint┤   │ 
                                   TfrmFrame.mnuFilePrintClick┘ │   │ 
                                        TfrmDCSumm.InsertNewSumm┤   │ 
                                     TfrmDCSumm.mnuActNewClick┤ │   │ 
                                  TfrmDCSumm.cmdNewSummClick┘ │ │   │ 
                              TfrmDCSumm.mnuActAddIDEntryClick┘ │   │ 
                                         TfrmDCSumm.mnuViewClick┤   │ 
                                     TfrmDCSumm.SetViewContext┤ │   │ 
                                      TfrmDCSumm.DisplayPage┤ │ │   │ 
                      TfrmDCSumm.mnuViewReturntoDefaultClick┘ │ │   │ 
                          TfrmDCSumm.mnuViewSaveAsDefaultClick┘ │   │ 
                                         TfrmDCSumm.StartNewEdit┤   │ 
                                  TfrmDCSumm.mnuActNewClick...┤ │   │ 
                              TfrmDCSumm.mnuActAddIDEntryClick┤ │   │ 
                                  TfrmDCSumm.mnuActAddendClick┤ │   │ 
                                    TfrmDCSumm.mnuActEditClick┘ │   │ 
                        TfrmDCSumm.mnuActDetachFromIDParentClick┤   │ 
                                    TfrmDCSumm.mnuActDeleteClick┤   │ 
                                  TfrmDCSumm.SaveEditedSumm...┘ │   │ 
                                      TfrmDCSumm.mnuActSaveClick┤   │ 
                                      TfrmDCSumm.mnuActSignClick┤   │ 
                                         TfrmDCSumm.SaveSignItem┤   │ 
                                         TfrmReview.cmdOKClick┘ │   │ 
                                               ReviewChanges┘   │   │ 
                        TfrmFrame.AllowContextChangeAll...┤     │   │ 
                                  TfrmFrame.FormCloseQuery┤     │   │ 
                              TfrmFrame.mnuFileReviewClick┤     │   │ 
                                           UpdateEncounter┘     │   │ 
                         TfrmFrame.mnuFileEncounterClick┤       │   │ 
                                 TfrmFrame.ViewInfo...┤ │       │   │ 
                    TfrmODMedIV.SetValuesFromResponses┤ │       │   │ 
                             TfrmODMedIV.SetupDialog┤ │ │       │   │ 
                   TfrmODMedIV.cboSolutionMouseClick┘ │ │       │   │ 
                       TfrmODMedIV.cboSolutionExit┘   │ │       │   │ 
                  TfrmODMedIV.cboSolutionMouseClick...┤ │       │   │ 
                     TfrmODMedIV.cboAdditiveMouseClick┤ │       │   │ 
                         TfrmODMedIV.cboAdditiveExit┘ │ │       │   │ 
                                TfrmODAuto.SetupDialog┤ │       │   │ 
                                   ActivateOrderDialog┤ │       │   │ 
                           TfrmRemDlg.btnFinishClick┤ │ │       │   │ 
           TfrmConsults.mnuActNewConsultRequestClick┤ │ │       │   │ 
                   TfrmConsults.cmdNewConsultClick┘ │ │ │       │   │ 
                TfrmConsults.mnuActNewProcedureClick┤ │ │       │   │ 
                      TfrmConsults.cmdNewProcClick┘ │ │ │       │   │ 
                                        ChangeOrders┤ │ │       │   │ 
                      TfrmOrders.mnuActChangeClick┤ │ │ │       │   │ 
                        TfrmMeds.mnuActChangeClick┘ │ │ │       │   │ 
                                     ChangeOrdersEvt┤ │ │       │   │ 
                                          CopyOrders┤ │ │       │   │ 
                        TfrmOrders.mnuActCopyClick┤ │ │ │       │   │ 
                          TfrmMeds.mnuActCopyClick┤ │ │ │       │   │ 
                           TfrmODActive.btnOKClick┘ │ │ │       │   │ 
                                      TransferOrders┤ │ │       │   │ 
                        TfrmOrders.mnuActCopyClick┤ │ │ │       │   │ 
                          TfrmMeds.mnuActCopyClick┤ │ │ │       │   │ 
                           TfrmODActive.btnOKClick┘ │ │ │       │   │ 
                            TfrmOrders.lstWriteClick┤ │ │       │   │ 
               TfrmOrders.PlaceOrderForDefaultDialog┤ │ │       │   │ 
                  TfrmOrders.DisplayDefaultDlgList┤ │ │ │       │   │ 
                       TfrmOrders.ResetOrderPage┘ │ │ │ │       │   │ 
               TfrmOrders.btnDelayedOrderClick┘   │ │ │ │       │   │ 
                                 DisplayEvntDialog┤ │ │ │       │   │ 
                             SetDelayEventForMed┘ │ │ │ │       │   │ 
                      TfrmMeds.mnuActCopyClick┘   │ │ │ │       │   │ 
                                 DisplayEvntDialog┤ │ │ │       │   │ 
                                  SetViewForCopy┘ │ │ │ │       │   │ 
                    TfrmOrders.mnuActCopyClick┘   │ │ │ │       │   │ 
                                 DisplayEvntDialog┘ │ │ │       │   │ 
                                ExecuteChangeEvt┘   │ │ │       │   │ 
                 TfrmOrders.mnuActChgEvntClick┘     │ │ │       │   │ 
                             TfrmMeds.mnuActNewClick┤ │ │       │   │ 
                           TfrmOMNavA.ActivateDialog┤ │ │       │   │ 
                         TfrmOMNavA.grdMenuKeyDown┤ │ │ │       │   │ 
                         TfrmOMNavA.grdMenuMouseUp┘ │ │ │       │   │ 
                                TfrmOMSet.DoNextItem┘ │ │       │   │ 
                              TfrmOMSet.InsertList┤   │ │       │   │ 
                               ActivateOrderList┘ │   │ │       │   │ 
                     TfrmRemDlg.btnFinishClick┤   │   │ │       │   │ 
                             ActivateOrderHTML┤   │   │ │       │   │ 
                    TfrmOrders.lstWriteClick┤ │   │   │ │       │   │ 
    TfrmOrders.PlaceOrderForDefaultDialog...┘ │   │   │ │       │   │ 
                              ActivateOrderSet┤   │   │ │       │   │ 
                   TfrmRemDlg.btnFinishClick┤ │   │   │ │       │   │ 
TfrmConsults.mnuActNewConsultRequestClick...┤ │   │   │ │       │   │ 
     TfrmConsults.mnuActNewProcedureClick...┤ │   │   │ │       │   │ 
                    TfrmOrders.lstWriteClick┤ │   │   │ │       │   │ 
    TfrmOrders.PlaceOrderForDefaultDialog...┤ │   │   │ │       │   │ 
                     TfrmMeds.mnuActNewClick┤ │   │   │ │       │   │ 
                TfrmOMNavA.ActivateDialog...┤ │   │   │ │       │   │ 
                     TfrmOMSet.DoNextItem...┘ │   │   │ │       │   │ 
                       TfrmOMNavA.DoSelectList┘   │   │ │       │   │ 
                     TfrmOMNavA.grdMenuKeyUp┤     │   │ │       │   │ 
                   TfrmOMNavA.grdMenuMouseUp┘     │   │ │       │   │ 
                                        SkipToNext┤   │ │       │   │ 
                         TfrmOMSet.DoNextItem...┘ │   │ │       │   │ 
                            TfrmOMSet.UMDelayEvent┘   │ │       │   │ 
                               TfrmOMSet.InsertList...┤ │       │   │ 
                                TfrmODMeds.SetupDialog┤ │       │   │ 
                             TfrmODMeds.btnSelectClick┤ │       │   │ 
                             TfrmODMeds.UMDelayClick┘ │ │       │   │ 
                                    ExecuteRenewOrders┘ │       │   │ 
                         TfrmOrders.mnuActRenewClick┤   │       │   │ 
                           TfrmMeds.mnuActRenewClick┘   │       │   │ 
                                        EncounterPresent┤       │   │ 
                                      ReadyForNewOrder┤ │       │   │ 
                           TfrmRemDlg.btnFinishClick┤ │ │       │   │ 
        TfrmConsults.mnuActNewConsultRequestClick...┤ │ │       │   │ 
             TfrmConsults.mnuActNewProcedureClick...┤ │ │       │   │ 
                                     ChangeOrders...┤ │ │       │   │ 
                                     ChangeOrdersEvt┤ │ │       │   │ 
                                       CopyOrders...┤ │ │       │   │ 
                                   TransferOrders...┤ │ │       │   │ 
                            TfrmOrders.lstWriteClick┤ │ │       │   │ 
                             TfrmMeds.mnuActNewClick┘ │ │       │   │ 
                                     ReadyForNewOrder1┤ │       │   │ 
            TfrmOrders.PlaceOrderForDefaultDialog...┘ │ │       │   │ 
                              TfrmOrders.mnuActDCClick┤ │       │   │ 
                             TfrmOrders.mnuActRelClick┤ │       │   │ 
                            TfrmOrders.mnuActHoldClick┤ │       │   │ 
                          TfrmOrders.mnuActUnholdClick┤ │       │   │ 
                           TfrmOrders.mnuActRenewClick┤ │       │   │ 
                         TfrmOrders.mnuActReleaseClick┤ │       │   │ 
                         TfrmOrders.mnuActOnChartClick┤ │       │   │ 
                            TfrmOrders.mnuActSignClick┤ │       │   │ 
                                TfrmMeds.mnuActDCClick┤ │       │   │ 
                              TfrmMeds.mnuActHoldClick┤ │       │   │ 
                             TfrmMeds.mnuActRenewClick┤ │       │   │ 
                            TfrmMeds.mnuActUnholdClick┤ │       │   │ 
                              TfrmMeds.mnuActCopyClick┤ │       │   │ 
                            TfrmMeds.mnuActRefillClick┘ │       │   │ 
                                     EncounterPresentEDO┤       │   │ 
                                   ReadyForNewOrder...┤ │       │   │ 
                         TfrmOrders.mnuActChgEvntClick┤ │       │   │ 
                          TfrmOrders.mnuActChangeClick┤ │       │   │ 
                            TfrmOrders.mnuActCopyClick┤ │       │   │ 
                       TfrmOrders.btnDelayedOrderClick┤ │       │   │ 
                            TfrmMeds.mnuActChangeClick┤ │       │   │ 
                              TfrmMeds.mnuActCopyClick┘ │       │   │ 
                                             UpdateVisit┤       │   │ 
                                           EditPCEData┤ │       │   │ 
                             TfrmSurgery.cmdPCEClick┤ │ │       │   │ 
                                 UpdateEncounterInfo┘ │ │       │   │ 
                             TfrmNotes.cmdPCEClick┘   │ │       │   │ 
                        TfrmVitals.btnEnterVitalsClick┘ │       │   │ 
                                             UpdateVisit┤       │   │ 
                                        EncounterPresent┘       │   │ 
                         TfrmProblems.lstProbActsClick┘         │   │ 
                     TfrmProblems.wgProbDataDblClick┤           │   │ 
                           TfrmProblems.lstViewClick┘           │   │ 
                   TfrmProblems.HighlightDuplicate┘             │   │ 
                         TfrmProblems.AddProblem┤               │   │ 
              TfrmProblems.lstProbActsClick...┤ │               │   │ 
                 TfrmProblems.lstProbPickClick┤ │               │   │ 
              TfrmProblems.lstProbPickDblClick┤ │               │   │ 
              TfrmProblems.edProbEntKeyPress┘ │ │               │   │ 
                      TfrmProblems.UMPLLexicon┘ │               │   │ 
                   TfrmdlgProb.bbChangeProbClick┘               │   │ 
                                            TfrmDCSumm.FormClose┤   │ 
                       TfrmDCSumm.mnuActIdentifyAddlSignersClick┤   │ 
                           TfrmDCSumm.popSummMemoAddlSignClick┘ │   │ 
                                 TfrmDCSumm.ProcessNotifications┤   │ 
                                        TfrmDCSumm.DisplayPage┘ │   │ 
                                    TfrmDCSumm.SetViewContext...┤   │ 
                                      TfrmDCSumm.tvSummsDragDrop┤   │ 
                                     TfrmDCSumm.tvSummsStartDrag┤   │ 
                          TfrmDCSumm.mnuActAttachtoIDParentClick┘   │ 
                                     TfrmDCSumm.RemovePCEFromChanges┤ 
                                   TfrmDCSumm.mnuActDeleteClick...┤ │ 
                                        TfrmDCSumm.mnuActSignClick┘ │ 
                                     TfrmDCSumm.mnuActDeleteClick...┤ 
                                          TfrmDCSumm.mnuActSignClick┤ 
                                  TfrmConsults.mnuActNoteDeleteClick┤ 
                                    TfrmConsults.SaveEditedConsult┘ │ 
                                    TfrmConsults.SaveCurrentNote┘   │ 
                               TfrmConsults.AllowContextChange┤     │ 
                          TfrmFrame.AllowContextChangeAll...┘ │     │ 
                                   TfrmConsults.SetViewContext┤     │ 
                                    TfrmConsults.DisplayPage┤ │     │ 
                    TfrmConsults.mnuViewReturntoDefaultClick┘ │     │ 
                                     TfrmConsults.mnuViewClick┤     │ 
                              TfrmConsults.SetViewContext...┘ │     │ 
                    TfrmConsults.mnuActDetachFromIDParentClick┤     │ 
                         TfrmConsults.mnuActNoteDeleteClick...┤     │ 
                         TfrmConsults.mnuActSignatureSaveClick┤     │ 
                         TfrmConsults.mnuActSignatureSignClick┤     │ 
                                     TfrmConsults.SaveSignItem┤     │ 
                                    TfrmReview.cmdOKClick...┘ │     │ 
                               TfrmConsults.mnuActConsultClick┤     │ 
                                     TfrmConsults.RequestPrint┤     │ 
                          TfrmConsults.mnuActPrintSF513Click┤ │     │ 
                                 TfrmFrame.mnuFilePrintClick┘ │     │ 
                        TfrmConsults.mnuActDisplayResultsClick┤     │ 
                           TfrmConsults.ProcessNotifications┘ │     │ 
                                  TfrmConsults.DisplayPage┘   │     │ 
                          TfrmConsults.mnuActDisplaySF513Click┤     │ 
                            TfrmConsults.mnuActPrintSF513Click┤     │ 
                        TfrmConsults.mnuActDisplayDetailsClick┤     │ 
                                        TfrmConsults.FormClose┤     │ 
                   TfrmConsults.mnuActIdentifyAddlSignersClick┤     │ 
                       TfrmConsults.popNoteMemoAddlSignClick┘ │     │ 
                          TfrmConsults.ProcessNotifications...┤     │ 
                             TfrmConsults.mnuActNotePrintClick┤     │ 
                          TfrmConsults.popNoteMemoPrintClick┘ │     │ 
                                     TfrmConsults.StartNewEdit┤     │ 
                            TfrmConsults.mnuActCompleteClick┤ │     │ 
                          TfrmConsults.mnuActAddIDEntryClick┤ │     │ 
                        TfrmConsults.mnuActMakeAddendumClick┤ │     │ 
                            TfrmConsults.mnuActNoteEditClick┘ │     │ 
                          TfrmConsults.mnuActCompleteClick┘   │     │ 
                              TfrmConsults.tvCsltNotesDragDrop┤     │ 
                             TfrmConsults.tvCsltNotesStartDrag┤     │ 
                      TfrmConsults.mnuActAttachtoIDParentClick┤     │ 
                               TfrmConsults.LstConsultsToPrint┘     │ 
                    TfrmFrame.mnuFilePrintSelectedItemsClick┘       │ 
                               TfrmConsults.mnuActSignatureSignClick┤ 
                                   TfrmConsults.RemovePCEFromChanges┤ 
                             TfrmConsults.mnuActNoteDeleteClick...┤ │ 
                             TfrmConsults.mnuActSignatureSignClick┘ │ 
                                           ExecuteReleaseOrderChecks┤ 
                                     TfrmOrders.mnuActReleaseClick┤ │ 
                                     TfrmOrders.mnuActOnChartClick┤ │ 
                                        TfrmOrders.mnuActSignClick┘ │ 
                                   TfrmOCSession.cmdCancelOrderClick┤ 
                                TfrmOrders.RemoveSelectedFromChanges┤ 
                                     TfrmOrders.mnuActReleaseClick┤ │ 
                                     TfrmOrders.mnuActOnChartClick┤ │ 
                                        TfrmOrders.mnuActSignClick┘ │ 
                                            TfrmOrders.ChangesUpdate┤ 
                                         TfrmOrders.lstSheetsClick┤ │ 
                                    TfraEvntDelayList.CheckMatch┤ │ │ 
                                       TfrmOrdersTS.cmdOKClick┘ │ │ │ 
             TfrmOrdersTS.fraEvntDelayListmlstEventsDblClick┤   │ │ │ 
                                    TfrmOrdersTS.FormKeyDown┘   │ │ │ 
                              TfraEvntDelayList.mlstEventsChange┤ │ │ 
                TfrmOrdersTS.fraEvntDelayListcboEvntListChange┤ │ │ │ 
                 TfrmOrdersTS.fraEvntDelayListmlstEventsChange┤ │ │ │ 
                 TfrmMedCopy.fraEvntDelayListcboEvntListChange┤ │ │ │ 
                  TfrmMedCopy.fraEvntDelayListmlstEventsChange┤ │ │ │ 
              TfrmCopyOrders.fraEvntDelayListcboEvntListChange┤ │ │ │ 
               TfrmCopyOrders.fraEvntDelayListmlstEventsChange┘ │ │ │ 
                                 TfrmOrders.mnuViewDfltShowClick┤ │ │ 
                                        TfrmOrders.DisplayPage┘ │ │ │ 
                                                       ..(rec)..┤ │ │ 
                                        TfrmOrders.lstWriteClick┤ │ │ 
                                      TfrmOrders.mnuActCopyClick┤ │ │ 
                                      TfrmOrders.mnuActSignClick┤ │ │ 
                                    TfrmOrders.ResetOrderPage...┤ │ │ 
                        TfrmOrders.PlaceOrderForDefaultDialog...┤ │ │ 
                                        TfrmOrders.ClickLstSheet┤ │ │ 
                         TfraEvntDelayList.mlstEventsChange...┤ │ │ │ 
                                  TfrmOrders.ResetOrderPage...┤ │ │ │ 
                                     ExecuteReleaseEventOrders┘ │ │ │ 
                                   TfrmOrders.mnuActRelClick┘   │ │ │ 
                                     TfrmOrders.InitOrderSheets2┤ │ │ 
                                  TfrmFrame.mnuFileReviewClick┘ │ │ │ 
                                       TfrmOrders.PtEvtCompleted┤ │ │ 
                                    TfrmFrame.DetermineNextTab┤ │ │ │ 
                               TfrmFrame.mnuFileOpenClick...┤ │ │ │ │ 
                                 TfrmFrame.UpdateCCOWContext┘ │ │ │ │ 
                             TfrmFrame.mnuFileOpenClick...┤   │ │ │ │ 
                        TfrmFrame.ctxContextorCommitted...┤   │ │ │ │ 
                    TfrmFrame.mnuFileResumeContextGetClick┘   │ │ │ │ 
                                  TfrmFrame.mnuFileReviewClick┤ │ │ │ 
                                  TfrmOrders.lstSheetsClick...┤ │ │ │ 
                                      TfrmOrders.lstWriteClick┤ │ │ │ 
                                      TfrmOrders.mnuActDCClick┤ │ │ │ 
                                 TfrmOrders.mnuActChgEvntClick┤ │ │ │ 
                                    TfrmOrders.mnuActHoldClick┤ │ │ │ 
                                    TfrmOrders.mnuActFlagClick┤ │ │ │ 
                                 TfrmOrders.mnuActCommentClick┤ │ │ │ 
                                  TfrmOrders.mnuActChangeClick┤ │ │ │ 
                                    TfrmOrders.mnuActCopyClick┤ │ │ │ 
                                    TfrmOrders.mnuActSignClick┤ │ │ │ 
                               TfrmOrders.btnDelayedOrderClick┤ │ │ │ 
                                      TfrmMeds.mnuActCopyClick┤ │ │ │ 
                                       TfrmODActive.btnOKClick┘ │ │ │ 
                                         TfrmOrders.UMEventOccur┤ │ │ 
                                        TfrmMeds.mnuActCopyClick┤ │ │ 
                                         TfrmMeds.mnuActNewClick┤ │ │ 
                                          SetDelayEventForMed...┤ │ │ 
                                               SetViewForCopy...┤ │ │ 
                                       TfrmCopyOrders.cmdOKClick┤ │ │ 
                                   TfrmCopyOrders.UMStillDelay┤ │ │ │ 
             TfrmCopyOrders.fraEvntDelayListmlstEventsDblClick┤ │ │ │ 
                                    TfrmCopyOrders.FormKeyDown┘ │ │ │ 
                                             ExecuteChangeEvt...┤ │ │ 
                                                 ExecuteDCOrders┘ │ │ 
                                      TfrmOrders.mnuActDCClick┤   │ │ 
                                        TfrmMeds.mnuActDCClick┘   │ │ 
                                        TfrmOrders.mnuActCopyClick┤ │ 
                                          TfrmMeds.mnuActCopyClick┤ │ 
                                        TfrmChgEvent.updateChanges┤ │ 
                                             ExecuteChangeEvt...┘ │ │ 
                                  TfrmChgEvent.FilterOutEmptyPtEvt┤ │ 
                                             ExecuteChangeEvt...┤ │ │ 
                                          TfrmChgEvent.Highlight┘ │ │ 
                                           ExecuteChangeEvt...┘   │ │ 
                                                ExecuteDCOrders...┘ │ 
                                       TfrmChgEvent.updateChanges...┤ 
                                                  ExecuteDCOrders...┤ 
                                    TfrmSurgery.RemovePCEFromChanges┤ 
                                     TfrmSurgery.mnuActDeleteClick┤ │ 
                                      TfrmSurgery.SaveEditedNote┘ │ │ 
                                   TfrmSurgery.SaveCurrentNote┘   │ │ 
                              TfrmSurgery.AllowContextChange┤     │ │ 
                        TfrmFrame.AllowContextChangeAll...┘ │     │ │ 
                                  TfrmSurgery.SetViewContext┤     │ │ 
                                   TfrmSurgery.DisplayPage┤ │     │ │ 
                   TfrmSurgery.mnuViewReturntoDefaultClick┘ │     │ │ 
                                    TfrmSurgery.RequestPrint┤     │ │ 
                               TfrmFrame.mnuFilePrintClick┘ │     │ │ 
                                    TfrmSurgery.mnuViewClick┤     │ │ 
                             TfrmSurgery.SetViewContext...┘ │     │ │ 
                                    TfrmSurgery.StartNewEdit┤     │ │ 
                                TfrmSurgery.mnuActNewClick┤ │     │ │ 
                             TfrmSurgery.cmdNewNoteClick┘ │ │     │ │ 
                             TfrmSurgery.mnuActAddendClick┤ │     │ │ 
                               TfrmSurgery.mnuActEditClick┘ │     │ │ 
                            TfrmSurgery.mnuActDeleteClick...┤     │ │ 
                                 TfrmSurgery.mnuActSaveClick┤     │ │ 
                                 TfrmSurgery.mnuActSignClick┤     │ │ 
                                    TfrmSurgery.SaveSignItem┤     │ │ 
                                  TfrmReview.cmdOKClick...┘ │     │ │ 
                                       TfrmSurgery.FormClose┤     │ │ 
                  TfrmSurgery.mnuActIdentifyAddlSignersClick┤     │ │ 
                      TfrmSurgery.popNoteMemoAddlSignClick┘ │     │ │ 
                            TfrmSurgery.ProcessNotifications┘     │ │ 
                                   TfrmSurgery.DisplayPage┘       │ │ 
                                       TfrmSurgery.mnuActSignClick┘ │ 
                                    TfrmSurgery.mnuActDeleteClick...┤ 
                                         TfrmSurgery.mnuActSignClick┤ 
                                            TfrmReview.cmdOKClick...┤ 
                                      TfrmNotes.RemovePCEFromChanges┤ 
                                       TfrmNotes.mnuActDeleteClick┤ │ 
                                        TfrmNotes.SaveEditedNote┘ │ │ 
                                     TfrmNotes.SaveCurrentNote┘   │ │ 
                                TfrmNotes.AllowContextChange┤     │ │ 
                        TfrmFrame.AllowContextChangeAll...┘ │     │ │ 
                                   TfrmNotes.LstNotesToPrint┤     │ │ 
                  TfrmFrame.mnuFilePrintSelectedItemsClick┘ │     │ │ 
                                      TfrmNotes.RequestPrint┤     │ │ 
                               TfrmFrame.mnuFilePrintClick┘ │     │ │ 
                                      TfrmNotes.mnuViewClick┤     │ │ 
                                  TfrmNotes.SetViewContext┤ │     │ │ 
                                   TfrmNotes.DisplayPage┤ │ │     │ │ 
                   TfrmNotes.mnuViewReturntoDefaultClick┘ │ │     │ │ 
                       TfrmNotes.mnuViewSaveAsDefaultClick┘ │     │ │ 
                                      TfrmNotes.StartNewEdit┤     │ │ 
                                  TfrmNotes.mnuActNewClick┤ │     │ │ 
                               TfrmNotes.cmdNewNoteClick┘ │ │     │ │ 
                           TfrmNotes.mnuActAddIDEntryClick┤ │     │ │ 
                               TfrmNotes.mnuActAddendClick┤ │     │ │ 
                                 TfrmNotes.mnuActEditClick┘ │     │ │ 
                     TfrmNotes.mnuActDetachFromIDParentClick┤     │ │ 
                              TfrmNotes.mnuActDeleteClick...┤     │ │ 
                                   TfrmNotes.mnuActSaveClick┤     │ │ 
                                   TfrmNotes.mnuActSignClick┤     │ │ 
                                      TfrmNotes.SaveSignItem┤     │ │ 
                                  TfrmReview.cmdOKClick...┘ │     │ │ 
                                         TfrmNotes.FormClose┤     │ │ 
                    TfrmNotes.mnuActIdentifyAddlSignersClick┤     │ │ 
                        TfrmNotes.popNoteMemoAddlSignClick┘ │     │ │ 
                              TfrmNotes.ProcessNotifications┤     │ │ 
                                     TfrmNotes.DisplayPage┘ │     │ │ 
                                 TfrmNotes.SetViewContext...┤     │ │ 
                                   TfrmNotes.tvNotesDragDrop┤     │ │ 
                       TfrmNotes.mnuActAttachtoIDParentClick┘     │ │ 
                                         TfrmNotes.mnuActSignClick┘ │ 
                                      TfrmNotes.mnuActDeleteClick...┤ 
                                           TfrmNotes.mnuActSignClick┘ 

Calls

Name Declaration Comments
UnlockDocument procedure UnlockDocument(IEN: Int64); -
UnlockOrder procedure UnlockOrder(OrderID: string); -

Called-By

Name Declaration Comments
TfrmOrders.ChangesUpdate procedure ChangesUpdate(APtEvtID: string); -
TfrmOCSession.cmdCancelOrderClick procedure cmdCancelOrderClick(Sender: TObject); -
TfrmReview.cmdOKClick procedure cmdOKClick(Sender: TObject); -
ExecuteDCOrders function ExecuteDCOrders(SelectedList: TList; var DelEvt: boolean): Boolean; -
ExecuteReleaseOrderChecks procedure ExecuteReleaseOrderChecks(SelectList: TList); -
TfrmDCSumm.mnuActDeleteClick procedure mnuActDeleteClick(Sender: TObject); -
TfrmSurgery.mnuActDeleteClick procedure mnuActDeleteClick(Sender: TObject); -
TfrmNotes.mnuActDeleteClick procedure mnuActDeleteClick(Sender: TObject); -
TfrmConsults.mnuActNoteDeleteClick procedure mnuActNoteDeleteClick(Sender: TObject); -
TfrmConsults.mnuActSignatureSignClick procedure mnuActSignatureSignClick(Sender: TObject); -
TfrmDCSumm.mnuActSignClick procedure mnuActSignClick(Sender: TObject); -
TfrmSurgery.mnuActSignClick procedure mnuActSignClick(Sender: TObject); -
TfrmNotes.mnuActSignClick procedure mnuActSignClick(Sender: TObject); -
TfrmDCSumm.RemovePCEFromChanges procedure RemovePCEFromChanges(IEN: Int64; AVisitStr: string = ''); -
TfrmConsults.RemovePCEFromChanges procedure RemovePCEFromChanges(IEN: Integer; AVisitStr: string = ''); -
TfrmSurgery.RemovePCEFromChanges procedure RemovePCEFromChanges(IEN: Int64; AVisitStr: string = ''); -
TfrmNotes.RemovePCEFromChanges procedure RemovePCEFromChanges(IEN: Int64; AVisitStr: string = ''); -
TfrmOrders.RemoveSelectedFromChanges procedure RemoveSelectedFromChanges(AList: TList); -
TfrmDCSumm.SaveEditedSumm procedure SaveEditedSumm(var Saved: Boolean); -
TfrmChgEvent.updateChanges procedure updateChanges(Const AnOrderIDList: TStringList; Const AnEventName: String); -


Source

1276  procedure TChanges.Remove(ItemType: Integer; const AnID: string);
1277  { remove a change item from the appropriate list of changes (depending on type)
1278    this doesn't check groupnames, may leave a groupname without any associated items }
1279  var
1280    ChangeList: TList;
1281    i,j: Integer;
1282    needRemove: boolean;
1283  begin
1284    ChangeList := nil;
1285    case ItemType of
1286    CH_DOC: ChangeList := FDocuments;
1287    CH_SUM: ChangeList := FDocuments;
1288    CH_CON: ChangeList := FDocuments;
1289    CH_SUR: ChangeList := FDocuments;
1290    CH_ORD: ChangeList := fOrders;
1291    CH_PCE: ChangeList := FPCE;
1292    end;
1293    if ChangeList <> nil then with ChangeList do
1294      for i := Count - 1 downto 0 do if TChangeItem(Items[i]).ID = AnID then
1295      begin
1296        if Assigned(FOnRemove) then FOnRemove(Self, TChangeItem(Items[i]))    {**RV**}
1297          else TChangeItem(Items[i]).Free;                                    {**RV**}
1298        //TChangeItem(Items[i]).Free;                                         {**RV**}
1299        // set TChangeItem(Items[i]) = nil?
1300        Delete(i);
1301        Dec(FCount);
1302      end;
1303    if ItemType = CH_ORD then
1304    begin
1305      for i := OrderGrp.Count - 1 downto 0 do
1306      begin
1307        needRemove := True;
1308        for j := 0 to fOrders.Count - 1 do
1309          if (AnsiCompareText(TChangeItem(fOrders[j]).GroupName,OrderGrp[i]) = 0 ) then
1310            needRemove := False;
1311        if needRemove then
1312          OrderGrp.Delete(i);
1313      end;
1314    end;
1315    if ItemType = CH_ORD then UnlockOrder(AnID);
1316    if ItemType = CH_DOC then UnlockDocument(StrToIntDef(AnID, 0));
1317    if ItemType = CH_CON then UnlockDocument(StrToIntDef(AnID, 0));
1318    if ItemType = CH_SUM then UnlockDocument(StrToIntDef(AnID, 0));
1319    if ItemType = CH_SUR then UnlockDocument(StrToIntDef(AnID, 0));
1320  end;