Procedure

TfrmDCSumm.mnuActDeleteClick

Module

fDCSumm

Last Modified

7/15/2014 3:26:36 PM

Comments

Delete the selected progress note & remove from the Encounter object if necessary

Visibility

Public/Published

Owner

TfrmDCSumm

Declaration

procedure mnuActDeleteClick(Sender: TObject);

Calls Hierarchy


TfrmDCSumm.mnuActDeleteClick
 ├TfrmDCSumm.NoSummSelected
 ├ActOnDocument
 ├SelectDeleteReason
 │ ├JustifyDocumentDelete
 │ └TfrmBase508Form.Create
 │   ├TfrmBase508Form.UpdateAccessibilityActions
 │   ├UnfocusableControlEnter
 │   └AdjustControls
 │     ├TfrmBase508Form.ModifyUnfocusableControl
 │     └..(rec)..
 ├MakeDCSummDisplayText
 ├TfrmDCSumm.LockSumm
 │ ├TChanges.Exist
 │ └LockDocument
 ├JustifyDocumentDelete
 ├TfrmDCSumm.SaveCurrentSumm
 │ └TfrmDCSumm.SaveEditedSumm
 │   ├TfrmDCSumm.tvSummsChange
 │   │ ├CanBeAttached
 │   │ ├CanReceiveAttachment
 │   │ ├TraverseTree
 │   │ │ ├ContextMatch
 │   │ │ ├TextFound
 │   │ │ ├AddListViewItem
 │   │ │ └..(rec)..
 │   │ ├TfrmDCSumm.lvSummsSelectItem
 │   │ │ └TfrmDCSumm.lstSummsClick
 │   │ │   ├MakeDCSummDisplayText
 │   │ │   ├LoadDocumentText
 │   │ │   ├TfrmDCSumm.DisplayPCE
 │   │ │   │ ├TPCEData.AddStrData
 │   │ │   │ │ ├Add
 │   │ │   │ │ ├TPCEData.StrVisitType
 │   │ │   │ │ │ ├GetPCEDataText
 │   │ │   │ │ │ │ └GetDiagnosisText
 │   │ │   │ │ │ ├TPCEProc.ModText
 │   │ │   │ │ │ │ └ModifierName
 │   │ │   │ │ │ │   └ModifierIdx
 │   │ │   │ │ │ │     ├TPCEData.VisitDateTime
 │   │ │   │ │ │ │     │ └TPCEData.IsSecondaryVisit
 │   │ │   │ │ │ │     ├FMToday
 │   │ │   │ │ │ │     │ └FMNow
 │   │ │   │ │ │ │     └MixedCaseModifier
 │   │ │   │ │ │ └TPCEData.StrVisitType
 │   │ │   │ │ │   └AddTxt
 │   │ │   │ │ ├TPCEData.StrDiagnoses
 │   │ │   │ │ │ └GetPCEDataText...
 │   │ │   │ │ ├TPCEData.StrProcedures
 │   │ │   │ │ │ ├GetPCEDataText...
 │   │ │   │ │ │ └TPCEProc.ModText...
 │   │ │   │ │ ├TPCEData.StrImmunizations
 │   │ │   │ │ │ └GetPCEDataText...
 │   │ │   │ │ ├TPCEData.StrSkinTests
 │   │ │   │ │ │ └GetPCEDataText...
 │   │ │   │ │ ├TPCEData.StrPatientEds
 │   │ │   │ │ │ └GetPCEDataText...
 │   │ │   │ │ ├TPCEData.StrHealthFactors
 │   │ │   │ │ │ └GetPCEDataText...
 │   │ │   │ │ └TPCEData.StrExams
 │   │ │   │ │   └GetPCEDataText...
 │   │ │   │ ├GetVitalsFromDate
 │   │ │   │ │ ├TPCEData.IsSecondaryVisit
 │   │ │   │ │ └GetVitalsFromEncDateTime
 │   │ │   │ ├TPCEData.AddVitalData
 │   │ │   │ │ └FormatVitalForNote
 │   │ │   │ │   └ConvertVitalData
 │   │ │   │ ├CanEditPCE
 │   │ │   │ │ ├GetAskPCE
 │   │ │   │ │ └FutureEncounter
 │   │ │   │ │   └FMToday...
 │   │ │   │ ├TfrmDCSumm.ShowPCEControls
 │   │ │   │ ├TfrmDrawers.DisplayDrawers
 │   │ │   │ │ └..(rec)..
 │   │ │   │ ├ActOnDocument
 │   │ │   │ ├TPCEData.PCEForNote
 │   │ │   │ │ ├TEncounter.GetVisitStr
 │   │ │   │ │ │ └TEncounter.GetVisitCategory
 │   │ │   │ │ ├VisitStrForNote
 │   │ │   │ │ ├TPCEData.GetVisitString
 │   │ │   │ │ │ └TPCEData.VisitDateTime...
 │   │ │   │ │ ├TPCEData.CopyPCEData
 │   │ │   │ │ │ ├TPCEData.Clear
 │   │ │   │ │ │ │ ├ClearList
 │   │ │   │ │ │ │ ├TPCEProc.Clear
 │   │ │   │ │ │ │ │ └TPCEItem.Clear
 │   │ │   │ │ │ │ │   └TPCEItem.SetComment
 │   │ │   │ │ │ │ └TPCEProviderList.Clear
 │   │ │   │ │ │ │   └TPCEProviderList.GetPrimaryIdx
 │   │ │   │ │ │ ├TPCEProc.CopyProc
 │   │ │   │ │ │ │ └TPCEItem.SetComment
 │   │ │   │ │ │ ├TPCEProviderList.Assign
 │   │ │   │ │ │ └TPCEData.CopyPCEItems
 │   │ │   │ │ │   └TPCEItem.Assign
 │   │ │   │ │ │     └TPCEItem.SetComment
 │   │ │   │ │ ├TPCEData.IsSecondaryVisit
 │   │ │   │ │ ├GetLocSecondaryVisitCode
 │   │ │   │ │ ├TPCEData.Clear...
 │   │ │   │ │ ├LoadPCEDataForNote
 │   │ │   │ │ ├ListVisitTypeByLoc
 │   │ │   │ │ ├SetRPCEncLocation
 │   │ │   │ │ ├SCCValue
 │   │ │   │ │ ├TPCEProviderList.Add
 │   │ │   │ │ │ ├TPCEProviderList.GetPrimaryIdx
 │   │ │   │ │ │ ├TPCEProviderList.IndexOfProvider
 │   │ │   │ │ │ └TPCEProviderList.SetPrimaryIdx
 │   │ │   │ │ │   ├TPCEProviderList.GetPrimaryIdx
 │   │ │   │ │ │   └TPCEProviderList.SetPrimary
 │   │ │   │ │ ├AppendComment
 │   │ │   │ │ ├TPCEDiag.SetFromString
 │   │ │   │ │ │ └TPCEItem.SetFromString
 │   │ │   │ │ │   └TPCEItem.SetComment
 │   │ │   │ │ ├TPCEProc.SetFromString
 │   │ │   │ │ │ └TPCEItem.SetFromString...
 │   │ │   │ │ ├TPCEImm.SetFromString
 │   │ │   │ │ │ └TPCEItem.SetFromString...
 │   │ │   │ │ ├TPCESkin.SetFromString
 │   │ │   │ │ │ ├TPCEItem.SetFromString...
 │   │ │   │ │ │ └StrToFMDateTime
 │   │ │   │ │ ├TPCEPat.SetFromString
 │   │ │   │ │ │ └TPCEItem.SetFromString...
 │   │ │   │ │ ├TPCEHealth.SetFromString
 │   │ │   │ │ │ └TPCEItem.SetFromString...
 │   │ │   │ │ └TPCEExams.SetFromString
 │   │ │   │ │   └TPCEItem.SetFromString...
 │   │ │   │ └GetVitalsFromNote
 │   │ │   │   ├TPCEData.IsSecondaryVisit
 │   │ │   │   ├GetVitalsFromEncDateTime
 │   │ │   │   └GetVitalFromNoteIEN
 │   │ │   └NotifyOtherApps
 │   │ │     ├AppNotificationEnabled
 │   │ │     │ └TNotifyAppsThread.CreateThread
 │   │ │     └TNotifyAppsThread.ResumeIfIdle
 │   │ ├TfrmDCSumm.ShowPCEControls
 │   │ └TfrmDCSumm.lstSummsClick...
 │   ├TfrmDCSumm.GetTitleText
 │   ├TfrmDCSumm.mnuActDeleteClick...
 │   ├TfrmDCSumm.cmdChangeClick
 │   │ ├ExecuteDCSummProperties
 │   │ │ ├TfrmBase508Form.Create...
 │   │ │ ├ListDCSummTitlesShort
 │   │ │ │ └LoadDCSummTitles
 │   │ │ │   └TDCSummTitles.Create
 │   │ │ ├LoadDCUrgencies
 │   │ │ ├TfrmDCSummProperties.ShowAdmissionList
 │   │ │ │ └ListAdmitAll
 │   │ │ ├PrintNameForTitle
 │   │ │ ├StrToFMDateTime
 │   │ │ ├GetDischargeDate
 │   │ │ ├FMNow
 │   │ │ └GetTIUListItem
 │   │ ├TChanges.ReplaceSignState
 │   │ ├MakeDCSummDisplayText
 │   │ ├TChanges.ReplaceText
 │   │ ├TfrmDCSumm.GetTitleText
 │   │ └TfrmDCSumm.mnuActLoadBoilerClick
 │   │   ├TfrmDCSumm.NoSummSelected
 │   │   ├LoadBoilerPlate
 │   │   ├GetLinkedTemplate
 │   │   │ ├GetLinkedTemplateData
 │   │   │ └AddTemplate
 │   │   │   ├TTemplate.Create
 │   │   │   │ └TTemplate.ReminderDialogIEN
 │   │   │   └TTemplate.AddChild
 │   │   │     └TTemplate.GetItems
 │   │   │       └ExpandTemplate
 │   │   │         ├TTemplate.GetChildren
 │   │   │         ├GetTemplateChildren
 │   │   │         ├AddTemplate...
 │   │   │         └TTemplate.ItemIENs
 │   │   │           └TTemplate.GetItems...
 │   │   ├MakeXMLParamTIU
 │   │   │ └ExternalName
 │   │   ├AssignBoilerText
 │   │   │ └QuickCopyWith508Msg
 │   │   │   └SpeakTextInserted
 │   │   ├QueryBoilerPlate
 │   │   │ └TfrmBase508Form.Create...
 │   │   └QuickAddWith508Msg
 │   │     └SpeakTextInserted
 │   ├TPCEData.GetCPTRequired
 │   │ └TPCEData.NeededPCEData
 │   │   ├FutureEncounter...
 │   │   ├PromptForWorkload
 │   │   ├TPCEData.StandAlone
 │   │   │ └HasVisit
 │   │   ├TPCEData.GetHasCPTList
 │   │   │ └AddList
 │   │   │   └TPCEItem.HasCPTStr
 │   │   ├DataHasCPTCodes
 │   │   ├RequireExposures
 │   │   └EligbleConditions
 │   ├RequireMASVerification
 │   ├RequireRelease
 │   ├PutEditedDCSumm
 │   │ └SetText
 │   │   └InitParams
 │   ├TChanges.Remove
 │   │ ├UnlockOrder
 │   │ └UnlockDocument
 │   ├UnlockDocument
 │   ├TfrmDCSumm.SetEditingIndex
 │   └TfrmDCSumm.lstSummsClick...
 ├TfrmDCSumm.SetEditingIndex
 ├VisitStrForNote
 ├TfrmDCSumm.RemovePCEFromChanges
 │ ├VisitStrForNote
 │ └TChanges.Remove...
 ├DeleteDocument
 ├TChanges.Exist
 ├UnlockDocument
 ├TChanges.Remove...
 ├DeletePCE
 ├TfrmDCSumm.ClearEditControls
 │ ├TPCEData.Clear...
 │ └TfrmDCSumm.SetEditingIndex
 ├TfrmDCSumm.LoadSumms
 │ ├KillDocTreeObjects
 │ │ └ResetDocTreeObjectStrings
 │ ├ListSummsForTree
 │ ├CreateListItemsForDocumentTree
 │ ├TfrmDCSumm.UpdateTreeView
 │ │ └BuildDocumentTree
 │ │   ├MakeNoteDisplayText
 │ │   ├MakeConsultNoteDisplayText
 │ │   ├MakeDCSummDisplayText
 │ │   ├MakeNoteTreeObject
 │ │   │ └MakeNoteDisplayText
 │ │   ├MakeConsultsNoteTreeObject
 │ │   │ ├MakeConsultNoteDisplayText
 │ │   │ └GetConsultOrderIEN
 │ │   ├MakeDCSummTreeObject
 │ │   │ └MakeDCSummDisplayText
 │ │   ├SetTreeNodeImagesAndFormatting
 │ │   │ ├ExternalName
 │ │   │ ├TextFound
 │ │   │ └MakeBold
 │ │   └..(rec)..
 │ ├RemoveParentsWithNoChildren
 │ │ └KillDocTreeNode
 │ │   └ResetDocTreeObjectStrings
 │ └TfrmDCSumm.tvSummsChange...
 ├UpdateReminderFinish
 │ └TfrmRemDlg.UpdateButtons
 │   ├TfrmRemDlg.BackReminder
 │   │ └TfrmRemDlg.GetCurReminderList
 │   │   └TReminderDialog.GetIEN
 │   └TfrmRemDlg.NextReminder
 │     └TfrmRemDlg.GetCurReminderList...
 ├TfrmDCSumm.ShowPCEControls
 └TfrmDrawers.DisplayDrawers...

