ISPatientVers.WorkPhone

Description

The patient's work telephone number in the selected patient version.

Syntax

object.WorkPhone

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 work telephone number in the selected patient version.

Dim aPatient  
Dim aPatientVers
Dim aMessage  

Set aPatient = Profile.SelectPatient
set aPatientVers = aPatient.VersionOnDate(#01/01/2019#)

if aPatientVers is nothing then
  aMessage = "There are no patient versions for this date!"
    
else 

  aMessage = aMessage & vbNewLine &_  
   "On 01/01/2019 the patient's work phone was " &_ 
   aPatientVers.WorkPhone & ", now the patient's work phone is " &_ 
   aPatient.WorkPhone
  
end if

Profile.MsgBox(aMessage) 
Note:

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

Version information

Added in v7.8.0