ISPatientProblem.CaseID

Description

ID of the patient's case to which the patient's problem applies.

Syntax

object.CaseID

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 and IDs of the patient's cases to which these problems apply.

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.CaseID = 0 then
      aMessage = aMessage & "    " &_ 
        "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_ 
        "; there is no linked case " & vbNewLine  
    else  
      aMessage = aMessage & "    " &_ 
        "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_ 
        "; ID of the linked case: " & aProblem.CaseID & vbNewLine
    end if
  next
next 

Profile.MsgBox(aMessage)    
Note:

In Profile Client v8 on User Interface Case ID cannot be found, but Case can be found in Clinical > Medical Record > Problems > Open Problem > General > Case field or in Clinical > Clinical Details > Problems > Open Problem > General > Case field.

Version information

Added in v7.8.0