ISApprovalForm.FormId

Description

ID of the form attached to the approval.

Syntax

object.FormId

Part Attribute Type Description
object Required
The object always implements the ISApprovalForm interface

Return Value

int

Example

Display the number of the approvals loaded on the basis of the selected filter, some information about them, including the forms attached to the approvals and their IDs.

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 the patient " &_
    Profile.LoadPatient(aApproval.PatientId).SurnameFirstName &_
    " was added on " & aApproval.DateTimeAdded 
  if not aApproval.Form is nothing then
    aMessage = aMessage & vbNewLine & "    -Form: " &_
      aApproval.Form.Name & " (ID: " & aApproval.Form.ID & ")" & vbNewLine
  end if       
next         

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Form ID cannot be found, but Form can be found in Patient > Alter Patient > Approvals > Attachments > Form or in Financial > Approvals > Approvals > Attachments > Form.

Version information

Added in v7.8.0