This function checks if the patient's NES Enrolment is expired. It is calculated on the basis of the Finish Date.
object.IsExpired()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientEnrolment interface |
bool
Display IsExpired 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 &_
", expired: " & aEnrolment.IsExpired
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Finish Date can be found in
.