This parameter property is used to load the collection of patient problems the referral with the specified ID is linked to.
object.ReferralId
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblemLoadParams interface |
int
Display the number of the patient problems loaded on the basis of the selected parameter, their codes, descriptions and IDs of the referrals linked to them.
Dim aPatient
Dim aReferralsFilter
Dim aReferrals
Dim aReferralId
Dim aParams
Dim aProblems, aProblem
Dim aMessage
Set aPatient = Profile.SelectPatient
set aReferralsFilter = Profile.CreateReferralsFilter
aReferralsFilter.Patient = aPatient
set aReferrals = Profile.LoadReferrals(aReferralsFilter)
if aReferrals.Count = 0 then
aMessage = "No referrals"
else
aReferralId = aReferrals.Item(0).ID
set aParams = Profile.MakePatientProblemLoadParams
aParams.AddProblemType(3) 'ptProcedures
aParams.ReferralId = aReferralId
set aProblems = Profile.LoadPatientProblems(aParams)
aMessage = "Problems Count = " & aProblems.Count
for i = 0 to aProblems.Count - 1
set aProblem = aProblems.Item(i)
aMessage = aMessage & vbNewLine & (i + 1) & ") " & "Code: " &_
aProblem.DxCode & " (Description: " & aProblem.DxDescription & ")" &_
"; ID of the linked referral: " & aProblem.ReferralId
next
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Referral Id cannot be found, but Referral linked to the problem can be found in
, in or in , Referrals can be found in .