The reference to the medication order item.
object.URL
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISMedOrderItem interface |
string
Display the number of the medication order items and some information about them, including the references to them.
Dim aPatient
Dim aFilter
Dim aMedOrderItems, aMedOrderItem
Dim aMessage
Dim i
Set aFilter = Profile.MakeMedOrderItemsFilter
aFilter.ProviderID = Profile.LoadProvider("MM").ID
aFilter.OnlyPNRIrregular = False
aFilter.OnlyRegular = False
aFilter.OnlyDiscontinued = False
set aMedOrderItems = Profile.LoadMedOrderItems(aFilter)
aMessage = "Medication Order Items Count = " & aMedOrderItems.Count
for i = 0 to aMedOrderItems.Count - 1
set aMedOrderItem = aMedOrderItems.Item(i)
set aPatient = Profile.LoadPatient(aMedOrderItem.PatientId)
aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
"Medication Name: " & aMedOrderItem.Medication.RxName & vbNewLine &_
"Date: " & aMedOrderItem.Medication.Date & vbNewLine &_
"Patient: " & aPatient.SurnameFirstName & vbNewLine &_
"URL: " & aMedOrderItem.URL & vbNewLine
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface URL cannot be found, but Medication Order Items can be found in
.