Returns True if the patient group is allowed for the current user that depends on the selected privacy role.
object.IsAllowedForCurrentUser()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfilePatientGroup interface |
bool
Display IsAllowedForCurrentUser user.
Dim aFilter
Dim aPatientGroups
Dim aPatientGroup
Dim aMessage
Set aFilter = Profile.CreateProfilePatientGroupFilter
aFilter.PatientGroupType = 3 ' spgtAll
set aPatientGroups = Profile.LoadProfilePatientGroupsByFilter(aFilter)
aMessage = "Patient Groups Count = " & aPatientGroups.Count
for i = 0 to aPatientGroups.Count - 1
set aPatientGroup = aPatientGroups.Item(i)
aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
"Allowed for current user: " & aPatientGroup.IsAllowedForCurrentUser
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Privacy can be found in
.