ISPatientLookupParam.IsUseSoundex

Description

This lookup parameter property is used to load the collection of patients with the surnames sounded like the specified ones (according to Soundex rules).

Syntax

object.IsUseSoundex

Part Attribute Type Description
object Required
The object always implements the ISPatientLookupParam interface

Return Value

bool

Example

Display the number of the patients loaded on the basis of the selected Lookup Parameter and their full names.

Dim aParam
Dim aList
Dim aPatientLookupItem 
Dim aLookupType
Dim aMessage 

Set aParam = Profile.MakePatientLookupParam 'ISPatientLookupParam
aParam.IsUseSoundex = True 
aParam.Value = "Auckland"
 
aLookupType = 23 'patient lookup 
set aList = Profile.LoadLookupList2(aLookupType, aParam)  'ISPatientLookupItem collection

aMessage = "Patients Count = " & aList.Count & vbNewLine & vbNewLine  

for each aPatientLookupItem in aList 
  aMessage = aMessage & "Name: " & aPatientLookupItem.Name & vbNewLine
next
  
Profile.MsgBox(aMessage)    
Note: 1) This lookup parameter property cannot be used without ISPatientLookupParam.Value. 2) Soundex is a set of "sounds like" rules for people's names. Soundex pays more attention to consonants than vowels, and treats similar-sounding consonants as interchangeable (such as M and N, or T and TH).

In Profile Client v8 on User Interface the Sounds Like checkbox can be checked in Patient > Alter Patient > Select Patient view.

Version information

Added in v7.8.0