Procedure

TfrmDCSumm.mnuActSignClick

Module

fDCSumm

Last Modified

7/15/2014 3:26:36 PM

Comments

Sign the currently selected Summ, save first if necessary

Visibility

Public/Published

Owner

TfrmDCSumm

Declaration

procedure mnuActSignClick(Sender: TObject);

Calls Hierarchy


TfrmDCSumm.mnuActSignClick
 ├TfrmDCSumm.NoSummSelected
 ├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.NoSummSelected
 │   │ ├ActOnDocument
 │   │ ├SelectDeleteReason
 │   │ │ ├JustifyDocumentDelete
 │   │ │ └TfrmBase508Form.Create
 │   │ │   ├TfrmBase508Form.UpdateAccessibilityActions
 │   │ │   ├UnfocusableControlEnter
 │   │ │   └AdjustControls
 │   │ │     ├TfrmBase508Form.ModifyUnfocusableControl
 │   │ │     └..(rec)..
 │   │ ├MakeDCSummDisplayText
 │   │ ├TfrmDCSumm.LockSumm
 │   │ │ ├TChanges.Exist
 │   │ │ └LockDocument
 │   │ ├JustifyDocumentDelete
 │   │ ├TfrmDCSumm.SaveCurrentSumm...
 │   │ ├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...
 ├NoteHasText
 ├LastSaveClean
 ├CosignDocument
 ├TfrmDCSumm.LockSumm...
 ├ActOnDCDocument
 ├IsOK2Sign
 │ ├TPCEData.GetVisitString...
 │ ├VisitStrForNote
 │ ├TPCEData.OK2SignNote
 │ │ ├CanEditPCE...
 │ │ ├IsNonCountClinic
 │ │ ├IsCancelOrNoShow
 │ │ ├GetAskPCE
 │ │ ├TPCEData.NeededPCEData...
 │ │ ├TPCEProviderList.GetPrimaryIdx
 │ │ ├NoPrimaryPCEProvider
 │ │ │ ├TPCEProviderList.GetPrimaryIdx
 │ │ │ ├SetDefaultProvider
 │ │ │ │ ├InvalidPCEProviderTxt
 │ │ │ │ │ ├CheckActivePerson
 │ │ │ │ │ └IsUserAProvider
 │ │ │ │ ├TPCEData.PersonClassDate
 │ │ │ │ │ └FMToday...
 │ │ │ │ ├TEncounter.GetProviderName
 │ │ │ │ │ └TEncounter.UpdateText
 │ │ │ │ │   └GetEncounterText
 │ │ │ │ ├DefaultProvider
 │ │ │ │ ├CheckActivePerson
 │ │ │ │ ├TIUSiteParams
 │ │ │ │ └TPCEProviderList.AddProvider
 │ │ │ │   └TPCEProviderList.Add...
 │ │ │ ├TfrmBase508Form.Create...
 │ │ │ ├TPCEProviderList.PendingIEN
 │ │ │ ├TPCEProviderList.PendingName
 │ │ │ ├TfrmPCEProvider.AskUser
 │ │ │ │ └TfrmPCEProvider.btnSelectClick
 │ │ │ └TPCEProviderList.AddProvider...
 │ │ ├TPCEProviderList.PendingIEN
 │ │ ├TPCEProviderList.IndexOfProvider
 │ │ ├TPCEProviderList.AddProvider...
 │ │ ├TPCEProviderList.PendingName
 │ │ ├Add
 │ │ ├ForcePCEEntry
 │ │ ├MissingProviderInfo
 │ │ │ ├TPCEData.Empty
 │ │ │ │ └TPCEProc.Empty
 │ │ │ ├TEncounter.NeedVisit
 │ │ │ ├TPCEData.SetEncUseCurr
 │ │ │ │ ├TEncounter.GetVisitCategory
 │ │ │ │ ├TPCEProviderList.SetPrimaryIdx...
 │ │ │ │ └SetRPCEncLocation
 │ │ │ └NoPrimaryPCEProvider...
 │ │ ├UpdatePCE
 │ │ │ ├TfrmBase508Form.Create...
 │ │ │ ├TPCEData.Empty...
 │ │ │ ├TEncounter.NeedVisit
 │ │ │ ├TPCEData.SetEncUseCurr...
 │ │ │ ├ExternalName
 │ │ │ ├TPCEData.VisitDateTime...
 │ │ │ ├TPCEProviderList.Assign
 │ │ │ ├SetDefaultProvider...
 │ │ │ ├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...
 │ │ │ │ │         └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...
 │ │ │ │ ├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...
 │ │ │ │     └TPCEProc.Clear...
 │ │ │ └TfrmEncounterFrame.TabControlChange
 │ │ │   ├TfrmEncounterFrame.PageIDToTab
 │ │ │   ├TfrmEncounterFrame.PageIDToForm
 │ │ │   └TfrmEncounterFrame.SwitchToPage
 │ │ │     └TfrmPCEBase.DisplayPage
 │ │ └TPCEData.Save
 │ │   ├TPCEData.IsSecondaryVisit
 │ │   ├GetLocSecondaryVisitCode
 │ │   ├GetVisitIEN
 │ │   ├TPCEDiag.DelimitedStr2
 │ │   ├TPCEProviderList.PCEProvider
 │ │   │ ├Check
 │ │   │ │ └TPCEProviderList.IndexOfProvider
 │ │   │ └TPCEProviderList.PrimaryIEN...
 │ │   ├TPCEDiag.DelimitedStr
 │ │   ├TPCEProc.DelimitedStr
 │ │   │ └ModifierCode
 │ │   │   └ModifierIdx...
 │ │   ├TPCEItem.DelimitedStr2
 │ │   ├TPCEImm.DelimitedStr
 │ │   ├TPCESkin.DelimitedStr
 │ │   ├TPCEPat.DelimitedStr
 │ │   ├TPCEHealth.DelimitedStr
 │ │   ├TPCEExams.DelimitedStr
 │ │   ├SavePCEData
 │ │   ├TPCEProviderList.GetProviderData
 │ │   ├TPCEProviderList.Delete
 │ │   ├TPCEProc.Clear...
 │ │   ├TPCEData.StrVisitType...
 │ │   ├TChanges.Add
 │ │   │ └TChangeItem.Create
 │ │   ├TPCEData.StrProcedures...
 │ │   ├TPCEData.StrDiagnoses...
 │ │   ├TPCEData.StrImmunizations...
 │ │   ├TPCEData.StrSkinTests...
 │ │   ├TPCEData.StrPatientEds...
 │ │   ├TPCEData.StrHealthFactors...
 │ │   └TPCEData.StrExams...
 │ ├TPCEData.Create
 │ └TPCEData.PCEForNote...
 ├TPCEData.CopyPCEData...
 ├TfrmDCSumm.lstSummsClick...
 ├AuthorSignedDocument
 ├TfrmDCSumm.GetTitleText
 ├SignatureForItem
 │ └TfrmBase508Form.Create...
 ├MakeDCSummDisplayText
 ├SignDCDocument
 ├TfrmDCSumm.RemovePCEFromChanges...
 ├TChanges.Exist
 ├TChanges.Remove...
 ├UnlockDocument
 ├TfrmDCSumm.LoadSumms...
 ├MakeDCSummTreeObject...
 ├SetTreeNodeImagesAndFormatting...
 ├TfrmDCSumm.SetEditingIndex
 └TfrmDCSumm.tvSummsChange...

