ISPatientProblem.ExternalEntity

Description

The entity in the external system associated with the patient's problem.

Syntax

object.ExternalEntity

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

Return Value

ISExternalEntity

Example

Display the codes, descriptions of the patient's problems in each category and the Globally Unique Identifier of their entity in the external system.

Dim aPatient
Dim aProblemList
Dim aCategories
Dim aCategory
Dim aProblems
Dim aProblem
Dim aMessage

Set aPatient = Profile.SelectPatient

set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories

for each aCategory in aCategories
  aMessage = aMessage & vbNewLine & "---------" & aCategory.Description &_ 
    "---------"  & vbNewLine & vbNewLine 
  set aProblems = aCategory.Problems
  for each aProblem in aProblems
    if aProblem.ExternalEntity is nothing then  
      aMessage = aMessage & "    " & "Code: " & aProblem.DxCode &_ 
        "; Description: " & aProblem.DxDescription & vbNewLine
    else 
      aMessage = aMessage & "    " &_ 
        "Code: " & aProblem.DxCode & "; Description: " &_ 
        aProblem.DxDescription & "; The external entity has GUID = " &_ 
        aProblem.ExternalEntity.GUID & vbNewLine
    end if  
  next
next 

Profile.MsgBox(aMessage)    
Note:

In Profile Client v8 on User Interface External Entity cannot be found.

Version information

Added in v7.9.2