ISProfile.LoadRxCollection

Description

This function returns Rx collection on the basis of the selected filter.

Syntax

object.LoadRxCollection(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

ISRxCollection

Returns Rx collection on the basis of the selected filter.

Example

Display the number of Rx items within the collection loaded on the basis of the selected filter and the short information about them.

Dim aFilter
Dim aRx
Dim aRxCollection
Dim i
Dim aMessage

Set aFilter = Profile.CreateRxFilter
aFilter.RxName = "Pendine"
set aRxCollection = Profile.LoadRxCollection(aFilter)

aMessage = "Rx Collection Count = " & aRxCollection.Count &_
  vbNewLine & vbNewLine & "#  Name" & vbTab & vbTab & "As String"

for i = 0 to aRxCollection.Count - 1
  set aRx = aRxCollection.Item(i)
  aMessage = aMessage & vbNewLine & (i+1) & ") " & aRx.Name &_
    vbTab & aRx.AsString  
next      

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Rx Collection can be found in Maintain > Formulary > Rx, in Clinical > Medical Record > New Encounter > Scripts > Rx or in Clinical > New Encounter > Scripts > Rx.

See also

Version information

Added in v7.8.0