ISAddresses.RelationshipObj

Description

Information about relationship for every patient's additional address.

Syntax

object.RelationshipObj

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

Return Value

ISLookupItem

Example

Display relationship for every patient's additional address.

Dim aPatient
Dim aAddresses, aAddress
Dim i
Dim aRelationshipObj
Dim aMessage   
Dim aAddressCollection

Set aPatient = Profile.SelectPatient 

set aAddressCollection = aPatient.LoadAddresses

for i = 0 to aAddressCollection.Count - 1
  set aAddress = aAddressCollection.Item(i)  
  set aAddresses = Profile.LoadAdditionalAddress(aAddress.Id)
  set aRelationshipObj = aAddresses.RelationshipObj
   
  aMessage = aMessage & vbNewLine & "The relationship " &_ 
    " for the patient's additional address " &_
    aAddresses.AsLine & " is " & aRelationshipObj.Desc
next 

Profile.MsgBox (aMessage) 
Note:

In Profile Client v8 on User Interface Relationship can be found in Patient > Alter Patient > Personal > Additional Addresses > Edit Address > Relationship field.

Version information

Added in v7.8.0