Procedure

TfrmSurgery.ClearEditControls

Module

fSurgery

Last Modified

7/15/2014 3:26:38 PM

Comments

General procedures ----------------------------------------------------------------------- 

 resets controls used for entering a new progress note

Visibility

Private

Owner

TfrmSurgery

Declaration

procedure ClearEditControls;

Calls Hierarchy


TfrmSurgery.ClearEditControls
 ├TPCEData.Clear
 │ ├ClearList
 │ ├TPCEProc.Clear
 │ │ └TPCEItem.Clear
 │ │   └TPCEItem.SetComment
 │ └TPCEProviderList.Clear
 │   └TPCEProviderList.GetPrimaryIdx
 └TfrmSurgery.SetEditingIndex
   ├KillReminderDialog
   │ └TfrmRemDlg.ResetProcessing
   │   ├TfrmRemDlg.ClearControls
   │   │ ├WipeOutControls
   │   │ │ └..(rec)..
   │   │ └TfrmRemDlg.GetBox
   │   ├TfrmRemDlg.PositionTrees
   │   └TfrmRemDlg.KillDlg
   └TfrmReminderTree.EnableActions
     ├ReminderDialogActive
     ├NewRemCoverSheetListActive
     └CanEditAllRemCoverSheetLists
       └HasMenuOptionAccess

Called-By Hierarchy


                                           TfrmSurgery.ClearEditControls
                                               TfrmSurgery.ClearPtData┤ 
                                              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┘     │ 
                                             TfrmSurgery.InsertNewNote┤ 
                                          TfrmSurgery.mnuActNewClick┘ │ 
                                       TfrmSurgery.cmdNewNoteClick┘   │ 
                                            TfrmSurgery.InsertAddendum┤ 
                                       TfrmSurgery.mnuActAddendClick┘ │ 
                                               TfrmSurgery.LoadForEdit┤ 
                                         TfrmSurgery.mnuActEditClick┘ │ 
                                         TfrmSurgery.mnuActDeleteClick┘ 
                                          TfrmSurgery.SaveEditedNote┘   
                                       TfrmSurgery.SaveCurrentNote┘     
                                  TfrmSurgery.AllowContextChange┤       
                               TfrmFrame.AllowContextChangeAll┘ │       
                                    TfrmFrame.FormCloseQuery┤   │       
                               TfrmFrame.mnuFileNextClick...┤   │       
                               TfrmFrame.mnuFileOpenClick...┤   │       
                               TfrmFrame.ctxContextorPending┤   │       
                           TfrmFrame.StartCCOWContextor...┘ │   │       
                          TfrmFrame.ctxContextorCommitted...┤   │       
                      TfrmFrame.mnuFileResumeContextGetClick┤   │       
                      TfrmFrame.mnuFileResumeContextSetClick┘   │       
                                      TfrmSurgery.SetViewContext┤       
                                       TfrmSurgery.DisplayPage┤ │       
                       TfrmSurgery.mnuViewReturntoDefaultClick┘ │       
                                        TfrmSurgery.RequestPrint┤       
                                   TfrmFrame.mnuFilePrintClick┘ │       
                                        TfrmSurgery.mnuViewClick┤       
                                 TfrmSurgery.SetViewContext...┘ │       
                                        TfrmSurgery.StartNewEdit┤       
                                 TfrmSurgery.mnuActNewClick...┤ │       
                                 TfrmSurgery.mnuActAddendClick┤ │       
                                   TfrmSurgery.mnuActEditClick┘ │       
                                TfrmSurgery.mnuActDeleteClick...┤       
                                     TfrmSurgery.mnuActSaveClick┤       
                                     TfrmSurgery.mnuActSignClick┤       
                                        TfrmSurgery.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┘               │       
                                           TfrmSurgery.FormClose┤       
                      TfrmSurgery.mnuActIdentifyAddlSignersClick┤       
                          TfrmSurgery.popNoteMemoAddlSignClick┘ │       
                                TfrmSurgery.ProcessNotifications┘       
                                       TfrmSurgery.DisplayPage┘         

Calls

Name Declaration Comments
TPCEData.Clear procedure Clear; -
TfrmSurgery.SetEditingIndex procedure SetEditingIndex(const Value: Integer); -

Called-By

Name Declaration Comments
TfrmSurgery.ClearPtData procedure ClearPtData; override; -
TfrmSurgery.InsertAddendum procedure InsertAddendum; -
TfrmSurgery.InsertNewNote procedure InsertNewNote(IsIDChild: boolean; AnIDParent: integer); -
TfrmSurgery.LoadForEdit procedure LoadForEdit; -
TfrmSurgery.mnuActDeleteClick procedure mnuActDeleteClick(Sender: TObject); -


Source

684   procedure TfrmSurgery.ClearEditControls;
685   { resets controls used for entering a new progress note }
686   begin
687     // clear FEditNote (should FEditNote be an object with a clear method?)
688     with FEditNote do
689     begin
690       DocType      := 0;
691       Title        := 0;
692       TitleName    := '';
693       DateTime     := 0;
694       Author       := 0;
695       AuthorName   := '';
696       Cosigner     := 0;
697       CosignerName := '';
698       Subject      := '';
699       Location     := 0;
700       LocationName := '';
701       PkgRef       := '';
702       PkgIEN       := 0;
703       PkgPtr       := '';
704       NeedCPT      := False;
705       Addend       := 0;
706       {LastCosigner & LastCosignerName aren't cleared because they're used as default for next note.}
707       Lines        := nil;
708     end;
709     // clear the editing controls (also clear the new labels?)
710     txtSubject.Text := '';
711     memNewNote.Clear;
712     timAutoSave.Enabled := False;
713     // clear the PCE object for editing
714     uPCEEdit.Clear;
715     // set the tracking variables to initial state
716     EditingIndex := -1;
717     FChanged := False;
718   end;