ID of the provider that ordered the Rx medication.
object.OrderedByID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISRxMedication interface |
int
Display some information about the loaded Rx medication, including the full name of the provider that ordered it.
Dim aRxMedication
Dim aProvider
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
set aProvider = Profile.LoadProviderById(aRxMedication.OrderedByID)
aRxMedicationInfo = _
"Rx name: " & aRxMedication.RxName & vbNewLine &_
"Date: " & aRxMedication.Date & vbNewLine &_
"Ordered date: " & aRxMedication.OrderedDate & vbNewLine &_
"Ordered By: " & aProvider.FullName & vbNewLine &_
"OID: " & aRxMedication.OID & vbNewLine
if aRxMedication.Diagnosis.Id > 0 then
aRxMedicationInfo = aRxMedicationInfo & "Diagnosis: " &_
aRxMedication.Diagnosis.Description
end if
Profile.MsgBox(aRxMedicationInfo)
In Profile Client v8 on User Interface Ordered By ID cannot be found, but Provider's name can be found in
.