ISOrderAction.OrderItem

Description

The order item that was actioned.

Syntax

object.OrderItem

Part Attribute Type Description
object Required
The object always implements the ISOrderAction interface
Restriction: This property is readonly.

Return Value

ISOrderItem

Example

Display the number of the order actions and some information about them, including the creation dates of the order items that were actioned.

Dim aPatient
Dim aPatientID
Dim aOrderType
Dim aDateFrom, aDateTo
Dim aOrderActions, aOrderAction
Dim aMessage
Dim i      

Set aPatient = Profile.SelectPatient
aPatientID = aPatient.ID
aOrderType = 1 'Pathology 
aDateFrom = #01/01/2000#
aDateTo = #01/01/2020#
set aOrderActions = Profile.LoadOrderActions(aPatientID, aOrderType, aDateFrom, aDateTo)

aMessage = "Order Actions Count: " & aOrderActions.Count & vbNewLine

for i = 0 to aOrderActions.Count - 1
  set aOrderAction = aOrderActions.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ". " &_
    "Description: " & aOrderAction.Description & vbNewLine &_
    "    Patient Full Name: " & aOrderAction.PatientFullName & vbNewLine &_ 
    "    Order Date: " & aOrderAction.OrderDate & vbNewLine &_  
    "    Actioned on: " & aOrderAction.ActionedOn & vbNewLine &_ 
    "    Contact Happen On: " & aOrderAction.ContactHappenOn & vbNewLine &_
    "    Order Item: " & aOrderAction.OrderItem.CreationDate & vbNewLine &_ 
    "    OID: " & aOrderAction.OID & vbNewLine &_
    "    Case ID: "  & aOrderAction.CaseID & vbNewLine &_ 
    "    Invoice OID: "  & aOrderAction.InvoiceOID & vbNewLine &_ 
    "    Provider: " & Profile.LoadProviderById(aOrderAction.ProviderID).FullName & vbNewLine &_
    "    Status: " & aOrderAction.Status & vbNewLine
next   

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Order Item can be found in Clinical > Medical Record > Past Orders > Select the order > Edit the related encounter > New Encounter.

Version information

Added in v8.2.0