ISEncounterFilter.PosCode

Description

This filter property is used to load the collection of the encounters with the specified code of the place of service.

Syntax

object.PosCode

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

Return Value

string

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
next      

Profile.MsgBox(aMessage)
Note:

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

Version information

Added in v7.8.0