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