ISPatientEnrolment.IsCurrent

Description

This function checks if the patient's NES Enrolment is current.

Syntax

object.IsCurrent()

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

Return Value

bool

Returns "True" if the patient has enrolled with the current organisation and the patient's NES Enrolment is not terminated or expired.

Example

Display IsCurrent for the patient's NES Enrolments.

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 = aEnrolments.Item(i) 
  aMessage = aMessage & vbNewLine
  aMessage = aMessage & "Created: " & aEnrolment.CreatedDate &_
   ", current: " & aEnrolment.IsCurrent
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Finish Date can be found in Patient > Alter Patient > General > Enrolment > History > Enrolment detail > Effective to.

Version information

Added in v8.1.0