This filter property is used to load the collection of the encounters sorted by the specified rule.
object.SortMode
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISEncounterFilter interface |
Display the number of the encounters loaded on the basis of the selected filter and some information about them.
Dim aPatient
Dim aFilter
Dim aEncounters, aEncounter
Dim i
Dim aMessage
set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateEncounterFilter
aFilter.PatientId = aPatient.Id
aFilter.SortMode = 1 'TSLoadEncountersSortMode.ForceSortByDTOccur
set aEncounters = Profile.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) & ") " & aEncounter.Date & vbTab & " " & aEncounter.Time & vbTab &_
aEncounter.Id & vbTab & aEncounter.TypeCode
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Sort Mode cannot be found.