Called-By Hierarchy


                                          TfrmDCSumm.mnuActDeleteClick
                                           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.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┘     

Calls

Name Declaration Comments
ActOnDocument procedure ActOnDocument(var AuthSts: TActionRec; IEN: Integer; const ActionName: string); -
TfrmDCSumm.ClearEditControls procedure ClearEditControls; -
DeleteDocument procedure DeleteDocument(var DeleteSts: TActionRec; IEN: Integer; const Reason: string); -
DeletePCE procedure DeletePCE(const AVisitStr: string); -
TfrmDrawers.DisplayDrawers procedure DisplayDrawers(Show: Boolean); overload; -
TChanges.Exist function Exist(ItemType: Integer; const AnID: string): Boolean; -
JustifyDocumentDelete function JustifyDocumentDelete(IEN: Integer): Boolean; -
TfrmDCSumm.LoadSumms procedure LoadSumms; -
TfrmDCSumm.LockSumm function LockSumm(AnIEN: Int64): Boolean; -
MakeDCSummDisplayText function MakeDCSummDisplayText(RawText: string): string; -
TfrmDCSumm.NoSummSelected function NoSummSelected : Boolean; -
TChanges.Remove procedure Remove(ItemType: Integer; const AnID: string); -
TfrmDCSumm.RemovePCEFromChanges procedure RemovePCEFromChanges(IEN: Int64; AVisitStr: string = ''); -
TfrmDCSumm.SaveCurrentSumm procedure SaveCurrentSumm(var Saved: Boolean); -
SelectDeleteReason function SelectDeleteReason(ANote: Integer): string; -
TfrmDCSumm.SetEditingIndex procedure SetEditingIndex(const Value: Integer); -
TfrmDCSumm.ShowPCEControls procedure ShowPCEControls(ShouldShow: Boolean); -
UnlockDocument procedure UnlockDocument(IEN: Int64); -
UpdateReminderFinish procedure UpdateReminderFinish; -
VisitStrForNote function VisitStrForNote(IEN: Integer): string; -

