ISProfile.CreateReferralsFilter

Description

This function is used to create the filter for loading referrals.

Syntax

object.CreateReferralsFilter()

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

Return Value

ISReferralsFilter

Returns the filter for loading referrals.

Example

Display the number of the referrals loaded on the basis of the selected filter and some information about them.

Dim pFilter
Dim aReferrals
Dim aReferral
Dim aMessage

Set pFilter = Profile.CreateReferralsFilter
pFilter.ReferredToProv = "MM"
set aReferrals = Profile.LoadReferrals(pFilter)

aMessage = "Referrals Count = " & aReferrals.Count
for i = 0 to aReferrals.Count - 1
  set aReferral = aReferrals.Item(i)
  aMessage = aMessage & vbNewLine & "The patient " &_
    aReferral.Patient.SurnameFirstName &_
    " with the diagnosis '" & aReferral.DiagnosisDescription &_
    "' was refered to " & aReferral.ReferedToAsString    
next      

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Referrals can be found in Organisation > Work Centre > Work > Referrals.

Version information

Added in v7.8.0