ISPatientProblem.ReferralId

Description

ID of the referral linked to the patient's problem of 'Procedures' type.

Syntax

object.ReferralId

Part Attribute Type Description
object Required
The object always implements the ISPatientProblem interface

Return Value

int

Example

Display the codes, descriptions for the patient's problems of 'Procedures' type and some information about the referrals linked to them.

Dim aPatient
Dim aProblemList
Dim aCategory
Dim aProblems, aProblem
Dim aReferral
Dim aMessage

Set aPatient = Profile.SelectPatient

set aProblemList = aPatient.ProblemList
set aCategory = aProblemList.Categories.Item(2) 'Procedures  
aMessage = aMessage & vbNewLine &_ 
  "---------" & aCategory.Description & "---------"  & vbNewLine & vbNewLine 
set aProblems = aCategory.Problems
if aProblems.Count = 0 then 
  aMessage = aMessage & "No procedures"
else
  for each aProblem in aProblems
    aMessage = aMessage & "    " &_ 
      "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription
    if aProblem.ReferralId = 0 then
      aMessage = aMessage &_ 
        "; " & "there is no linked referral " & vbNewLine  
    else
      set aReferral = Profile.LoadReferral(aProblem.ReferralId)  
      aMessage = aMessage &_ 
        "; the linked referral was made on " &_ 
        aReferral.ReferredOn & " and sent to " & aReferral.ReferedToAsString &_ 
        vbNewLine
    end if
  next 
end if
Profile.MsgBox(aMessage)    
Note: This property is only used for the patient's problems of 'Procedures' type.

In Profile Client v8 on User Interface Referral Id cannot be found, but Referral can be found in Clinical > Medical Record > Problems > Open Problem > General > Referral field, in Clinical > Clinical Details > Problems > Open Problem > General > Referral field or in Patient > Cases > Clinical > Problems > Open Problem > General > Referral field.

Version information

Added in v7.8.0