ID of the appointment linked to the patient's message.
object.AppointmentID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientMessage interface |
int
Display the number of the patient's messages loaded on the basis of the selected filter, their text, ID of the linked appointment 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.AppointmentID > 0 then
aMessage = aMessage & "Text: " & vbTab & aPatMessage.Text &_
" (ID of the linked appointment is " & aPatMessage.AppointmentID & ")" &_
vbNewLine
else
aMessage = aMessage & "Text: " & vbTab & aPatMessage.Text &_
" (no linked appointments) " & vbNewLine
end if
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Appointment ID cannot be found, but the linked Appointment can be found in
or in .Access changed to
read/write in v8.2.0