ISEncountersPresentManager.SetEncounterList

Description

This function loads the list of patient's encounters displayed in the rich edit.

Syntax

object.SetEncounterList aList

Part Attribute Type Description
object Required
The object always implements the ISEncountersPresentManager interface
aList In, Required
The list of encounters

Example

Display the patient's encounters in the rich edit.

sub main
  Dim aManager
  Dim aFilter
  Dim aEncounters, aEncounter
  Dim aList   

  Set aManager = Profile.CreateEncountersPresentManager(Controls_("reClinicalNotes"))
  set aFilter = Profile.CreateEncounterFilter
  aFilter.EncounterDateFrom = #01/01/2000#
  aFilter.EncounterDateTo = Now
  aFilter.CumulativeOnly = False
  aFilter.LastCount = 0
  set aEncounters = Form.Patient.LoadEncounters(aFilter)

  set aList = Profile.CreateList
  for each aEncounter in  aEncounters
    if aEncounter.BlockFromPatientAccess then aList.Add(aEncounter)
  next 
  
  aManager.SetEncounterList(aList)
  aManager.Display

end sub  
Note: This macro should be executed in any event handler of the form control.

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