ISRecallObjectiveVers.ReviewDate

Description

The date the objective version linked to the patient's care plan should be reviewed.

Syntax

object.ReviewDate

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

Return Value

DateTime

Example

Display the date the objective version linked to the patient's care plan should be reviewed.

sub main   
  Dim aPatient
  Dim aRecallPlans
  Dim aPlan
  Dim i
  Dim aObjectives
  Dim aObjective
  Dim aObjectiveOnDate
  Dim aMessage
     
  Set aPatient = Profile.SelectPatient
  set aRecallPlans = aPatient.RecallPlans
  aVersionDate = #04/04/2019 14:43#
   
  if aRecallPlans.Count = 0 then
    Profile.MsgBox("The patient has no care plans!")
    exit sub
  end if

  for each aPlan in aRecallPlans
    set aObjectives = aPlan.RecallObjectives
    aMessage = aMessage & vbNewLine & "PLAN: '" & aPlan.Description & "'" & vbNewLine 

    for i = 0 to aObjectives.Count - 1
      set aObjective = aObjectives.Item(i)
      set aObjectiveOnDate = aObjective.VersionOnDate(aVersionDate)
      aMessage = aMessage &_
        MakeObjectiveDescription("    ACTUAL OBJECTIVE VERSION: ", aObjective) &_
        MakeObjectiveDescription("    OBJECTIVE VERSION ON DATE: ", aObjectiveOnDate)
        
    next ' aObjective
  next ' aPlan
  Profile.MsgBox(aMessage)  
end sub 


function MakeObjectiveDescription(aInfo, aObjectiveInstance)
  aMessage = aInfo  
  if aObjectiveInstance is nothing then
    aMessage = aMessage & " UNASSIGNED" 
  else
    aMessage = aMessage & aObjectiveInstance.DisplayName & vbNewLine &_
      "      - Review Date: " & aObjectiveInstance.ReviewDate     
  end if
  MakeObjectiveDescription = aMessage & vbNewLine
end function  
Note:

In Profile Client v8 on User Interface Review Date can be found in Clinical > Care Plans > Text or Clinical > Care Plans > Open active objective > History > Review.

Version information

Added in v7.8.0