ISRx.IsGroup

Description

Returns True if the Rx item belongs to a group.

Syntax

object.IsGroup

Part Attribute Type Description
object Required
The object always implements the ISRx interface
Restriction: This property is readonly.

Return Value

bool

Example

Display IsGroup for the Rx items.

Dim aFilter
Dim aRx, 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" & vbTab &_
  vbTab & vbTab & "State" 
  
for i = 0 to aRxCollection.Count - 1
  set aRx = aRxCollection.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & aRx.Name &_
    vbTab & aRx.AsString & vbTab & aRx.IsGroup  
next      

Profile.MsgBox(aMessage)   
Note:

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

Version information

Added in v7.10.120
Added in v8.1.0