ISPatient.GetEncounterCount

Description

This function returns the number of the patient's encounters on the basis of the selected filter.

Syntax

object.GetEncounterCount(aFilter)

Part Attribute Type Description
object Required
The object always implements the ISPatient interface
aFilter In, Required
The object that defines conditions for filtering

Return Value

int

Returns the number of the patient's encounters.

Example

Display the number of the patient's encounters on the basis of the patient's ID.

Dim aPatient  
Dim aEncounterCount
Dim aFilter

Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateEncounterFilter
aFilter.PatientId = aPatient.Id
aEncounterCount = aPatient.GetEncounterCount(aFilter)

Profile.MsgBox (aEncounterCount)   
Note:

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

See also

Version information

Added in v7.8.0