ISLetter.LinkedFlowSheets

Description

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

Syntax

object.LinkedFlowSheets()

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

Return Value

ISFlowSheets

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

Example

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

sub main
  Dim aPatient
  Dim aLetters
  Dim aMessage

  Set aPatient = Profile.SelectPatient
  set aLetters = aPatient.GetLetters (1) ' slcfWordRTF

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

  Profile.MsgBox(aMessage)
end sub

function GetLinkedFlowSheetsInfo(aLetters)
  Dim aLetter
  Dim aFlowSheets, aFlowSheet
  Dim aInfo
  
  for each aLetter in aLetters
    aInfo = aInfo & vbNewLine & "Letter ID: " & aLetter.ID
    set aFlowSheets = aLetter.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 Linked Flow Sheets can be found in Clinical > Medical Record > Documents > Open saved document > Attachments > Flow Sheets or in Organisation > Work Centre > Communication > Letters > Open saved document > Attachments > Flow Sheets.

Version information

Added in v8.4.59