ISCareTeam.Status

Description

The status of the care team member ('Open' or 'Closed'), depending on whether the member is actively involved in the patient's care.

Syntax

object.Status

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

Return Value

TSCareTeamStatusTypes

Example

Display the status of the care team member ('Open' or 'Closed').

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)
  aMessage = aMessage &  "Team Member Role: " &_ 
    aRoleShortCode.Description & vbNewLine &_
    "Team Member Status:  " & aCareTeam.Status & vbNewLine & vbNewLine
next 
Profile.MsgBox (aMessage) 
Note:

In Profile Client v8 on User Interface Status can be found in Clinical > Care Team > Status or Clinical > Medical Record > Care Team > Status.

Version information

Added in v7.8.0