ISMedOrderItemsFilter.AuthorId

Description

This filter property is used to load the medication order items by ID of the provider who ordered them.

Syntax

object.AuthorId

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

Return Value

int

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 aProvider
Dim aFilter
Dim aMedOrderItems, aMedOrderItem
Dim aMessage
Dim i  

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

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Author Id cannot be found, but Author can be found in Clinical > Medical Record > MedChart > Author.

Version information

Added in v7.10.90