ISPatientUtils.LoadPatientByID

Description

This function returns the patient by ID.

Syntax

object.LoadPatientByID(aId)

Part Attribute Type Description
object Required
The object always implements the ISPatientUtils interface
aId In, Required
int
ID of the patient

Return Value

ISPatient

Returns the full name of the patient loaded by the specified ID.

Example

Display the full name of the patient loaded by the specified ID.

Dim aPatient
Dim aMessage
                                
Set aPatient = Profile.PatientUtils.LoadPatientByID(34334)
if aPatient.ID = 0 then 
  aMessage = "There is no patient with the specified ID."
else 
  aMessage = aPatient.SurnameFirstName
end if 
 
Profile.MsgBox (aMessage)
Note:

In Profile Client v8 on User Interface Patient ID cannot be found, but Patient can be found in Patient > Alter Patient.

Version information

Added in v7.8.0