ISFamilyProblems.Count

Description

The number of the family problems within the collection.

Syntax

object.Count

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

Return Value

int

Example

Display the number of the family problems loaded on the basis of the selected filter and their Dx Description.

Dim aPatient
Dim aFilter
Dim aFamilyProblems, aFamilyProblem
Dim aMessage


Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateFamilyProblemFilter
aFilter.PatientID = aPatient.ID
set aFamilyProblems = aFilter.Load

aMessage = "Family Problems Count: "  & aFamilyProblems.Count

for i = 0 to aFamilyProblems.Count - 1 
  set aFamilyProblem = aFamilyProblems.Items(i)
  aMessage = aMessage & vbNewLine & aFamilyProblem.DxDescription
next 

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Family Problems can be found in Clinical > Clinical Details > Family > Social History.

Version information

Added in v8.4.0