This filter property contains ID of the place of service used to load the collection of the encounters.
object.PosID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISEncounterFilter interface |
int
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.PosCode = "POS"
set aEncounters = Profile.LoadEncounters(aFilter)
aMessage = "The number of Encounters for the POS with ID = " &_
aFilter.PosID & " is " & 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 &_
" POS Code: " & aEncounter.PosCode & vbNewLine &_
" POS ID: " & aEncounter.PosID & vbNewLine
next
Profile.MsgBox(aMessage)
POS can be found in
.