ISPatientRecallVisit.Role

Description

The privacy role associated with the patient's intervention.

Syntax

object.Role

Part Attribute Type Description
object Required
The object always implements the ISPatientRecallVisit interface
Restriction: This property is readonly.

Return Value

ISRole

Example

Display the privacy role associated with the patient's intervention.

sub main()
   Dim aPatient, aRecallPlans, aMessage
     
   set aPatient = Profile.SelectPatient
   set aRecallPlans = aPatient.RecallPlans
   
   for each aPlan in aRecallPlans
     aMessage = aMessage & GetVisitCollectionInfo(aPlan.Visits)
   next

  Profile.MsgBox(aMessage)
end sub

function GetVisitCollectionInfo(aVisits)
 
  for each aVisit in aVisits
    set aRole = aVisit.Role
    if aRole  is nothing then
    info = info & vbNewLine & " For the intervention '" & aVisit.Description &_
      "' - There are no roles!"
      else
    info = info & vbNewLine & "The privacy role for the intervention '" &_
    aVisit.Description & "' is " & aRole.RoleName
      end if         
  next
  GetVisitCollectionInfo = info &  vbNewLine
end function  
Note:

In Profile Client v8 on User Interface Role can be found in Clinical > Medical Record > Care Plans > Open active object(s) > General > Privacy field.

Version information

Added in v7.8.0