ISRxGroup.Code

Description

The code of the Rx group.

Syntax

object.Code

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

Return Value

string

Example

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

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 & "OID" 

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.OID  
next

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Code 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