Function

UpdatePCE

Module

fEncounterFrame

Last Modified

7/15/2014 3:26:36 PM

Comments

Returns true if PCE data still needs to be saved - vitals/gaf are always saved
//Name: procedure UpdatePCE(PCEData: TPCEData);
//Created: Jan 1999
//By: Robert Bott
//Location: ISL
//Description: The main call to open the encounter frame and capture encounter
// information.
///////////////////////////////////////////////////////////////////////////////

  FontHeight,
  FontWidth: Integer;

Scope

Interfaced

Declaration

function UpdatePCE(PCEData: TPCEData; SaveOnExit: boolean = TRUE): boolean;

Calls Hierarchy


UpdatePCE
 ├TfrmBase508Form.Create
 │ ├TfrmBase508Form.UpdateAccessibilityActions
 │ ├UnfocusableControlEnter
 │ └AdjustControls
 │   ├TfrmBase508Form.ModifyUnfocusableControl
 │   └..(rec)..
 ├TPCEData.Empty
 │ └TPCEProc.Empty
 ├TEncounter.NeedVisit
 ├TPCEData.SetEncUseCurr
 │ ├TEncounter.GetVisitCategory
 │ ├TPCEProviderList.SetPrimaryIdx
 │ │ ├TPCEProviderList.GetPrimaryIdx
 │ │ └TPCEProviderList.SetPrimary
 │ └SetRPCEncLocation
 ├ExternalName
 ├TPCEData.VisitDateTime
 │ └TPCEData.IsSecondaryVisit
 ├TPCEProviderList.Assign
 ├SetDefaultProvider
 │ ├InvalidPCEProviderTxt
 │ │ ├CheckActivePerson
 │ │ └IsUserAProvider
 │ ├TPCEData.PersonClassDate
 │ │ └FMToday
 │ │   └FMNow
 │ ├TEncounter.GetProviderName
 │ │ └TEncounter.UpdateText
 │ │   └GetEncounterText
 │ ├DefaultProvider
 │ ├CheckActivePerson
 │ ├TIUSiteParams
 │ └TPCEProviderList.AddProvider
 │   └TPCEProviderList.Add
 │     ├TPCEProviderList.GetPrimaryIdx
 │     ├TPCEProviderList.IndexOfProvider
 │     └TPCEProviderList.SetPrimaryIdx...
 ├TPCEProviderList.PendingIEN
 ├TPCEProviderList.IndexOfProvider
 ├AutoCheckout
 ├TPCEProviderList.AddProvider...
 ├TPCEProviderList.PendingName
 ├TfrmEncounterFrame.CreateChildForms
 │ ├TfrmEncounterFrame.LoadFormList
 │ │ └MHClinic
 │ │   └GAFOK
 │ ├TfrmEncounterFrame.AddTabs
 │ └TfrmEncounterFrame.CreateForms
 │   ├TfrmEncounterFrame.FormListContains
 │   ├TfrmPCEBase.CreateLinked
 │   │ └TfrmBase508Form.Create...
 │   ├TfrmEncounterFrame.PageIDToTab
 │   └TfrmEncounterFrame.PageIDToForm
 ├SetFormPosition
 │ └TSizeHolder.GetSize
 ├SetRPCEncLocation
 ├TfrmEncounterFrame.SynchPCEData
 │ ├TfrmEncounterFrame.FormListContains
 │ ├InitList
 │ │ ├TfrmEncounterFrame.FormListContains
 │ │ ├ListVisitTypeSections
 │ │ │ └LoadEncounterForm
 │ │ │   ├TPCEData.VisitDateTime...
 │ │ │   ├FMNow
 │ │ │   └AddProbsToDiagnoses
 │ │ │     ├TPCEData.VisitDateTime...
 │ │ │     ├rpcGetProviderPatientDaysDx
 │ │ │     └rpcGetPersonalDxList
 │ │ ├AutoSelectVisit
 │ │ ├PCERPCEncLocation
 │ │ └TfrmEncounterFrame.SectionClick
 │ │   ├TfrmEncounterFrame.FormListContains
 │ │   └TfrmVisitType.lstVTypeSectionClick
 │ │     ├ListVisitTypeCodes
 │ │     │ └InsertTab
 │ │     └TfrmVisitType.lbxVisitsClick
 │ │       └TfrmVisitType.ShowModifiers
 │ │         ├ListCPTModifiers
 │ │         │ ├ModifierList
 │ │         │ │ ├TPCEData.VisitDateTime...
 │ │         │ │ └MixedCaseModifier
 │ │         │ └ModifierIdx
 │ │         │   ├TPCEData.VisitDateTime...
 │ │         │   ├FMToday...
 │ │         │   └MixedCaseModifier
 │ │         └TfrmVisitType.CheckModifiers
 │ │           └UpdateVisitTypeModifierList
 │ │             └ModifierList...
 │ ├ListSCDisabilities
 │ ├EligbleConditions
 │ ├TfraVisitRelated.InitAllow
 │ │ └TfraVisitRelated.SetCheckEnable
 │ ├TfraVisitRelated.InitRelated
 │ │ └TfraVisitRelated.SetCheckState
 │ │   └TfraVisitRelated.chkClick
 │ │     ├DisableCheck
 │ │     └TfraVisitRelated.SetCheckEnable
 │ ├TfrmPCEBaseMain.InitTab
 │ │ ├TfrmPCEBaseMain.lbSectionClick
 │ │ │ ├TfrmPCEBaseGrid.ClearGrid
 │ │ │ │ └TfrmPCEBaseGrid.UpdateControls
 │ │ │ └TfrmPCEBaseMain.CheckOffEntries
 │ │ │   └TfrmPCEBaseMain.GetCat
 │ │ ├TfrmPCEBaseGrid.ClearGrid...
 │ │ └TfrmPCEBaseMain.GridChanged
 │ │   ├TfrmPCEBaseMain.BeginUpdate
 │ │   ├TfrmPCEBaseGrid.SaveGridSelected
 │ │   ├TPCEItem.ItemStr
 │ │   ├TfrmPCEBaseGrid.RestoreGridSelected
 │ │   ├TfrmPCEBaseGrid.SyncGridData
 │ │   │ ├TfrmPCEBaseGrid.SaveGridSelected
 │ │   │ ├TfrmPCEBaseGrid.RestoreGridSelected
 │ │   │ └TfrmPCEBaseGrid.SyncGridHeader
 │ │   ├TfrmPCEBaseMain.EndUpdate
 │ │   └TfrmPCEBaseMain.UpdateControls
 │ │     ├TfrmPCEBaseMain.NotUpdating
 │ │     ├TfrmPCEBaseMain.BeginUpdate
 │ │     ├TfrmPCEBaseGrid.GetGridIndex
 │ │     └TfrmPCEBaseMain.EndUpdate
 │ ├TPCEData.CopyDiagnoses
 │ │ └TPCEData.CopyPCEItems
 │ │   └TPCEItem.Assign
 │ │     └TPCEItem.SetComment
 │ ├ListDiagnosisSections
 │ │ └LoadEncounterForm...
 │ ├TfrmProcedures.InitTab
 │ ├TPCEData.CopyProcedures
 │ │ └TPCEData.CopyPCEItems...
 │ ├ListProcedureSections
 │ │ └LoadEncounterForm...
 │ ├TPCEData.CopyImmunizations
 │ │ └TPCEData.CopyPCEItems...
 │ ├ListImmunizSections
 │ │ └LoadEncounterForm...
 │ ├TPCEData.CopySkinTests
 │ │ └TPCEData.CopyPCEItems...
 │ ├ListSkinSections
 │ │ └LoadEncounterForm...
 │ ├TPCEData.CopyPatientEds
 │ │ └TPCEData.CopyPCEItems...
 │ ├ListPatientSections
 │ │ └LoadEncounterForm...
 │ ├TPCEData.CopyHealthFactors
 │ │ └TPCEData.CopyPCEItems...
 │ ├ListHealthSections
 │ │ └LoadEncounterForm...
 │ ├TPCEData.CopyExams
 │ │ └TPCEData.CopyPCEItems...
 │ ├ListExamsSections
 │ │ └LoadEncounterForm...
 │ ├TPCEProc.Assign
 │ │ └TPCEItem.Assign...
 │ └TfrmVisitType.MatchVType
 │   ├TfrmVisitType.lstVTypeSectionClick...
 │   └TfrmVisitType.lbxVisitsClickCheck
 │     ├TPCEProviderList.PrimaryIEN
 │     │ └TPCEProviderList.GetPrimaryIdx
 │     ├TPCEProc.SetFromString
 │     │ └TPCEItem.SetFromString
 │     │   └TPCEItem.SetComment
 │     └TPCEProc.Clear
 │       └TPCEItem.Clear
 │         └TPCEItem.SetComment
 └TfrmEncounterFrame.TabControlChange
   ├TfrmEncounterFrame.PageIDToTab
   ├TfrmEncounterFrame.PageIDToForm
   └TfrmEncounterFrame.SwitchToPage
     └TfrmPCEBase.DisplayPage

