ISRxPackage.State

Description

The state of the Rx package.

Normal 0
Discontinued 1
Incomplete 2
Hidden 3

Syntax

object.State

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

Return Value

int

Example

Display the short information about the Rx packages loaded on the basis of the selected filter, including their states.

Dim aFilter
Dim aRxCollection
Dim aRxPackage
Dim i
Dim aMessage

Set aFilter = Profile.CreateRxFilter
aFilter.RxName = "Pendine"
aFilter.IncludePreparations = False
aFilter.IncludePackages = True
aFilter.IncludeGroups = False
aFilter.IncludeChemicals = False
aFilter.RxNameSearchMode = 1 'rnsmStartsWith
set aRxCollection = Profile.LoadRxCollection(aFilter)

aMessage = "Rx Packages Count = " & aRxCollection.Count &_
  vbNewLine & vbNewLine & "#  Name" & vbTab & vbTab & vbTab &_
  vbTab & "State"

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

Profile.MsgBox(aMessage)  
Note:

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