This filter property is used to load the medication order items by their statuses.
object.StatusColl
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISMedOrderItemsFilter interface |
Display the number of the medication order items loaded on the basis of the selected filter and some information about them.
Dim aStatusColl
Dim aPatient
Dim aOrderItemsFilter
Dim aMedOrderItems, aMedOrderItem
Dim aMedication
Dim aMessage
Dim i
Set aStatusColl = Profile.CreateIntCollection
aStatusColl.Add(0) 'mstPending
aStatusColl.Add(1) 'mstNormal
aStatusColl.Add(2) 'mstExpiring
aStatusColl.Add(3) 'mstExpired
aStatusColl.Add(4) 'mstDiscontinued
set aPatient = Profile.SelectPatient
set aOrderItemsFilter = Profile.MakeMedOrderItemsFilter
aOrderItemsFilter.PatientId = aPatient.ID
aOrderItemsFilter.StatusColl = aStatusColl
set aMedOrderItems = Profile.LoadMedOrderItems(aOrderItemsFilter)
aMessage = "Medication Order Items Count = " & aMedOrderItems.Count & vbNewLine
for i = 0 to aMedOrderItems.Count - 1
set aMedOrderItem = aMedOrderItems.Item(i)
set aMedication = aMedOrderItem.Medication
aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
"Medication Name: " & aMedication.RxName & vbNewLine &_
"Date: " & aMedication.Date & vbNewLine &_
"Status: " & aMedication.MedicationStatus
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Status can be found in
.