ISPatientProblem.ClosedByID

Description

ID of the provider who has set 'Inactive' status for the patient's problem.

Syntax

object.ClosedByID

Part Attribute Type Description
object Required
The object always implements the ISPatientProblem interface

Return Value

int

Example

Display the codes, descriptions of the patient's problems in each category, the providers who have set the problems as inactive and their closure dates.

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
    if aProblem.ProblemType = 6 then  'ptPregnancy  
      aMessage = aMessage & "    " & "Code: " & aProblem.DxCode &_ 
        "; Description: " & aProblem.DxDescription & vbNewLine
    else
      if aProblem.Status = 2 then  ' pstInactive
        aMessage = aMessage & "    " &_ 
          "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_ 
          " (closed on " & aProblem.ClosedDT & " by " &_ 
          Profile.LoadProviderById(aProblem.ClosedByID).FullName & ")" & vbNewLine
      else
        aMessage = aMessage & "    " & "Code: " & aProblem.DxCode &_ 
          "; Description: " & aProblem.DxDescription & " (Active status)" & vbNewLine
      end if 
    end if  
  next
next 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Closed By ID cannot be found.

Version information

Added in v7.8.0