ISMedOrderItemsFilter.OnlyCurrent

Description

This filter property is used to load only current medication order items.

Syntax

object.OnlyCurrent

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

Return Value

bool

Example

Display the number of the medication order items loaded on the basis of the selected filter and some information about them.

Dim aPatient
Dim aFilter
Dim aMedOrderItems, aMedOrderItem
Dim aMessage
Dim i  

Set aPatient = Profile.SelectPatient
set aFilter = Profile.MakeMedOrderItemsFilter
aFilter.PatientId = aPatient.ID
aFilter.OnlyCurrent = 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)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
    "Medication Name: " & aMedOrderItem.Medication.RxName & vbNewLine &_
    "URL: " & aMedOrderItem.URL & vbNewLine       
next 

Profile.MsgBox(aMessage)  
Note: Current medication order items include the items with the "Expiring", "Expired", "Normal" and "Pending" statuses.

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

Version information

Added in v7.10.90