The number of the problem categories within the collection.
object.Count
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProblemCategories interface |
int
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)
In Profile Client v8 on User Interface Categories can be found in
or .