ISPatientRecallVisit.ExternalEntity

Description

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

Syntax

object.ExternalEntity

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

Return Value

ISExternalEntity

Example

Display the Globally Unique Identifier of the entity in the external system.

sub main()
  Dim aPatient, aRecallVisits, aMessage
     
  set aPatient = Profile.SelectPatient
  set aRecallPlans = aPatient.RecallPlans  

  aMessage = aMessage & GetPlanCollectionInfo(aRecallPlans)

  Profile.MsgBox(aMessage)
end sub

function GetPlanCollectionInfo(aRecallPlans)
  for each aPlan in aRecallPlans
    info = aPlan.Description & vbNewLine
    set aVisits = aPlan.Visits
    for each aVisit in aVisits 
      info = info & " - " & aVisit.Description & vbNewLine
      set aEntity = aVisit.ExternalEntity
      if aEntity is nothing then 
        info = info & "There is no external entity" & vbNewLine
      else 
        info = info & "The external entity has GUID = " & aEntity.GUID  
      end if
    next
  next  
  GetPlanCollectionInfo = info
end function  
Note:

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

Version information

Added in v7.9.2