This function returns the problems linked to each referral of the selected patient.
object.LinkedProblems()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISReferral interface |
Display IDs of the linked problems 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:" & GetLinkedProblemsInfo(aReferrals)
Profile.MsgBox(aMessage)
end sub
function GetLinkedProblemsInfo(aReferrals)
Dim aReferral
Dim aProblems, aProblem
Dim aInfo
for each aReferral in aReferrals
aInfo = aInfo & vbNewLine & "Referral Id: " & aReferral.Id
set aProblems = aReferral.LinkedProblems
if aProblems.Count > 0 then aInfo = aInfo & vbNewLine & " Problem IDs: "
for each aProblem in aProblems
aInfo = aInfo & aProblem.Id & ", "
next
next
GetLinkedProblemsInfo = aInfo
end function
In Profile Client v8 on User Interface Problems can be found in
.