ID of the patient the care team member is linked to (when the care team provider type is 'Patient').
object.Patient
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISCareTeam interface |
int
Display ID of the patient the care team member is linked to (when the care team provider type is 'Patient').
Dim aPatient
Dim aCareTeamFilter
Dim aCareTeams, aCareTeam
Dim i
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 & 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 patient linked to the care team member: " &_
aCareTeam.Patient & vbNewLine & vbNewLine
next
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface Patient ID cannot be found.