This function returns the disease codes on the basis of the selected filter.
object.LoadDiseaseCodesByFilter(aFilter)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
aFilter |
In, Required | The object that defines conditions for
filtering |
Display the number of the diseases, their names and codes.
Dim aFilter
Dim aDisease
Dim aDiseases
Dim aMessage
Set aFilter = Profile.CreateDiseaseFilter
aFilter.Description = "Asthma"
set aDiseases = Profile.LoadDiseaseCodesByFilter(aFilter) 'Collection of ISDisease
aMessage = "Diseases Count: " & aDiseases.Count
for i = 0 to aDiseases.Count - 1
set aDisease = aDiseases.Item(i)
aMessage = aMessage & vbNewLine &_
aDisease.Description & " (" & aDisease.Code & ")"
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface the Code can be found in
.