ISProblemCategories.Count

Description

The number of the problem categories within the collection.

Syntax

object.Count

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

Return Value

int

Example

Display the number of the problem categories within the collection.

Dim aPatient
Dim aProblemList
Dim aCategories
Dim aCategory
Dim aProblems
Dim aProblem
Dim aMessage

set aPatient = Profile.SelectPatient

set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories
aMessage = aMessage & "The number of problem categories is " &_
  aCategories.Count & ":" & vbNewLine  
    
for each aCategory in aCategories
  aMessage = aMessage & "- " & aCategory.Description &_ 
    " (ID = " & aCategory.Id & ")" & vbNewLine  
  set aProblems = aCategory.Problems
  for each aProblem in aProblems
    aMessage = aMessage & "     " &_ 
      aProblem.DxDescription & " (Status = " & aProblem.Status & ")" & vbNewLine 
  next
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Categories can be found in Clinical > Problems or Clinical > Medical Record > Problems.

Version information

Added in v7.8.0