The short code of the form attached to the approval.
object.ShortCodeFormCode
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISApproval interface |
string
Display the number of the approvals loaded on the basis of the selected filter, some information about them, including the short codes of the attached forms.
Dim aPatient
Dim aFilter
Dim aApproval
Dim aApprovals
Dim aMessage
Dim i
Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateApprovalsFilter
aFilter.Patient = aPatient
set aApprovals = Profile.LoadApprovals(aFilter)
aMessage = "Approvals Count = " & aApprovals.Count
for i = 0 to aApprovals.Count - 1
set aApproval = aApprovals.Item(i)
aMessage = aMessage & vbNewLine & "The approval for " & aPatient.SurnameFirstName &_
" was added on " & aApproval.DateTimeAdded
if aApproval.ShortCodeFormId <> 0 then
aMessage = aMessage & vbNewLine & " - The linked form is '" &_
Profile.LoadShortCodeByCodeType(aApproval.ShortCodeFormCode, 11).Description & "'"
end if
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Short Code can be found in
.