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