ISCDOTransaction.IsDeleted

Description

Returns True if the CDO transaction was deleted.

Syntax

object.IsDeleted

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

Return Value

bool

Example

Display IsDeleted for the CDO transaction.

sub main()
  Dim aPatient
  Dim aFilter
  Dim aCDOTransactions, aCDOTransaction
  Dim i 
  Dim aMessage
 
  Set aPatient = Profile.SelectPatient
  set aFilter = Profile.CreateCDOTransFilter
  aFilter.PatientId = aPatient.Id
  aFilter.TransactionTypes = 1  'tsotweEncounters 
  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 & "BEFORE DELETING:" & GetCDOTransactionInfo(aCDOTransaction)
  
    aCDOTransaction.Delete
    aMessage = aMessage & vbNewLine & vbNewLine &_
      "AFTER DELETING:" & GetCDOTransactionInfo(aCDOTransaction)
  next
 
  Profile.MsgBox (aMessage)
end sub

function GetCDOTransactionInfo(aCDOTransaction)
  Dim aMessage

  aMessage = vbNewLine &_ 
    "The transaction created on " & aCDOTransaction.CreatedOn &_
    " is deleted: " & aCDOTransaction.IsDeleted
    
  GetCDOTransactionInfo = aMessage
end function   
Note:

In Profile Client v8 on User Interface CDO transactions can be found and deleted in Clinical > Medical Record > Results.

Version information

Added in v7.9.1