ISRxGroup.State

Description

The state of the Rx group.

Normal 0
Discontinued 1
Incomplete 2
Hidden 3

Syntax

object.State

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

Return Value

int

Example

Display the short information about the loaded Rx groups, including their state.

Dim aRxCollection
Dim aRxGroup
Dim i
Dim aMessage

Set aRxCollection = Profile.LoadRxGroupByName("Penicillins")

aMessage = "Rx Groups Count = " & aRxCollection.Count &_
  vbNewLine & vbNewLine & "#  Name" & vbTab & vbTab & "Code" &_
  vbTab & vbTab & "As String" & vbTab & vbTab & "State" 

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

Profile.MsgBox(aMessage)    
Note:

In Profile Client v8 on User Interface State cannot be found, but Rx groups 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