ISCDOForms.Item

Description

Each of the CDO forms within the collection.

Syntax

object.Item(aIndex)

Part Attribute Type Description
object Required
The object always implements the ISCDOForms interface
aIndex In, Required
int
The index of the CDO form
Restriction: This property is readonly.

Return Value

ISCDOForm

Example

Display the number of the CDO forms of the selected patient and their names.

Dim aPatient
Dim aCDOFormUtils
Dim aCDOForms, aCDOForm
Dim i
Dim aMessage   

Set aPatient = Profile.SelectPatient
set aCDOFormUtils = Profile.CDOFormUtils
' TSCdoFormTemplateTypes_Base + TSCdoFormTemplateTypes_CEF + 
' TSCdoFormTemplateTypes_List + TSCdoFormTemplateTypes_HTML
set aCDOForms = aCDOFormUtils.LoadPatientForms(aPatient, 1 + 2 + 4 + 8) 
aMessage = "CDO Forms (Count = " & aCDOForms.Count & "):"
for i = 0 to aCDOForms.Count - 1
  set aCDOForm = aCDOForms.Item(i) 
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & aCDOForm.Name
next 
Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface CDO Forms can be found in Clinical > Review Forms.

Version information

Added in v7.8.0