ID of PPPU. On the User Interface ID cannot be found, but PPPU can be found in Patient/Alter Patient/Approvals/Open selected approval/Provider or in Financial/Approvals/Approvals/Open selected approval/Provider.
object.PPPUId
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISApproval interface |
int
Display the number of the approvals loaded on the basis of the selected filter, some information about them, including PPPU.
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 & (i + 1) & ") The approval for " &_
aPatient.SurnameFirstName & " was created on " & aApproval.Date
if aApproval.PPPUId <> 0 then
set aPPPU = Profile.LoadProviderById(aApproval.PPPUId)
aMessage = aMessage & vbNewLine & "Provider: " & aPPPU.FullName
else
aMessage = aMessage & vbNewLine & "Provider is not assigned"
end if
next
Profile.MsgBox(aMessage)