ISPatientLookupItem.NationalNum

Description

The national numbers of the patients who were loaded on the basis of the selected Lookup Parameter.

Syntax

object.NationalNum

Part Attribute Type Description
object Required
The object always implements the ISPatientLookupItem interface
Restriction: This property is readonly.

Return Value

string

Example

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

Dim aParam
Dim aList
Dim aPatientLookupItem
Dim aLookupType  
Dim aMessage 

Set aParam = Profile.MakePatientLookupParam 'ISPatientLookupParam
aParam.Index = 1 'smppiFileNum
aParam.Value = 9108
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 &_
    "National Num: " & aPatientLookupItem.NationalNum & vbNewLine & vbNewLine
  
next
  
Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface National Num can be found in Patient > Alter Patient > General > NHI field (for New Zealand), Patient > Alter Patient > General > PHN field (for Canada) or in Patient > Alter Patient > General > Medicare field.

Version information

Added in v7.8.0