ISMedOrderItemsFilter.StatusColl

Description

This filter property is used to load the medication order items by their statuses.

Syntax

object.StatusColl

Part Attribute Type Description
object Required
The object always implements the ISMedOrderItemsFilter interface

Return Value

ISIntCollection

Example

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)    
Note:

In Profile Client v8 on User Interface Status can be found in Clinical > Medical Record > MedChart > Status.

Version information

Added in v7.10.90