ISRxMedication.DiscontinuedBy

Description

The provider that discontinued the Rx medication.

Syntax

object.DiscontinuedBy

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

Return Value

ISProvider

Example

Display the short information about the loaded Rx medication, including the name of the provider that discontinued it.

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

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

aRxMedicationInfo = _
  "Rx name: " & aRxMedication.RxName & vbNewLine &_
  "Is Discontinued: " & aRxMedication.IsDiscontinued & vbNewLine &_   
  "Discontinue Date: " & aRxMedication.DiscontinueDate & vbNewLine &_ 
  "Discontinue Comment: " & aRxMedication.DiscontinueComment & vbNewLine
if not aRxMedication.DiscontinueReason is nothing then
  aRxMedicationInfo = aRxMedicationInfo & "Discontinue Reason: " &_
    aRxMedication.DiscontinueReason.Description & vbNewLine 
end if        
if not aRxMedication.DiscontinuedBy is nothing then
  aRxMedicationInfo = aRxMedicationInfo & "Discontinued By: " &_
    aRxMedication.DiscontinuedBy.FullName 
end if       

Profile.MsgBox(aRxMedicationInfo)  
Note:

In Profile Client v8 on User Interface Discontinuer Name can be found in Clinical > Medical Record > MedChart > Discontinuer Name.

Version information

Added in v7.10.100