ISCDOTransaction.Observations

Description

The root HRC of the CDO transaction.

Syntax

object.Observations( [aChildrenAccessOption = 0])

Part Attribute Type Description
object Required
The object always implements the ISCDOTransaction interface
aChildrenAccessOption Optional
Default value is 0
This parameter defines the conditions of the observation loading
Restriction: This property is readonly.

Return Value

ISHRC

Example

Display some information about the CDO transactions, including the codes and names of their root HRCs.

Dim aPatient
Dim aFilter 
Dim aCDOTransactions, aCDOTransaction
Dim aCDOObservation
Dim aMessage
Dim i

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateCDOTransFilter
aFilter.PatientId = aPatient.Id
set aCDOTransactions = Profile.LoadCDOTransactions(aFilter)

aMessage = "CDO Transactions Count = " & aCDOTransactions.Count & vbNewLine
for i = 0 to aCDOTransactions.Count - 1
  set aCDOTransaction = aCDOTransactions.Item(i)
  
  aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
    "Created on: " & aCDOTransaction.CreatedOn & vbNewLine &_ 
    "     Code: " & aCDOTransaction.Code & vbNewLine &_
    "     ID: " & aCDOTransaction.ID & vbNewLine 

  set aCDOObservation = aCDOTransaction.Observations(0)
  if not aCDOObservation is nothing then
    aMessage = aMessage & "     Root HRC: " & vbNewLine &_
      "           Code: " & aCDOObservation.Code & vbNewLine &_
      "           Name: " & aCDOObservation.Name & vbNewLine      
  end if
next    

Profile.MsgBox(aMessage) 
Note:

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

Version information

Added in v7.8.0