Calls

Name Declaration Comments
ActOnDCDocument procedure ActOnDCDocument(var AuthSts: TActionRec; IEN: Integer; const ActionName: string); -
AuthorSignedDocument function AuthorSignedDocument(IEN: Integer): boolean; -
TPCEData.CopyPCEData procedure CopyPCEData(Dest: TPCEData); -
CosignDocument function CosignDocument(IEN: Integer): Boolean; -
TChanges.Exist function Exist(ItemType: Integer; const AnID: string): Boolean; -
TfrmDCSumm.GetTitleText function GetTitleText(AnIndex: Integer): string; -
IsOK2Sign function IsOK2Sign(const PCEData: TPCEData; const IEN: integer) :boolean; -
LastSaveClean function LastSaveClean(IEN: Int64): Boolean; -
TfrmDCSumm.LoadSumms procedure LoadSumms; -
TfrmDCSumm.LockSumm function LockSumm(AnIEN: Int64): Boolean; -
TfrmDCSumm.lstSummsClick procedure lstSummsClick(Sender: TObject); -
MakeDCSummDisplayText function MakeDCSummDisplayText(RawText: string): string; -
MakeDCSummTreeObject function MakeDCSummTreeObject(x: string): PDocTreeObject; -
TfrmDCSumm.NoSummSelected function NoSummSelected : Boolean; -
NoteHasText function NoteHasText(NoteIEN: integer): 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); -
TfrmDCSumm.SetEditingIndex procedure SetEditingIndex(const Value: Integer); -
SetTreeNodeImagesAndFormatting procedure SetTreeNodeImagesAndFormatting(Node: TORTreeNode; CurrentContext: TTIUContext; TabIndex: integer); -
SignatureForItem procedure SignatureForItem(FontSize: Integer; const AText, ACaption: string; var ESCode: string); -
SignDCDocument procedure SignDCDocument(var SignSts: TActionRec; IEN: Integer; const ESCode: string); -
TfrmDCSumm.tvSummsChange procedure tvSummsChange(Sender: TObject; Node: TTreeNode); -
UnlockDocument procedure UnlockDocument(IEN: Int64); -


