The patient the selected problem refers to.
object.Patient
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISPatientProblem interface |
Display the full names and IDs of the patients the loaded problems refer to.
Dim aPatient
Dim aProblemList
Dim aCategories
Dim aCategory
Dim aProblems
Dim aProblem
Dim aMessage
Set aPatient = Profile.SelectPatient
set aProblemList = aPatient.ProblemList
set aCategories = aProblemList.Categories
for each aCategory in aCategories
aMessage = aMessage & vbNewLine & "---------" & aCategory.Description &_
"---------" & vbNewLine & vbNewLine
set aProblems = aCategory.Problems
for each aProblem in aProblems
aMessage = aMessage & " " & "The patient " &_
aProblem.Patient.SurnameFirstName & " (" & aProblem.PatientId & ")" &_
" has a problem with the code: " & aProblem.DxCode & " (Description: " &_
aProblem.DxDescription & ")" & vbNewLine
next
next
Profile.MsgBox(aMessage)