ISReferral.Explanation

Description

Any additional comments about the reason for the referral.

Syntax

object.Explanation

Part Attribute Type Description
object Required
The object always implements the ISReferral interface
Restriction: This property is readonly.

Return Value

string

Example

Display some information about the referral, including any additional comments about the reason for the referral.

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

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

Profile.MsgBox (aMessage)  
Note:

In Profile Client v8 on User Interface Narrative can be found in Patient > Patient Referrals > Narrative or in Patient > Patient Referrals > Open selected Referral > Reason for Referral > Narrative field.

Version information

Added in v7.8.0