Procedure

TfrmDCSumm.SaveEditedSumm

Module

fDCSumm

Last Modified

7/15/2014 3:26:36 PM

Comments

Validates fields and sends the updated Summ to the server

Visibility

Private

Owner

TfrmDCSumm

Declaration

procedure SaveEditedSumm(var Saved: Boolean);

Calls Hierarchy


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.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.SetEditingIndex
 │ ├VisitStrForNote
 │ ├TfrmDCSumm.RemovePCEFromChanges
 │ │ ├VisitStrForNote
 │ │ └TChanges.Remove
 │ │   ├UnlockOrder
 │ │   └UnlockDocument
 │ ├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...
 ├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...
 ├UnlockDocument
 ├TfrmDCSumm.SetEditingIndex
 └TfrmDCSumm.lstSummsClick...

Called-By Hierarchy


                                           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.SaveEditedSumm...┘ │   
                                      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
TfrmDCSumm.cmdChangeClick procedure cmdChangeClick(Sender: TObject); -
TPCEData.GetCPTRequired function GetCPTRequired: Boolean; -
TfrmDCSumm.GetTitleText function GetTitleText(AnIndex: Integer): string; -
TfrmDCSumm.lstSummsClick procedure lstSummsClick(Sender: TObject); -
TfrmDCSumm.mnuActDeleteClick procedure mnuActDeleteClick(Sender: TObject); -
PutEditedDCSumm procedure PutEditedDCSumm(var UpdatedDoc: TCreatedDoc; const DCSummRec: TDCSummRec; NoteIEN: Integer); -
TChanges.Remove procedure Remove(ItemType: Integer; const AnID: string); -
RequireMASVerification function RequireMASVerification(ANote, AType: Integer): Boolean; -
RequireRelease function RequireRelease(ANote, AType: Integer): Boolean; -
TfrmDCSumm.SetEditingIndex procedure SetEditingIndex(const Value: Integer); -
TfrmDCSumm.tvSummsChange procedure tvSummsChange(Sender: TObject; Node: TTreeNode); -
UnlockDocument procedure UnlockDocument(IEN: Int64); -

Called-By

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


Source

1000  procedure TfrmDCSumm.SaveEditedSumm(var Saved: Boolean);
1001  { validates fields and sends the updated Summ to the server }
1002  var
1003    UpdatedSumm: TCreatedDoc;
1004    x: string;
1005  begin
1006    Saved := False;
1007    if (memNewSumm.GetTextLen = 0) or (not ContainsVisibleChar(memNewSumm.Text)) then
1008    begin
1009      lstSumms.ItemIndex := EditingIndex;
1010      x := lstSumms.ItemID;
1011      uChanging := True;
1012      tvSumms.Selected := tvSumms.FindPieceNode(x, 1, U, tvSumms.Items.GetFirstNode);
1013      uChanging := False;
1014      tvSummsChange(Self, tvSumms.Selected);
1015      if FSilent or
1016         ((not FSilent) and
1017        (InfoBox(GetTitleText(EditingIndex) + TX_EMPTY_SUMM, TC_EMPTY_SUMM, MB_YESNO) = IDYES))
1018      then
1019      begin
1020        FConfirmed := True;
1021        mnuActDeleteClick(Self);
1022        Saved := True;
1023        FDeleted := True;
1024      end
1025      else
1026        FConfirmed := False;
1027      Exit;
1028    end;
1029    //ExpandTabsFilter(memNewSumm.Lines, TAB_STOP_CHARS);
1030    with FEditDCSumm do
1031      begin
1032        if (Attending = 0) and (not FSilent) then
1033          begin
1034            InfoBox(TX_MISSING_FIELDS, TC_MISSING_FIELDS,MB_OK);
1035            cmdChangeClick(mnuActSave);
1036            Exit;
1037          end;
1038        NeedCPT            := uPCEEdit.CPTRequired;     {*RAB*}
1039        Lines              := memNewSumm.Lines;
1040        if RequireMASVerification(lstSumms.GetIEN(EditingIndex), TYP_DC_SUMM) then
1041           Status := TIU_ST_UNVER;
1042        (*if (User.DUZ <> Dictator) and (User.DUZ <> Attending) and*)   //ALL USERS??
1043        if RequireRelease(lstSumms.GetIEN(EditingIndex), TYP_DC_SUMM) then
1044          begin
1045            if not FSilent then
1046              begin
1047                if InfoBox(TX_RELEASE, TC_RELEASE, MB_YESNO) = IDNO then
1048                  Status := TIU_ST_UNREL;
1049              end
1050            else          // always save as unreleased on timeout
1051              Status := TIU_ST_UNREL;
1052          end;
1053      end;
1054    timAutoSave.Enabled := False;
1055    try
1056      PutEditedDCSumm(UpdatedSumm, FEditDCSumm, lstSumms.GetIEN(EditingIndex));
1057    finally
1058      timAutoSave.Enabled := True;
1059    end;
1060    if UpdatedSumm.IEN > 0 then
1061    begin
1062      if (FEditDCSumm.Status in [TIU_ST_UNREL, TIU_ST_UNVER]) then
1063        begin
1064          Changes.Remove(CH_SUM, IntToStr(UpdatedSumm.IEN)); // DON'T REPROMPT ON PATIENT CHANGE
1065          UnlockDocument(UpdatedSumm.IEN);                   // Unlock only if UNRELEASED or UNVERIFIED
1066        end;
1067      // otherwise, there's no unlocking here since the note is still in Changes after a save
1068      if lstSumms.ItemIndex = EditingIndex then
1069      begin
1070        EditingIndex := -1;
1071        lstSummsClick(Self);
1072      end;
1073      EditingIndex := -1; // make sure EditingIndex reset even if not viewing edited note
1074      Saved := True;
1075      FChanged := False;
1076    end else
1077    begin
1078      if not FSilent then
1079        InfoBox(TX_SAVE_ERROR1 + UpdatedSumm.ErrorText + TX_SAVE_ERROR2, TC_SAVE_ERROR, MB_OK or MB_ICONWARNING);
1080    end;
1081  end;