ISReferral.ClosedOn

Description

The date the referral was closed.

Syntax

object.ClosedOn

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

Return Value

DateTime

Example

Display some information about the referral, including the date it was closed.

Dim aPatient
Dim aReferralsFilter
Dim aReferrals
Dim aReferral
Dim aMessage

Set aPatient = Profile.SelectPatient
set aReferralsFilter = Profile.CreateReferralsFilter

aReferralsFilter.Patient = aPatient.Id

set aReferrals = Profile.LoadReferrals(aReferralsFilter)
aMessage = aMessage & "Refferals Count = " & aReferrals.Count

aMessage = aMessage & vbNewLine &_
  "Referred On:" & vbTab & "Referred To:" & vbTab & "Closed On:"

for i = 0 to aReferrals.Count - 1 
  set aReferral = aReferrals.Item(i)
  aMessage = aMessage & vbNewLine &_
    aReferral.ReferredOn & vbTab &_
    aReferral.ReferedToAsString & vbTab &_
    aReferral.ClosedOn
next 

Profile.MsgBox (aMessage)  
Note: If manually entered, it will automatically change the status of the referral to 'Closed'.

In Profile Client v8 on User Interface Closed On can be found in Patient > Patient Referrals > Open selected Referral > Closure > Closed field.

Version information

Added in v7.8.0