ISPatientEnrolment.TerminationCode

Description

The termination reason for ending the patient's NES Enrolment.

0 Unknown
1 Transfer
2 OptOut
3 Died
4 Not Eligible
5 Expire
6 Org. End
7 Link NHI

Syntax

object.TerminationCode

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

Return Value

int

Example

Display the number of the patient's NES Enrolments, the date and time of their creation and the reason code of their termination.

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 & ", termination"_ 
  & " code: " & aEnrolment.TerminationCode
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Termination Reason can be found in Patient > Alter Patient > General > Enrolment > History > Enrolment detail > Termination Reason.

Version information

Added in v8.1.0