This filter property is used to load the collection of the encounters with the contacts linked to the diseases with any descendent concept for the specified concept.
object.IncludeDescendents
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISEncounterFilter interface |
bool
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)
In Profile Client v8 on User Interface Encounter Descendents can be found in
.