ISApproval.BodyPartID

Description

ID of the short code of type 'Body Parts'.

Syntax

object.BodyPartID

Part Attribute Type Description
object Required
The object always implements the ISApproval 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 body parts where the problem occurs.

Dim aPatient
Dim aFilter
Dim aApproval
Dim aApprovals
Dim aMessage
Dim aShortCode
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 created on " & aApproval.Date 
  if aApproval.BodyPartID <> 0 then 
    set aShortCode = Profile.LoadShortCode(aApproval.BodyPartID)
    aMessage = aMessage & vbNewLine & "Body part: " & aShortCode.Description &_
      " (" & aShortCode.Code & ", ID: " & aShortCode.ID & ")" 
  end if 
next      

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface ID cannot be found, but Body Part can be found in Patient > Alter Patient > Approvals > Open selected approval > Body Part or in Financial > Approvals > Approvals > Open selected approval > Body Part.

Version information

Added in v7.8.0