ISPatient.GetEnrolments

Description

This function returns all the patient's NES Enrolments.

Syntax

object.GetEnrolments()

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

Return Value

ISPatientEnrolments

Returns the patient's NES Enrolments.

Example

Display the number of the patient's NES Enrolments, the date and time of their creation and the user who created them.

Dim aPatient  
Dim aEnrolments
Dim aEnrolment
Dim aMessage

Set aPatient = Profile.SelectPatient 
set aEnrolments = aPatient.GetEnrolments
aMessage = "Enrolments Count = " & aEnrolments.Count

for i = 0 to aEnrolments.Count - 1
  set aEnrolment = aPatient.GetEnrolments.Item(i)
  aMessage = aMessage & vbNewLine
  aMessage = aMessage & aEnrolment.CreatedDate & ", " & aEnrolment.CreatedBy
next 
Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface NES Enrolments can be found in Patient > Alter Patient > General > Enrolment.

Version information

Added in v8.1.0