Called-By Hierarchy


                                                             UpdatePCE
                                                TPCEData.OK2SignNote┤ 
                                                         IsOK2Sign┘ │ 
                                      TfrmDCSumm.mnuActSignClick┤   │ 
                                         TfrmDCSumm.SaveSignItem┤   │ 
                                         TfrmReview.cmdOKClick┘ │   │ 
                                               ReviewChanges┘   │   │ 
                           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┤     │   │ 
                              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┘               │   │ 
                           TfrmConsults.mnuActSignatureSignClick┤   │ 
                                       TfrmConsults.SaveSignItem┤   │ 
                                      TfrmReview.cmdOKClick...┘ │   │ 
                                     TfrmSurgery.mnuActSignClick┤   │ 
                                        TfrmSurgery.SaveSignItem┤   │ 
                                      TfrmReview.cmdOKClick...┘ │   │ 
                                       TfrmNotes.mnuActSignClick┤   │ 
                                          TfrmNotes.SaveSignItem┘   │ 
                                      TfrmReview.cmdOKClick...┘     │ 
                                              TfrmDCSumm.cmdPCEClick┤ 
                                            TfrmConsults.cmdPCEClick┤ 
                                                      EditPCEData...┤ 
                                             TfrmSurgery.cmdPCEClick┤ 
                                              UpdateEncounterInfo...┘ 

