ISCareTeam.OriginatingPartitionID

Description

ID of the originating partition linked to the care team member.

Syntax

object.OriginatingPartitionID

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

Return Value

int

Example

Display ID of the originating partition linked to the care team member.

Dim aPatient
Dim aCareTeamFilter
Dim aCareTeams, aCareTeam
Dim i
Dim aProvider
Dim aRoleShortCode
Dim aMessage

Set aPatient = Profile.SelectPatient
set aCareTeamFilter = Profile.CreateCareTeamFilter

aCareTeamFilter.Patient = aPatient.Id

set aCareTeams = Profile.LoadCareTeams(aCareTeamFilter)

aMessage = "Team Member Count = " & aCareTeams.Count & vbNewLine & vbNewLine
for i = 0 to aCareTeams.Count - 1
  set aCareTeam = aCareTeams.Item(i)
  
  set aRoleShortCode = Profile.LoadShortCode(aCareTeam.RoleID)  
  aMessage = aMessage & "PROVIDER'S ROLE: " & aRoleShortCode.Description & vbNewLine
    
  if aCareTeam.PersonId <= 0 then  
    aMessage = aMessage & "Provider: UNASSIGNED"
  else
    set aProvider = Profile.LoadProviderById(aCareTeam.PersonId)  
    aMessage = aMessage & "PROVIDER'S NAME: " & aProvider.FullName
  end if      
   
  aMessage = aMessage & vbNewLine & "PARTITION ID: " &_
    aCareTeam.OriginatingPartitionID & vbNewLine & vbNewLine
next 
Profile.MsgBox (aMessage)  
Note:

In Profile Client v8 on User Interface Originating Partition ID can be found in InSync > MSO > Patients > Alter Patient > Care Team > Edit > General > Partition field.

Version information

Added in v7.8.0