ISPrescriptionFilter.FilterByLastSendTimestamp

Description

This filter property is used to load the collection of the prescriptions created or updated after the last HealthOne export.

Syntax

object.FilterByLastSendTimestamp

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

Return Value

bool

Example

Display the number of the prescriptions loaded on the basis of the selected filter, their start dates and the names of the Rx medications.

Dim aFilter
Dim aPrescriptions, aPrescription
Dim i
Dim aMessage

Set aFilter = Profile.CreatePrescriptionFilter
aFilter.FilterByLastSendTimestamp = True
set aPrescriptions = Profile.LoadPrescriptions(aFilter)

aMessage = "Prescriptions Count = " & aPrescriptions.Count & vbNewLine
for i = 0 to aPrescriptions.Count - 1
  set aPrescription = aPrescriptions.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & aPrescription.RxName &_ 
    " (start date: " & aPrescription.StartDate & ")"  
next      

Profile.MsgBox(aMessage)      
Note:

Version information

Added in v8.2.0