The internal telephone number for sending SMS messages to the patient and receiving them from him/her.
object.InternalPhoneNumber
| Part | Attribute | Type | Description |
|---|---|---|---|
object |
Required | The object always implements the
ISPatientMessage interface |
string
Display the number of the patient's messages loaded on the basis of the selected filter, their text, internal phone number and the participants of the conversation.
Dim aPatient
Dim aProvider
Dim aFilter
Dim aPatMessages
Dim aPatMessage
Dim aMessage
Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreatePatientMessagesFilter
aFilter.PatientId = aPatient.ID
set aPatMessages = Profile.LoadPatientMessages(aFilter)
aMessage = "Patient Messages Count = " & aPatMessages.Count & vbNewLine
for i = 0 to aPatMessages.Count - 1
set aPatMessage = aPatMessages.Item(i)
if aPatMessage.PatientId > 0 then
set aPatient = Profile.LoadPatient(aPatMessage.PatientId)
aMessage = aMessage & "Patient: " & vbTab & aPatient.SurnameFirstname & vbTab
else
aMessage = aMessage & "Patient: " & vbTab & " - " & vbTab
end if
if aPatMessage.ProviderId > 0 then
set aProvider = Profile.LoadProviderById(aPatMessage.ProviderId)
aMessage = aMessage & "Prov: " & vbTab & aProvider.FullName & vbTab
else
aMessage = aMessage & "Prov: " & vbTab & " - " & vbTab
end if
if aPatMessage.DeliveryKind = 0 then 'ssdrSent
aMessage = aMessage & "Text: " & vbTab & aPatMessage.Text & " (" &_
"The phone number for sms: " & aPatMessage.InternalPhoneNumber & ")" & vbNewLine
else
aMessage = aMessage & "Text: " & vbTab & aPatMessage.Text & vbNewLine
end if
next
Profile.MsgBox(aMessage) In Profile Client v8 on User Interface Internal Phone Number can be found in .
Access changed to read/write in v8.2.0