ISPatientProblemVers.CaseID

Description

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

Syntax

object.CaseID

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

Return Value

int

Example

Display the codes, descriptions of the patient's problems and titles of the cases to which these problems apply in each problem version.

sub main
  Dim aPatient
  Dim aProblemList
  Dim aCategories, aCategory
  Dim aProblems, aProblem
  Dim aFilter
  Dim aProblemVersColl, aVersion
  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 & vbNewLine & "    " & GetProblemInfo(aProblem) 
      set aFilter = Profile.CreateVersionFilter
      aFilter.FromDate = #01/01/2019#
      aFilter.ToDate = #06/06/2019#
      set aProblemVersColl = aProblem.FindVersions(aFilter)
      for each aVersion in aProblemVersColl
        aMessage = aMessage & vbNewLine & "      -" & GetProblemInfo(aVersion) 
      next ' aVersion                  
    next ' aProblem
  next ' aCategory 

  Profile.MsgBox(aMessage)
end sub

function GetProblemInfo(aProblem)
  Dim aInfo

  aInfo = "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription
  if aProblem.CaseID <> 0 then  
    aInfo = aInfo & " (Case = " & Profile.OpenCase(aProblem.CaseID).CaseTitle &_ 
      ")"    
  end if
  GetProblemInfo = aInfo
end function   
Note:

In Profile Client v8 on User Interface Case ID cannot be found, but Case Title be found in Report > Find Objects > Case > Problem > Problem Version.

Version information

Added in v7.8.0