Source

1630  procedure TfrmDCSumm.mnuActSignClick(Sender: TObject);
1631  { sign the currently selected Summ, save first if necessary }
1632  const
1633    SIG_COSIGN = 'COSIGNATURE';
1634    SIG_SIGN   = 'SIGNATURE';
1635  var
1636    Saved, SummUnlocked: Boolean;
1637    ActionType, ESCode, SignTitle: string;
1638    ActionSts, SignSts: TActionRec;
1639    OK: boolean;
1640    SavedDocID, tmpItem: string;
1641    EditingID: string;                                         //v22.12 - RV
1642    tmpNode: TTreeNode;
1643  begin
1644    inherited;
1645    if NoSummSelected() then Exit;
1646  (*  if lstSumms.ItemIndex = EditingIndex then                //v22.12 - RV
1647    begin                                                      //v22.12 - RV
1648      SaveCurrentSumm(Saved);                                  //v22.12 - RV
1649      if (not Saved) or FDeleted then Exit;                    //v22.12 - RV
1650    end                                                        //v22.12 - RV
1651    else if EditingIndex > -1 then                             //v22.12 - RV
1652      tmpItem := lstSumms.Items[EditingIndex];                 //v22.12 - RV
1653    SavedDocID := lstSumms.ItemID;*)                           //v22.12 - RV
1654    SavedDocID := lstSumms.ItemID;                             //v22.12 - RV
1655    FLastSummID := SavedDocID;                                 //v22.12 - RV
1656    if lstSumms.ItemIndex = EditingIndex then                  //v22.12 - RV
1657    begin                                                      //v22.12 - RV
1658      SaveCurrentSumm(Saved);                                  //v22.12 - RV
1659      if (not Saved) or FDeleted then Exit;                    //v22.12 - RV
1660    end                                                        //v22.12 - RV
1661    else if EditingIndex > -1 then                             //v22.12 - RV
1662    begin                                                      //v22.12 - RV
1663      tmpItem := lstSumms.Items[EditingIndex];                 //v22.12 - RV
1664      EditingID := Piece(tmpItem, U, 1);                       //v22.12 - RV
1665    end;                                                       //v22.12 - RV
1666    if not NoteHasText(lstSumms.ItemIEN) then
1667      begin
1668        InfoBox(TX_EMPTY_SUMM1, TC_EMPTY_SUMM, MB_OK or MB_ICONERROR);
1669        Exit;
1670      end;
1671    if not LastSaveClean(lstSumms.ItemIEN) and
1672      (InfoBox(TX_ABSAVE, TC_ABSAVE, MB_YESNO or MB_DEFBUTTON2 or MB_ICONWARNING) <> IDYES) then Exit;
1673    if CosignDocument(lstSumms.ItemIEN) then
1674    begin
1675      SignTitle := TX_COSIGN;
1676      ActionType := SIG_COSIGN;
1677    end else
1678    begin
1679      SignTitle := TX_SIGN;
1680      ActionType := SIG_SIGN;
1681    end;
1682    if not LockSumm(lstSumms.ItemIEN) then Exit;
1683    // no exits after things are locked
1684    SummUnlocked := False;
1685    ActOnDCDocument(ActionSts, lstSumms.ItemIEN, ActionType);
1686    if ActionSts.Success then
1687    begin
1688      OK := IsOK2Sign(uPCEShow, lstSumms.ItemIEN);
1689      if frmFrame.Closing then exit;
1690      if(uPCEShow.Updated) then
1691      begin
1692        uPCEShow.CopyPCEData(uPCEEdit);
1693        uPCEShow.Updated := FALSE;
1694        lstSummsClick(Self);
1695      end;
1696      if not AuthorSignedDocument(lstSumms.ItemIEN) then
1697      begin
1698        if (InfoBox(TX_AUTH_SIGNED +
1699            GetTitleText(lstSumms.ItemIndex),TX_SIGN ,MB_YESNO)= ID_NO) then exit;
1700      end;
1701      if(OK) then
1702      begin                                       
1703        with lstSumms do SignatureForItem(Font.Size, MakeDCSummDisplayText(Items[ItemIndex]), SignTitle, ESCode);
1704        if Length(ESCode) > 0 then
1705        begin
1706          SignDCDocument(SignSts, lstSumms.ItemIEN, ESCode);
1707          RemovePCEFromChanges(lstSumms.ItemIEN);
1708          SummUnlocked := Changes.Exist(CH_SUM, lstSumms.ItemID);
1709          Changes.Remove(CH_SUM, lstSumms.ItemID);
1710          if SignSts.Success
1711            then lstSummsClick(Self)
1712            else InfoBox(SignSts.Reason, TX_SIGN_ERR, MB_OK);
1713        end  {if Length(ESCode)}
1714        else
1715          SummUnlocked := Changes.Exist(CH_SUM, lstSumms.ItemID);
1716      end;
1717    end
1718    else InfoBox(ActionSts.Reason, TX_IN_AUTH, MB_OK);
1719    if not SummUnlocked then UnlockDocument(lstSumms.ItemIEN);
1720    //SetViewContext(FCurrentContext);  //v22.12 - RV
1721    LoadSumms;                          //v22.12 - RV
1722    //if EditingIndex > -1 then         //v22.12 - RV
1723    if (EditingID <> '') then           //v22.12 - RV
1724      begin
1725        lstSumms.Items.Insert(0, tmpItem);
1726        tmpNode := tvSumms.Items.AddObjectFirst(tvSumms.Items.GetFirstNode, 'Summary being edited',
1727                   MakeDCSummTreeObject('EDIT^Summary being edited^^^^^^^^^^^%^0'));
1728        TORTreeNode(tmpNode).StringData := 'EDIT^Summary being edited^^^^^^^^^^^%^0';
1729        tmpNode.ImageIndex := IMG_TOP_LEVEL;
1730        tmpNode := tvSumms.Items.AddChildObjectFirst(tmpNode, MakeDCSummDisplayText(tmpItem), MakeDCSummTreeObject(tmpItem));
1731        TORTreeNode(tmpNode).StringData := tmpItem;
1732        SetTreeNodeImagesAndFormatting(TORTreeNode(tmpNode), FCurrentContext, CT_DCSUMM);
1733        EditingIndex := lstSumms.SelectByID(EditingID);                 //v22.12 - RV
1734      end;
1735    //with tvSumms do Selected := FindPieceNode(SavedDocID, U, Items.GetFirstNode);  //v22.12 - RV
1736    with tvSumms do                                                                  //v22.12 - RV
1737    begin                                                                            //v22.12 - RV
1738      Selected := FindPieceNode(FLastSummID, U, Items.GetFirstNode);                 //v22.12 - RV
1739      if Selected <> nil then tvSummsChange(Self, Selected);                         //v22.12 - RV
1740    end;                                                                             //v22.12 - RV
1741  end;