ISEncounterFilter.EncounterOIDTo

Description

This filter property is used to load the collection of the encounters till the specified encounter ID.

Syntax

object.EncounterOIDTo

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

Return Value

int

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.EncounterOIDFrom = 5810
aFilter.EncounterOIDTo = 6819
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 & (i + 1) & ") " & aEncounter.Date & vbNewLine &_
    aPatient.SurnameFirstName & vbNewLine & vbNewLine
next      

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Encounter ID can be found in Clinical > Medical Record > Encounters > Open encounter > Encounter Properties > ID.

Version information

Added in v7.8.0