ISReferral.ReferredOn

Description

The date the referral was made.

Syntax

object.ReferredOn

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 made.

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:" 

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

Profile.MsgBox (aMessage) 
Note: Defaults to the current date, however this can be overridden by clicking in the field and selecting the appropriate date.

In Profile Client v8 on User Interface Referred On can be found in Patient > Patient Referrals > Date Referred or Patient > Patient Referrals > Open selected Referral > Initiation > Referred field.

Version information

Added in v7.8.0