ISEncounterFilter.PosID

Description

This filter property contains ID of the place of service used to load the collection of the encounters.

Syntax

object.PosID

Part Attribute Type Description
object Required
The object always implements the ISEncounterFilter interface
Restriction: This property is readonly.

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 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)
Note: In Profile Client v8 on User Interface POS ID cannot be found.

POS can be found in Clinical > Medical Record > Encounters > Open encounter > Encounter Properties > POS field.

Version information

Added in v7.8.0