ISPatientProblem.Patient

Description

The patient the selected problem refers to.

Syntax

object.Patient

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

Return Value

ISPatient

Example

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)  
Note:

Version information

Added in v7.8.0