ISRxInstructionParams.Instruction

Description

The instruction for the Rx medication which will be used in the form that calls the macro with this parameter.

Syntax

object.Instruction

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

Return Value

ISRxInstruction

Example

Fill in the Instruction Params form.

sub main()

  Dim aInstruction
  
  Set aInstruction = InstructionParams.Instruction 

  aInstruction.ProviderID = Profile.LoadProvider("MM").ID
  if InstructionParams.Patient.Sex = "M" then
    aInstruction.Dosage = 2
    aInstruction.Dosage2 = 3
  else
    aInstruction.Dosage = 3
    aInstruction.Dosage2 = 4
  end if 
  aInstruction.StartDate = Now
  aInstruction.ExpectedEndDate = Now + 5
  InstructionParams.MedData.Date = Now
  
end sub 
Note: The object with the ISRxInstructionParams interface cannot be created explicitly. It is available only in the context of the macro that runs when the form for creating a new instruction is being opened.

In Profile Client v8 on User Interface Instruction Params form can be found in Clinical > Medical Record > MedChart > New > Formulary > Select the medication > Instruction Params form.

Version information

Added in v7.10.90