ISPatientProblem.PatientId

Description

ID of the patient who has the selected problem.

Syntax

object.PatientId

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

Return Value

int

Example

Display the full names and IDs of the patients who have the loaded problems.

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