ISPatientEnrolment.IsEnrolledHere

Description

This function checks if the HPI Organisation ID of the organisation that has enrolled the patient and the HPI Organisation ID of the current organisation are the same.

Syntax

object.IsEnrolledHere()

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

Return Value

bool

Returns "True" if the HPI Organisation ID of the organisation that has enrolled the patient and the HPI Organisation ID of the current organisation are the same.

Example

Display IsEnrolledHere 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 &_
   ", enrolled here: " & aEnrolment.IsEnrolledHere
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface HPI Organisation ID can be found in Patient > Alter Patient > General > Enrolment > History > Enrolment detail > HPI Org and in Organisation > People & Places > Open the selected organisation > Reference > HPI Organisation Id field.

Version information

Added in v8.1.0