ISProfile.LoadPatientByAliasCode

Description

This function returns the patient by the specified alias code.

Syntax

object.LoadPatientByAliasCode(aAliasCode)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aAliasCode In, Required
string
The alias code of the patient

Return Value

ISPatient

Returns the patient by the specified alias code.

Example

Display the patient's full name.

Dim aPatient
Dim aMessage

Set aPatient = Profile.LoadPatientByAliasCode("MAT")

if aPatient is nothing then
aMessage = "There is no patient with the specified alias code."
else
aMessage = aPatient.SurnameFirstName 
end if

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Alias Code can be found in Financial > Payers > Edit an existing payer > Alias field.

Version information

Added in v7.8.0