ISCDOTransaction.ProviderID

Description

ID of the provider the CDO transaction is assigned to.

Syntax

object.ProviderID

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

Return Value

int

Example

Display some information about the CDO transactions, including the codes and IDs of the providers the CDO transactions are assigned to.

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

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 &_
    "     ID: " & aCDOTransaction.CreatedOn & vbNewLine &_
    "     CID: " & aCDOTransaction.CreatedOn & vbNewLine &_
    "     Pos Code: " & aCDOTransaction.PosCode & vbNewLine &_
    "     Privacy: " & aCDOTransaction.Privacy & vbNewLine &_ 
    "     Recorder: " & aCDOTransaction.Recorder & vbNewLine &_ 
    "     Provider Id: " & aCDOTransaction.ProviderID & vbNewLine
  if aCDOTransaction.ProviderID > 0 then
    set aProv = Profile.LoadProviderById(aCDOTransaction.ProviderID)
    aMessage = aMessage &_ 
      "     Provider Code: " & aProv.Code & vbNewLine 
  end if      
next    

Profile.MsgBox(aMessage)
Note:

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

Version information

Added in v7.8.0