Procedure

TfrmEncounterFrame.SynchPCEData

Module

fEncounterFrame

Last Modified

7/15/2014 3:26:36 PM

Comments

//Name: procedure TfrmEncounterFrame.SynchPCEData;
//Created: Jan 1999
//By: Robert Bott
//Location: ISL
//Description: Synchronize any existing PCE data with what is displayed in the form.
///////////////////////////////////////////////////////////////////////////////

Visibility

Private

Owner

TfrmEncounterFrame

Declaration

procedure SynchPCEData;

Calls Hierarchy


TfrmEncounterFrame.SynchPCEData
 ├TfrmEncounterFrame.FormListContains
 ├InitList
 │ ├TfrmEncounterFrame.FormListContains
 │ ├ListVisitTypeSections
 │ │ └LoadEncounterForm
 │ │   ├TPCEData.VisitDateTime
 │ │   │ └TPCEData.IsSecondaryVisit
 │ │   ├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
 │         │   │ └FMNow
 │         │   └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

Called-By Hierarchy


                                         TfrmEncounterFrame.SynchPCEData
                                                             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
TPCEProc.Assign procedure Assign(Src: TPCEItem); override; -
TPCEData.CopyDiagnoses procedure CopyDiagnoses(Dest: TStrings); -
TPCEData.CopyExams procedure CopyExams(Dest: TStrings); -
TPCEData.CopyHealthFactors procedure CopyHealthFactors(Dest: TStrings); -
TPCEData.CopyImmunizations procedure CopyImmunizations(Dest: TStrings); -
TPCEData.CopyPatientEds procedure CopyPatientEds(Dest: TStrings); -
TPCEData.CopyProcedures procedure CopyProcedures(Dest: TStrings); -
TPCEData.CopySkinTests procedure CopySkinTests(Dest: TStrings); -
EligbleConditions function EligbleConditions: TSCConditions; -
TfrmEncounterFrame.FormListContains function FormListContains(item: string): Boolean; -
TfraVisitRelated.InitAllow procedure InitAllow(SCCond: TSCConditions); -
InitList procedure InitList(AListBox: TORListBox); -
TfraVisitRelated.InitRelated procedure InitRelated(PCEData: TPCEData); overload; -
TfrmPCEBaseMain.InitTab procedure InitTab(ACopyProc: TCopyItemsMethod; AListProc: TListSectionsProc); -
TfrmProcedures.InitTab procedure InitTab(ACopyProc: TCopyItemsMethod; AListProc: TListSectionsProc); -
ListDiagnosisSections procedure ListDiagnosisSections(Dest: TStrings); -
ListExamsSections procedure ListExamsSections(Dest: TStrings); -
ListHealthSections procedure ListHealthSections(Dest: TStrings); -
ListImmunizSections procedure ListImmunizSections(Dest: TStrings); -
ListPatientSections procedure ListPatientSections(Dest: TStrings); -
ListProcedureSections procedure ListProcedureSections(Dest: TStrings); -
ListSCDisabilities procedure ListSCDisabilities(Dest: TStrings); -
ListSkinSections procedure ListSkinSections(Dest: TStrings); -
TfrmVisitType.MatchVType procedure MatchVType; -

Called-By

Name Declaration Comments
UpdatePCE function UpdatePCE(PCEData: TPCEData; SaveOnExit: boolean = TRUE): boolean; -


Source

448   procedure TfrmEncounterFrame.SynchPCEData;
449   
450     procedure InitList(AListBox: TORListBox);
451     var
452       DoClick: boolean;
453   
454     begin
455       with AListBox do
456       begin
457         DoClick := TRUE;
458         case Tag of
459           TAG_VTYPE:   begin
460                          if FormListContains(CT_VisitNm) then
461                             ListVisitTypeSections(Items);
462                          DoClick := AutoSelectVisit(PCERPCEncLocation);
463                        end;
464         end;
465         if Items.Count > 0 then
466         begin
467           if DoClick then
468           begin
469             ItemIndex := 0;
470             SectionClick(AListBox);
471           end;
472         end
473         else Items.Add(TX_NOSECTION);
474       end;
475     end;
476   
477   begin
478     if FormListContains(CT_VisitNm) then
479     with frmVisitType do
480       begin
481         InitList(frmVisitType.lstVTypeSection);                     // set up Visit Type page
482         ListSCDisabilities(memSCDisplay.Lines);
483         uSCCond := EligbleConditions;
484         frmVisitType.fraVisitRelated.InitAllow(uSCCond);
485       end;
486     with uEncPCEData do                               // load any existing data from PCEData
487     begin
488       if FormListContains(CT_VisitNm) then
489         frmVisitType.fraVisitRelated.InitRelated(uEncPCEData);
490       if FormListContains(CT_DiagNm) then
491         frmDiagnoses.InitTab(CopyDiagnoses, ListDiagnosisSections);
492       if FormListContains(CT_ProcNm) then
493         frmProcedures.InitTab(CopyProcedures, ListProcedureSections);
494       if FormListContains(CT_ImmNm) then
495         frmImmunizations.InitTab(CopyImmunizations,ListImmunizSections);
496       if FormListContains(CT_SkinNm) then
497         frmSkinTests.InitTab(CopySkinTests, ListSkinSections);
498       if FormListContains(CT_PedNm) then
499         frmPatientEd.InitTab(CopyPatientEds, ListPatientSections);
500       if FormListContains(CT_HlthNm) then
501         frmHealthFactors.InitTab(CopyHealthFactors, ListHealthSections);
502       if FormListContains(CT_XamNm) then
503         frmExams.InitTab(CopyExams, ListExamsSections);
504       uVisitType.Assign(VisitType);
505       if FormListContains(CT_VisitNm) then
506       with frmVisitType do
507       begin
508         MatchVType;
509       end;
510     end;
511   end;