ISProfile.LoadRxMedication

Description

This function returns the Rx medications by the specified ID.

Syntax

object.LoadRxMedication(aId)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aId In, Required
int
ID of the Rx medication

Return Value

ISRxMedication

Returns the Rx medications by the specified ID.

Example

Display the name of the Rx medication and the information about it.

Dim aRxMedication
Dim aRxMedicationInfo  
 
Set aRxMedication = Profile.LoadRxMedication(1571)

if aRxMedication is nothing then 
  Profile.MsgBox("There is no Rx Medication with the specified ID")
  exit sub
else
  aRxMedicationInfo = _
    "Rx name: " & aRxMedication.RxName & vbNewLine &_
    "Date: " & aRxMedication.Date & vbNewLine &_
    "Ordered date: " & aRxMedication.OrderedDate & vbNewLine &_  
    "OID: " & aRxMedication.OID & vbNewLine &_   
    "Diagnosis: " & aRxMedication.Diagnosis.Description & vbNewLine &_
    "Diagnosis ID: " & aRxMedication.DiagnosisID & vbNewLine &_
    "Notes: " & aRxMedication.Notes    
end if
  
Profile.MsgBox(aRxMedicationInfo) 
Note:

In Profile Client v8 on User Interface Rx Medication can be found in Clinical > Medical Record > Med Chart.

Version information

Added in v7.10.100