Returns True if the disease code is preferred.
object.IsPreferred
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISDisease interface |
bool
Display IsPreferred for the disease codes loaded on the basis of the selected filter.
Dim aFilter
Dim aDiseases, aDisease
Dim i
Dim aMessage
Set aFilter = Profile.CreateDiseaseFilter
aFilter.Description = "Asthma"
set aDiseases = Profile.LoadDiseaseCodesByFilter(aFilter)
aMessage = "Diseases Count = " & aDiseases.Count
for i = 0 to aDiseases.Count - 1
set aDisease = aDiseases.Item(i)
aMessage = aMessage & vbNewLine & (i + 1) & ") Code: " & aDisease.Code &_
"; Description: " & aDisease.Description & " (Preferred: " &_
aDisease.IsPreferred & ")"
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface the Preferred checkbox can be checked in
.