ISRxMedication.RxAsSingleLine

Description

This function returns the string description of the Rx medication which can contain only one line.

Syntax

object.RxAsSingleLine()

Part Attribute Type Description
object Required
The object always implements the ISRxMedication interface

Return Value

string

Returns the string description of the Rx medication which can contain only one line.

Example

Display some information about the loaded Rx medication, including its string description which can contain only one line.

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

if aRxMedication is nothing then 
  Profile.MsgBox("There is no Rx Medication with the specified ID")
  exit sub
end if

aRxMedicationInfo = _
  "Rx as Single Line: " & aRxMedication.RxAsSingleLine & vbNewLine &_
  "Date: " & aRxMedication.Date & vbNewLine &_
  "Ordered date: " & aRxMedication.OrderedDate & vbNewLine 
if not aRxMedication.Route is nothing then
  aRxMedicationInfo = aRxMedicationInfo &_
    "Route: " & aRxMedication.Route.Description & vbNewLine
end if  
if aRxMedication.Diagnosis.Id > 0 then 
  aRxMedicationInfo = aRxMedicationInfo & "Diagnosis: " &_
    aRxMedication.Diagnosis.Description   
end if        

Profile.MsgBox(aRxMedicationInfo)  
Note:

In Profile Client v8 on User Interface Rx As Single Line cannot be found, but Rx Medications can be found in Clinical > Medical Record > MedChart.

Version information

Added in v7.10.90