ISRxMedication.RxPackageId

Description

ID of the package that includes the Rx medication.

Syntax

object.RxPackageId

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

Return Value

int

Example

Display some information about the loaded Rx medication, including ID of the package that includes it.

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

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 &_
  "Date: " & aRxMedication.Date & vbNewLine &_
  "Ordered Date: " & aRxMedication.OrderedDate & vbNewLine
if aRxMedication.RxPackageId > 0 then 
  aRxMedicationInfo = aRxMedicationInfo & "Rx Package: " &_
    aRxMedication.RxName & " (ID: " & aRxMedication.RxPackageId &_
    ")" & vbNewLine
end if
if aRxMedication.Diagnosis.Id > 0 then 
  aRxMedicationInfo = aRxMedicationInfo & "Diagnosis: " &_
    aRxMedication.Diagnosis.Description   
end if        

Profile.MsgBox(aRxMedicationInfo)  
Note: The property value is not null if the medication is prescribed from the Rx package.

In Profile Client v8 on User Interface Rx Package ID cannot be found.

Version information

Added in v7.10.90