ISEncounterFilter.DiagnosisConceptCode

Description

This filter property is used to load the collection of the encounters with the contacts linked to the diseases with the specified concept code.

Syntax

object.DiagnosisConceptCode

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 aEncounter, aEncounters
Dim aContact, aContacts  
Dim i, j
Dim aMessage

set aPatient = Profile.SelectPatient 
set aFilter = Profile.CreateEncounterFilter 
aFilter.PatientId = aPatient.ID 
aFilter.DiagnosisConceptCode = "H33.."
aFilter.DiagnosisTermsetCode = "Read"
aFilter.IncludeDescendents = True
set aEncounters = aPatient.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) & ") Patient Name: " & aPatient.SurnameFirstName & vbNewLine 
     
  set aContacts = aEncounter.Contacts   
  for j = 0 to aContacts.Count - 1
    set aContact = aContacts.Item(j)
    aMessage = aMessage & "     *Diagnosis: " & aContact.DiagnosisDescription &_
      " (" & aContact.DiagnosisCode & ")" & vbNewLine       
  next 'j    
next 'i     

Profile.MsgBox(aMessage)
Note: This filter property should be used with ISEncounterFilter.DiagnosisTermsetCode.

In Profile Client v8 on User Interface Diagnosis Concept Codes can be found in Maintain > Disease Codes > Edit > Concept.

Version information

Added in v7.8.0