This function returns the flow sheets linked to each letter of the selected patient.
object.LinkedFlowSheets()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISLetter interface |
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
In Profile Client v8 on User Interface Linked Flow Sheets can be found in
or in .