ISProfile.CreatePrescriptionFilter

Description

This function creates the filter for loading prescriptions.

Syntax

object.CreatePrescriptionFilter()

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

Return Value

ISPrescriptionFilter

Returns the filter for loading prescriptions.

Example

Display the number of the prescriptions loaded on the basis of the selected filter and their Rx names.

Dim aPatient
Dim aFilter
Dim aPrescriptions
Dim aPrescription
Dim aMessage

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

aMessage = "Prescriptions Count = " & aPrescriptions.Count
for i = 0 to aPrescriptions.Count - 1
  set aPrescription = aPrescriptions.Item(i)
  aMessage = aMessage & vbNewLine & aPrescription.RxName
next      

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Prescriptions can be found in Clinical > Medical Record > Prescriptions.

Version information

Added in v7.8.0