ID of the provider that last printed the Rx medication order.
object.LastPrintedProviderId
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 last printed the medication order.
Dim aRxMedication
Dim aRxMedicationInfo
Dim aProvider
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.LastPrintedProviderId)
aRxMedicationInfo = _
"Rx name: " & aRxMedication.RxName & vbNewLine &_
"Date: " & aRxMedication.Date & vbNewLine &_
"Ordered date: " & aRxMedication.OrderedDate & vbNewLine &_
"Last Printed: " & aRxMedication.LastPrintedDateTime & vbNewLine
if aRxMedication.LastPrintedProviderId > 0 then
aRxMedicationInfo = aRxMedicationInfo & "Last Printed Provider: " &_
aProvider.FullName
end if
Profile.MsgBox(aRxMedicationInfo)
In Profile Client v8 on User Interface Last Printed Provider ID cannot be found, but Rx medications can be found in
.