ISProfile.LoadPrescriptions

Description

This function returns the prescriptions loaded on the basis of the selected filter.

Syntax

object.LoadPrescriptions(aFilter)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aFilter In, Required
The object that defines conditions for filtering

Return Value

ISPrescriptions

Returns the prescriptions loaded on the basis of the selected filter.

Example

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

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

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 & ", start date:  " &_
    aPrescription.StartDate 
next      

Profile.MsgBox(aMessage) 
Note:

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

See also

Version information

Added in v7.8.0