Calls

Name Declaration Comments
TPCEProviderList.AddProvider function AddProvider(AIEN, AName: string; APrimary: boolean): integer; -
TPCEProviderList.Assign procedure Assign(Source: TPersistent); override; -
AutoCheckout function AutoCheckout(Loc: integer): boolean; -
TfrmBase508Form.Create constructor Create(AOwner: TComponent); override; -
TfrmEncounterFrame.CreateChildForms procedure CreateChildForms(Sender: TObject; Location: integer); -
TPCEData.Empty function Empty: boolean; -
ExternalName function ExternalName(IEN: Int64; FileNumber: Double): string; -
TPCEProviderList.IndexOfProvider function IndexOfProvider(AIEN: string): integer; -
TEncounter.NeedVisit function NeedVisit: Boolean; -
TPCEProviderList.PendingIEN function PendingIEN(ADefault: boolean): Int64; -
TPCEProviderList.PendingName function PendingName(ADefault: boolean): string; -
SetDefaultProvider procedure SetDefaultProvider(ProviderList: TPCEProviderList; APCEData: TPCEData); -
TPCEData.SetEncUseCurr procedure SetEncUseCurr(Value: Boolean); -
SetFormPosition procedure SetFormPosition(AForm: TForm); -
SetRPCEncLocation function SetRPCEncLocation(Loc: Integer): boolean; -
TfrmEncounterFrame.SynchPCEData procedure SynchPCEData; -
TfrmEncounterFrame.TabControlChange procedure TabControlChange(Sender: TObject); -
TPCEData.VisitDateTime function VisitDateTime: TFMDateTime; -

Called-By

Name Declaration Comments
TfrmDCSumm.cmdPCEClick procedure cmdPCEClick(Sender: TObject); -
TfrmConsults.cmdPCEClick procedure cmdPCEClick(Sender: TObject); -
TfrmSurgery.cmdPCEClick procedure cmdPCEClick(Sender: TObject); -
EditPCEData function EditPCEData(NoteData: TPCEData): boolean; -
TPCEData.OK2SignNote function OK2SignNote: boolean; -
UpdateEncounterInfo procedure UpdateEncounterInfo; -


Source

376   function UpdatePCE(PCEData: TPCEData; SaveOnExit: boolean = TRUE): boolean;
377   var
378   //  FontHeight,
379   //  FontWidth: Integer;
380     AUser: string;
381   
382   begin
383     frmEncounterFrame := TfrmEncounterFrame.Create(Application);
384     try
385       frmEncounterFrame.FAutoSave := SaveOnExit;
386   
387       uEncPCEData := PCEData;
388       if(uEncPCEData.Empty and ((uEncPCEData.Location = 0) or (uEncPCEData.VisitDateTime = 0)) and
389         (not Encounter.NeedVisit)) then
390         uEncPCEData.UseEncounter := TRUE;
391       frmEncounterFrame.Caption := 'Encounter Form for ' + ExternalName(uEncPCEData.Location, 44) +
392                                     '  (' + FormatFMDateTime('mmm dd,yyyy@hh:nn', uEncPCEData.VisitDateTime) + ')';
393   
394       uProviders.Assign(uEncPCEData.Providers);
395       SetDefaultProvider(uProviders, uEncPCEData);
396       AUser := IntToStr(uProviders.PendingIEN(FALSE));
397       if(AUser <> '0') and (uProviders.IndexOfProvider(AUser) < 0) and
398          AutoCheckout(uEncPCEData.Location) then
399         uProviders.AddProvider(AUser, uProviders.PendingName(FALSE), FALSE);
400   
401       frmEncounterFrame.CreateChildForms(frmEncounterFrame, PCEData.Location);
402       SetFormPosition(frmEncounterFrame);
403       ResizeAnchoredFormToFont(frmEncounterFrame);
404       //SetFormPosition(frmEncounterFrame);
405   
406       with frmEncounterFrame do
407       begin
408         SetRPCEncLocation(PCEData.Location);
409         SynchPCEData;
410         TabControl.Tabindex := 0;
411         TabControlChange(TabControl);
412   
413         ShowModal;
414         Result := FSaveNeeded;
415       end;
416     finally
417       // frmEncounterFrame.Free;   v22.11 (JD and SM)
418       frmEncounterFrame.Release;
419       //frmEncounterFrame := nil;  access violation source?  removed 7/28/03 RV
420     end;
421   end;