ISPatientVers.Iwi

Description

The name of the patient's iwi in the selected patient version, returned as the short code ID.

Syntax

object.Iwi

Part Attribute Type Description
object Required
The object always implements the ISPatientVers interface
Restriction: This property is readonly.

Return Value

string

Example

Display the patient's iwi code ID in the selected patient version.

Dim aPatient  
Dim aPatientVers
Dim aIwi 
Dim aMessage  

Set aPatient = Profile.SelectPatient

if aPatient.VersionOnDate(#01/01/2019#) is nothing then
  aMessage = "There are no patient versions for this date!" 
  
else

  set aPatientVers = aPatient.VersionOnDate(#01/01/2019#) 
  aIwi = aPatientVers.Iwi

  aMessage = aMessage & vbNewLine
  aMessage = aMessage & "On 01/01/2019 the Iwi of the patient was " & aIwi 
  
end if

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Iwi can be found in Patient > Alter Patient > General > Show Versions > Social > Iwi field.

Version information

Added in v7.8.0