ISCDOTransaction.DocumentCategory

Description

The category for the CDO transaction that refers to "Documents".

Syntax

object.DocumentCategory

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

Return Value

ISShortCode

Example

Display some information about the CDO transactions, including their categories that refer to "Documents".

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

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateCDOTransFilter
aFilter.TransactionTypes = 2047  
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 &_
    "     ID: " & aCDOTransaction.ID & vbNewLine &_
    "     CID: " & aCDOTransaction.CID & vbNewLine &_
    "     Pos Code: " & aCDOTransaction.PosCode & vbNewLine &_
    "     Privacy: " & aCDOTransaction.Privacy & vbNewLine &_ 
    "     Recorder: " & aCDOTransaction.Recorder & vbNewLine &_ 
    "     Authorizer: " & aCDOTransaction.Authorizer & vbNewLine &_ 
    "     Type ID: " & aCDOTransaction.TypeID & vbNewLine
  set aDocumentCategory = aCDOTransaction.DocumentCategory   
  if not aDocumentCategory is nothing then 
    aMessage = aMessage &_
      "     Document Category: " & aDocumentCategory.Description & vbNewLine
  else
    aMessage = aMessage &_
      "     Document Category: none" & vbNewLine      
  end if      
next    

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Document Category can be found in Clinical > Medical Record > Results > Right-click on the transaction > Set Properties > Properties > Category field.

Version information

Added in v8.3.0