ISEncounter.TypeID

Description

ID of the short code of type 'Contacts'.

Syntax

object.TypeID

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

Return Value

int

Example

Display the number of the encounters and some information about them, including their types.

Dim aPatient        
Dim aFilter  
Dim aEncounters, aEncounter
Dim i
Dim aMessage
Dim aType

Set aPatient = Profile.SelectPatient 
set aFilter = Profile.CreateEncounterFilter
aFilter.PatientId = aPatient.ID                 
set aEncounters = aPatient.LoadEncounters(aFilter)
                                                                 
aMessage = "Encounters Count = " & aEncounters.Count

for i = 0 to aEncounters.Count - 1
  set aEncounter = aEncounters.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ". " &_
    "Auto Created: " & aEncounter.AutoCreated & vbNewLine &_                             
    "Block From Patient Access: " & aEncounter.BlockFromPatientAccess & vbNewLine &_ 
    "Child Protection: " & aEncounter.ChildProtection & vbNewLine &_
    "Date: " & aEncounter.Date & vbNewLine &_                            
    "Date Created: " & aEncounter.DateCreated & vbNewLine &_
    "Date Altered: " & aEncounter.DateAltered & vbNewLine &_
    "Date Ended: " & aEncounter.DateEnded & vbNewLine &_
    "Date Time: " & aEncounter.DateTime & vbNewLine &_
    "Duration: " & aEncounter.Duration & vbNewLine &_
    "Pos Code: " & aEncounter.PosCode & vbNewLine &_
    "Provider Code: " & aEncounter.ProviderCode & vbNewLine &_
    "Service Code: " & aEncounter.ServiceCode & vbNewLine &_
    "Version Count: " & aEncounter.VersionCount & vbNewLine               

  if aEncounter.TypeID > 0 then    
    set aType = Profile.LoadShortCode(aEncounter.TypeID)
    aMessage = aMessage &  "Type: " & aType.Description & vbNewLine
  end if        
next  
                                               
Profile.MsgBox(aMessage)     
Note:

In Profile Client v8 on User Interface Type ID cannot be found, but Type can be found in Clinical > Medical Record > New Encounter > Actions > Encounter > Type.

Version information

Added in v7.8.0