ISPatientSMS.PhoneNumber

Description

The telephone number of the patient who sent or received the selected SMS message.

Syntax

object.PhoneNumber

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

Return Value

string

Example

Send a new SMS message, display its text and the patient's phone number.

Dim aPatient
Dim aPhoneNumber
Dim aPatientSms
Dim aMessage 

Set aPatient = Profile.SelectPatient
aPhoneNumber = aPatient.CellPhone
 
set aPatientSms = Profile.SendPatientSMS(aPatient.ID, aPhoneNumber, "Hello!") 

aMessage = "Text: " & aPatientSms.Text & " (phone number: " &_ 
  aPatientSms.PhoneNumber & ")" 
  
Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Phone Number can be found in Organisation > Control Centre > Manage > SMS Log > Phone Number.

Version information

Added in v7.8.0