ID of the invoice incurred for the answered question.
object.InvoiceId
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISQuestion interface |
int
Display the number of questions and some information about them, including the dates of the invoices.
Dim aPatient
Dim aQuestions, aQuestion
Dim aMessage
Dim i
Set aPatient = Profile.SelectPatient
set aQuestions = Profile.ProfileInternal.LoadQuestionsForPatient(aPatient.ID)
aMessage = "Questions Count = " & aQuestions.Count
for i = 0 to aQuestions.Count - 1
set aQuestion = aQuestions(i)
aMessage = aMessage & vbNewLine &_
"Title: " & aQuestion.Title & vbNewLine &_
"Amend Date: " & aQuestion.AmendDate & vbNewLine &_
"Answer: " & aQuestion.Answer & vbNewLine &_
"Body: " & aQuestion.Body & vbNewLine &_
"Date: " & aQuestion.Date & vbNewLine &_
"Patient: " & aPatient.SurnameFirstName & vbNewLine &_
"Status: " & aQuestion.Status & vbNewLine
if aQuestion.InvoiceId <> 0 then
aMessage = aMessage & vbNewLine & "The date of the invoice: " &_
Profile.LoadInvoice(aQuestion.InvoiceId).Date & vbNewLine
end if
next
Profile.MsgBox(aMessage)