ID of the package that includes the Rx medication.
object.RxPackageId
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISRxMedication interface |
int
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)
In Profile Client v8 on User Interface Rx Package ID cannot be found.