ISPatientRecallPlanVers.SnapshotDate

Description

The snapshot of the care plan version at a specific point in time.

Syntax

object.SnapshotDate

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

Return Value

DateTime

Example

Display the date and time the snapshot of the care plan version was shown.

sub main()
   Dim aPatient, aRecallVisits, aMessage
     
   set aPatient = Profile.SelectPatient
   set aRecallPlans = aPatient.RecallPlans
   
  aOnDate = #03/22/2019 11:11:11# 
  aMessage = GetPlanCollectionInfo(aRecallPlans, aOnDate)

   Profile.MsgBox(aMessage)
end sub


function GetPlanCollectionInfo(aRecallPlans, aOnDate)
  info = ""
  for each aPlan in aRecallPlans
      set aPlanOnDate = aPlan.VersionOnDate(aOnDate)
      if aPlanOnDate is nothing then    
         info = info & vbNewLine & " PLAN: '" & aPlan.Description &_
           "' -- Plan ID = " & aPlan.Id &  "  -  No Version on this date"
      else            
        info = info & vbNewLine & " PLAN: '" &  aPlan.Description &_
           "'  (Plan ID =  " & aPlan.Id  & ");  --  Version on date:  '" &_
           aPlanOnDate.Description & "' -- PlanOnDate ID = " & aPlanOnDate.Id &_
           "; -- Snapshot Date and Time = " & aPlanOnDate.SnapshotDate 
      end if    
  next   
  GetPlanCollectionInfo = info
end function  
Note:

In Profile Client v8 on User Interface Snapshot Date cannot be found.

Version information

Added in v7.8.0