ISReferral.LinkedFlowSheets

Description

This function returns the flow sheets linked to each referral of the selected patient.

Syntax

object.LinkedFlowSheets()

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

Return Value

ISFlowSheets

Returns the codes of the linked flow sheets for each referral of the selected patient.

Example

Display the codes of the linked flow sheets for each referral of the selected patient.

sub main
  Dim aPatient
  Dim aFilter
  Dim aReferrals
  Dim aMessage

  Set aPatient = Profile.SelectPatient
  set aFilter = Profile.CreateReferralsFilter
  aFilter.Patient = aPatient
  set aReferrals = Profile.LoadReferrals(aFilter)

  aMessage = "INITIAL STATE:" & GetLinkedFlowSheetsInfo(aReferrals)

  Profile.MsgBox(aMessage)
end sub

function GetLinkedFlowSheetsInfo(aReferrals)
  Dim aReferral
  Dim aFlowSheets
  Dim aFlowSheet
  Dim aInfo
  
  for each aReferral in aReferrals
    aInfo = aInfo & vbNewLine & "Referral Id: " & aReferral.Id
    set aFlowSheets = aReferral.LinkedFlowSheets
    if aFlowSheets.Count > 0 then aInfo = aInfo & vbNewLine & "  FlowSheets Codes: "   
    for each aFlowSheet in aFlowSheets
      aInfo = aInfo & aFlowSheet.Code & ", "
    next
  next
  GetLinkedFlowSheetsInfo = aInfo
end function    
Note:

In Profile Client v8 on User Interface Flow Sheets can be found in Patient > Patient Referrals > Open selected Referral > Attachments > Flow Sheets.

Version information

Added in v8.4.32