Function

TfrmFrame.PageIDToTab

Module

fFrame

Last Modified

3/11/2015 8:41:44 AM

Comments

Returns the tab index that corresponds to a given PageID

Visibility

Public

Owner

TfrmFrame

Declaration

function PageIDToTab(PageID: Integer): Integer;

Called-By Hierarchy


                                               TfrmFrame.PageIDToTab
                                             TfrmPage.frmPageEnter┤ 
                                             TfrmPage.FormCreate┘ │ 
                                            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┘   │ 
                                        TfrmFrame.mnuChartTabClick┤ 
                                     TfrmDCSumm.mnuChartTabClick┤ │ 
                                   TfrmConsults.mnuChartTabClick┤ │ 
                                     TfrmOrders.mnuChartTabClick┤ │ 
                                       TfrmMeds.mnuChartTabClick┤ │ 
                                    TfrmSurgery.mnuChartTabClick┤ │ 
                                      TfrmNotes.mnuChartTabClick┤ │ 
                                   TfrmProblems.mnuChartTabClick┘ │ 
                                     TfrmFrame.mnuFileNextClick...┤ 
                                     TfrmFrame.mnuFileOpenClick...┤ 
                               TfrmFrame.AllowCCOWContextChange...┤ 
                                    TfrmFrame.UpdateCCOWContext...┤ 
                            TfrmFrame.mnuFileResumeContextSetClick┤ 
                                            TfrmFrame.SetActiveTab┘ 
                                       ExecuteSessionOrderChecks┘   
                                     ExecuteReleaseOrderChecks┤     
                               TfrmOrders.mnuActReleaseClick┤ │     
                               TfrmOrders.mnuActOnChartClick┤ │     
                                  TfrmOrders.mnuActSignClick┘ │     
                                         TfrmReview.cmdOKClick┘     
                                               ReviewChanges┘       
                           TfrmFrame.AllowContextChangeAll┤         
                                TfrmFrame.FormCloseQuery┤ │         
                           TfrmFrame.mnuFileNextClick...┤ │         
                           TfrmFrame.mnuFileOpenClick...┤ │         
                           TfrmFrame.ctxContextorPending┤ │         
                       TfrmFrame.StartCCOWContextor...┘ │ │         
                      TfrmFrame.ctxContextorCommitted...┤ │         
                  TfrmFrame.mnuFileResumeContextGetClick┤ │         
                  TfrmFrame.mnuFileResumeContextSetClick┘ │         
                                  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┘                   

Called-By

Name Declaration Comments
TfrmFrame.AllowCCOWContextChange function AllowCCOWContextChange(var CCOWResponse: UserResponse; NewDFN: string): boolean; -
TfrmFrame.ClearPatient procedure ClearPatient; -
TfrmPage.frmPageEnter procedure frmPageEnter(Sender: TObject); -
TfrmFrame.mnuChartTabClick procedure mnuChartTabClick(Sender: TObject); -
TfrmFrame.mnuFileNextClick procedure mnuFileNextClick(Sender: TObject); -
TfrmFrame.mnuFileOpenClick procedure mnuFileOpenClick(Sender: TObject); -
TfrmFrame.mnuFileResumeContextSetClick procedure mnuFileResumeContextSetClick(Sender: TObject); -
TfrmFrame.SetActiveTab procedure SetActiveTab(PageID: Integer); -
TfrmFrame.UpdateCCOWContext procedure UpdateCCOWContext; -


Source

1387  function TfrmFrame.PageIDToTab(PageID: Integer): Integer;
1388  { returns the tab index that corresponds to a given PageID }
1389  VAR
1390    i: integer;
1391  begin
1392    i :=  uTabList.IndexOf(IntToStr(PageID));
1393    Result := i;
1394    //Result := uTabList.IndexOf(IntToStr(PageID));
1395    (*
1396    Result := -1;
1397    case PageID of
1398      CT_NOPAGE:   Result := -1;
1399      CT_COVER:    Result :=  0;
1400      CT_PROBLEMS: Result :=  1;
1401      CT_MEDS:     Result :=  2;
1402      CT_ORDERS:   Result :=  3;
1403     {CT_HP:       Result :=  4;}
1404      CT_NOTES:    Result :=  4;
1405      CT_CONSULTS: Result :=  5;
1406      CT_DCSUMM:   Result :=  6;
1407      CT_LABS:     Result :=  7;
1408      CT_REPORTS:  Result :=  8;
1409    end;*)
1410  end;