ISRxMedication.Contact

Description

The contact that is linked to the Rx medication.

Syntax

object.Contact

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

Return Value

ISContact

Example

Display some information about the loaded Rx medication, including the diagnosis and date of the contact linked to it.

Dim aRxMedication
Dim aContact
Dim aRxMedicationInfo  
 
Set aRxMedication = Profile.LoadRxMedication(1593)

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

set aContact = aRxMedication.Contact

aRxMedicationInfo = _
  "Rx name: " & aRxMedication.RxName & vbNewLine &_
  "Date: " & aRxMedication.Date & vbNewLine &_
  "Ordered date: " & aRxMedication.OrderedDate & vbNewLine  
if not aContact is nothing then   
  aRxMedicationInfo = aRxMedicationInfo & "Contact Diagnosis: " &_
    aContact.DiagnosisDescription & " (Date: " & aContact.Date & ")"
end if 

Profile.MsgBox(aRxMedicationInfo)   
Note:

In Profile Client v8 on User Interface Contact can be found in Clinical > Medical Record > MedChart > Related Encounters.

Version information

Added in v7.10.90