ISPatientEnrolment.OrganisationName

Description

The name of the organisation that has enrolled the patient.

Syntax

object.OrganisationName

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

Return Value

string

Example

Display the number of the patient's NES Enrolments, the date and time of their creation and the name of the organisation.

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 & ", organisation: " &_ 
    aEnrolment.OrganisationName
next 

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Organisation Name can be found in Patient > Alter Patient > General > Enrolment > History > Organisationor in Patient > Alter Patient > General > Enrolment > History > Enrolment detail > HPI Org.

Version information

Added in v8.1.0