ISEncounterFilter.UseFilterByResolved

Description

If this filter property is set to 'True', the filtering is performed based on the property ISEncounterFilter.Resolved.

Syntax

object.UseFilterByResolved

Part Attribute Type Description
object Required
The object always implements the ISEncounterFilter interface

Return Value

bool

Example

Display the number of the encounters loaded on the basis of the selected filter and some information about them.

Dim aPatient
Dim aFilter
Dim aEncounter, aEncounters 
Dim i
Dim aMessage

set aPatient = Profile.SelectPatient 
set aFilter = Profile.CreateEncounterFilter 
aFilter.PatientId = aPatient.ID 
aFilter.Resolved = True
aFilter.UseFilterByResolved = True
set aEncounters = aPatient.LoadEncounters(aFilter)

aMessage = "Encounters Count = " & aEncounters.Count & vbNewLine

for i = 0 to aEncounters.Count - 1
  set aEncounter = aEncounters.Item(i)
 
  aMessage = aMessage & vbNewLine &_
    (i + 1) & ") The Patient Name: " & aPatient.SurnameFirstName & vbNewLine &_
    "     The Encounter Date: " & aEncounter.Date & vbNewLine &_
    "     The Encounter is Resolved: " & aEncounter.Resolved & vbNewLine & vbNewLine
next      

Profile.MsgBox(aMessage)
Note: Encounters are 'Resolved' if all their contacts have the 'Resolved' status.

In Profile Client v8 on User Interface Use Filter By Resolved cannot be found.

Version information

Added in v7.8.0