ISCDOTransaction.CaseID

Description

ID of case the CDO transaction is linked to.

Syntax

object.CaseID

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

Return Value

int

Example

Display some information about the CDO transaction, including the title and ID of the case the CDO transaction is linked to.

Dim aPatient
Dim aFilter 
Dim aCDOTransactions, aCDOTransaction
Dim aCase
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 &_
    "     GUID: " & aCDOTransaction.GUID & vbNewLine &_
    "     DisplayDate: " & aCDOTransaction.DisplayDate & vbNewLine &_ 
    "     Case ID: " & aCDOTransaction.CaseID & vbNewLine
    
  if aCDOTransaction.CaseID > 0 then
    set aCase = Profile.OpenCase(aCDOTransaction.CaseID)
    aMessage = aMessage & "     Case Title: " & aCase.CaseTitle & vbNewLine
  end if
next    

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Case ID cannot be found. Case can be found in Clinical > Medical Record > Results > Open the CDO transaction > Transaction > Case.

Version information

Added in v7.8.0