This function returns the encounters loaded on the basis of the selected filter.
object.LoadEncounters(
[oFilter])
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
oFilter |
In, Optional | The object that defines conditions for filtering
|
Display the number of the encounters loaded on the basis of the selected filter and their types.
Dim aPatient
Dim oFilter
Dim aEncounters
Dim aEncounter
Dim aMessage
Set aPatient = Profile.SelectPatient
set oFilter = Profile.CreateEncounterFilter
oFilter.PatientID = aPatient.ID
set aEncounters = Profile.LoadEncounters(oFilter)
aMessage = "Encounters Count = " & aEncounters.Count
for i = 0 to aEncounters.Count - 1
set aEncounter = aEncounters.Item(i)
aMessage = aMessage & vbNewLine & "The type of the encounter is " &_
aEncounter.TypeDescription
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Encounters can be found in
.oFilter
modified in
v7.8.0