ISCareTeam.DateFrom

Description

The date the team member is valid from.

Syntax

object.DateFrom

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

Return Value

DateTime

Example

Display the date the team member is valid from.

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
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 &_
    "     The team member is valid from " & aCareTeam.DateFrom & vbNewLine 
next 
Profile.MsgBox (aMessage)   
Note:

In Profile Client v8 on User Interface Date From can be found in Clinical > Care Team > Edit Care Team > General > Date From field or Clinical > Medical Record > Care Team > Edit Care Team > General > Date From field.

Version information

Added in v7.8.0