ISPrescriptionFilter.IncludeDeleted

Description

This filter property is used to load the collection of prescriptions including the deleted ones.

Syntax

object.IncludeDeleted

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. Check whether the loaded prescriptions are deleted.

Dim aPatient 
Dim aFilter
Dim aPrescriptions, aPrescription
Dim i
Dim aMessage

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePrescriptionFilter
aFilter.Patient = aPatient
aFilter.IncludeDeleted = True
set aPrescriptions = Profile.LoadPrescriptions(aFilter)

aMessage = "The number of the prescriptions for " & aPatient.SurnameFirstName &_ 
  " = " & 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 & "; is deleted: " &_ 
    aPrescription.IsDeleted & ")"  
next      

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface the deleted prescriptions cannot be found.

Version information

Added in v8.4.0