ISPatientSMS.PatientId

Description

ID of the patient who sent or received the selected SMS message.

Syntax

object.PatientId

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

Return Value

int

Example

Send a new SMS message, display its text and patient ID.

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 & " (ID of the patient: " &_ 
  aPatientSms.PatientId & ")" 
  
Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Patient ID cannot be found, but Patient can be found in Organisation > Control Centre > Manage > SMS Log > Patient.

Version information

Added in v7.8.0