This filter property is used to load the collection of the encounters with the contacts linked to the diseases with the specified termset code.
object.DiagnosisTermsetCode
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISEncounterFilter interface |
string
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 Diagnosis Termset Codes can be found in
.