ISMedOrderItemsFilter.PosIds

Description

This filter property is used to load the medication order items by IDs of the Places of Service.

Syntax

object.PosIds

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 aPosIds                                  
Dim aPos
Dim aPatient  
Dim aOrderItemsFilter
Dim aMedOrderItems, aMedOrderItem
Dim aMedication 
Dim aProvider
Dim aMessage
Dim i  

Set aPosIds = Profile.CreateIntCollection
set aPos = Profile.LoadProvider("POS")
aPosIds.Add(aPOS.Id)
set aPos = Profile.LoadProvider("COMM")
aPosIds.Add(aPOS.Id)

set aPatient = Profile.SelectPatient
set aOrderItemsFilter = Profile.MakeMedOrderItemsFilter
aOrderItemsFilter.PatientId = aPatient.ID
aOrderItemsFilter.PosIds = aPosIds

set aMedOrderItems = Profile.LoadMedOrderItems(aOrderItemsFilter) 

aMessage = "Med Order Items Count = " & aMedOrderItems.Count & vbNewLine

for i = 0 to aMedOrderItems.Count - 1
  set aMedOrderItem = aMedOrderItems.Item(i)
  set aMedication = aMedOrderItem.Medication
  set aProvider = Profile.LoadProviderById(aMedication.ProviderID) 
   
  aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
    "Medication Name: " & aMedication.RxName & vbNewLine &_
    "Date: " & aMedication.Date & vbNewLine &_
    "Provider: " & aProvider.FullName  
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Pos Ids cannot be found, but Medication Order Items can be found in Clinical > Medical Record > MedChart.

Version information

Added in v7.10.90