ISCareTeam.AddedByID

Description

ID of the provider who created the record.

Syntax

object.AddedByID

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

Return Value

int

Example

Display ID of the provider who created the record.

Dim aPatient
Dim aCareTeamFilter
Dim aCareTeams
Dim aCareTeam
Dim aProvider
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
for i = 0 to aCareTeams.Count - 1
  set aCareTeam = aCareTeams.Item(i)
  
  if aCareTeam.PersonId <= 0 then  
    aMessage = aMessage & "Provider: UNASSIGNED"
  else
    set aProvider = Profile.LoadProviderById(aCareTeam.PersonId)  
    aMessage = aMessage & "Provider: " & aProvider.FullName
  end if      
   
  aMessage = aMessage & vbNewLine &_
    " ID of the provider who created the record: " & aCareTeam.AddedByID  
    
  aMessage = aMessage & vbNewLine 
next 
 
Profile.MsgBox (aMessage) 
Note:

In Profile Client v8 on User Interface Added By ID cannot be found.

Version information

Added in v7.8.0