Called-By

Name Declaration Comments
TfrmDCSumm.SaveEditedSumm procedure SaveEditedSumm(var Saved: Boolean); -


Source

1518  procedure TfrmDCSumm.mnuActDeleteClick(Sender: TObject);
1519  { delete the selected progress note & remove from the Encounter object if necessary }
1520  var
1521    DeleteSts, ActionSts: TActionRec;
1522    ReasonForDelete, AVisitStr, SavedDocID: string;
1523    Saved: boolean;
1524    SavedDocIEN: integer;
1525  begin
1526    inherited;
1527    if NoSummSelected() then Exit;
1528    ActOnDocument(ActionSts, lstSumms.ItemIEN, 'DELETE RECORD');
1529    if ShowMsgOn(not ActionSts.Success, ActionSts.Reason, TX_IN_AUTH) then Exit;
1530    ReasonForDelete := SelectDeleteReason(lstSumms.ItemIEN);
1531    if ReasonForDelete = DR_CANCEL then Exit;
1532    // suppress prompt for deletion when called from SaveEditedNote (Sender = Self)
1533    if (Sender <> Self) and (InfoBox(MakeDCSummDisplayText(lstSumms.Items[lstSumms.ItemIndex]) + TX_DEL_OK,
1534      TX_DEL_CNF, MB_YESNO or MB_DEFBUTTON2 or MB_ICONQUESTION) <> IDYES) then Exit;
1535    // do the appropriate locking
1536    if not LockSumm(lstSumms.ItemIEN) then Exit;
1537      // retraction notification message
1538    if JustifyDocumentDelete(lstSumms.ItemIEN) then
1539       InfoBox(TX_RETRACT, TX_RETRACT_CAP, MB_OK);
1540    SavedDocID := lstSumms.ItemID;
1541    SavedDocIEN := lstSumms.ItemIEN;
1542    if (EditingIndex > -1) and (not FConfirmed) and (lstSumms.ItemIndex <> EditingIndex) and (memNewSumm.GetTextLen > 0) then
1543      begin
1544        SaveCurrentSumm(Saved);
1545        if not Saved then Exit;
1546      end;
1547    EditingIndex := -1;
1548    FConfirmed := False;
1549  (*  if Saved then
1550      begin
1551        EditingIndex := -1;
1552        mnuViewClick(Self);
1553        with tvSumms do Selected := FindPieceNode(SavedDocID, U, Items.GetFirstNode);
1554     end;*)
1555    // remove the note
1556    DeleteSts.Success := True;
1557    AVisitStr := VisitStrForNote(SavedDocIEN);
1558    RemovePCEFromChanges(SavedDocIEN, AVisitStr);
1559    if (SavedDocIEN > 0) and (lstSumms.ItemIEN = SavedDocIEN) then DeleteDocument(DeleteSts, SavedDocIEN, ReasonForDelete);
1560    if not Changes.Exist(CH_SUM, SavedDocID) then UnlockDocument(SavedDocIEN);
1561    Changes.Remove(CH_SUM, SavedDocID);  // this will unlock the document if in Changes
1562    // reset the display now that the note is gone
1563    if DeleteSts.Success then
1564    begin
1565      DeletePCE(AVisitStr);  // removes PCE data if this was the only note pointing to it
1566      ClearEditControls;
1567      //ClearPtData;   WRONG - fixed in v15.10 - RV
1568      LoadSumms;
1569  (*    with tvSumms do Selected := FindPieceNode(SavedDocID, U, Items.GetFirstNode);
1570      if tvSumms.Selected <> nil then tvSummsChange(Self, tvSumms.Selected) else
1571      begin*)
1572        pnlWrite.Visible := False;
1573        pnlRead.Visible := True;
1574        UpdateReminderFinish;
1575        ShowPCEControls(False);
1576        frmDrawers.DisplayDrawers(FALSE);
1577        cmdNewSumm.Visible := TRUE;
1578        cmdPCE.Visible := FALSE;
1579        popSummMemoEncounter.Visible := cmdPCE.Visible;
1580        lblSpace1.Top := cmdNewSumm.Top - lblSpace1.Height;
1581  //    end; {if ItemIndex}
1582    end {if DeleteSts}
1583    else InfoBox(DeleteSts.Reason, TX_DEL_ERR, MB_OK or MB_ICONWARNING);
1584  end;