ISCareTeam.PayerId

Description

ID of the payer when the care team provider type is 'Payer'.

Syntax

object.PayerId

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

Return Value

int

Example

Display ID of the payer when the care team provider type is 'Payer'.

Dim aPatient
Dim aCareTeamFilter
Dim aCareTeams, aCareTeam
Dim i
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)
  if aRoleShortCode is nothing then
    aMessage = aMessage & vbNewLine & "Role not assigned!"
  end if
  aMessage = aMessage &  "Team Member Role: " &_ 
    aRoleShortCode.Description & vbNewLine &_
    "Payer ID:  " & aCareTeam.PayerId & vbNewLine & vbNewLine
next 
Profile.MsgBox (aMessage)  
Note:

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

Version information

Added in v7.8.0