ISProviderGroupFilter.OrganisationID

Description

This filter property is used to load the provider groups by the specified ID of the organisation these groups belong to.

Syntax

object.OrganisationID

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

Return Value

int

Example

Display the number of the provider groups loaded on the basis of the selected filter, their names and codes.

Dim aFilter
Dim aOrgMembers
Dim aOrgMember
Dim aProviderGroups
Dim aProviderGroup
Dim aMessage
Dim i 

Set aFilter = Profile.CreateProviderGroupFilter

set aOrgMembers = Profile.LoadOrgMembersByNameAndSubTypeCode("Adult Mental Health", "")
if aOrgMembers.Count = 0 then
  Profile.MsgBox("There is no org members with the specified name")
  exit sub 
end if

set aOrgMember = aOrgMembers.Item(0) 

aFilter.OrganisationID = aOrgMember.Id  
set aProviderGroups = Profile.LoadProviderGroups(aFilter)   
                                                                            
aMessage = "Provider Groups Count = " & aProviderGroups.Count

for i = 0 to aProviderGroups.Count - 1
  set aProviderGroup = aProviderGroups.Items(i)
  aMessage = aMessage & vbNewLine & (i +1) & ") " & aProviderGroup.Name & " (" &_
    aProviderGroup.Code & ")"     
next      

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Organisation ID cannot be found, but Organisation can be found in Organisation > People & Places > People and Places > Edit > Owner.

Version information

Added in v7.8.0