ISPatientProblemVers.OutcomeID

Description

ID of the short code of type 'Diagnosis Outcome'.

Syntax

object.OutcomeID

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 and outcomes for the patient's problems of 'Diagnosis' type in each problem version.

sub main
  Dim aPatient
  Dim aProblemList
  Dim aCategory
  Dim aProblems, aProblem
  Dim aFilter
  Dim aProblemVersColl, aVersion
  Dim aMessage
  
  Set aPatient = Profile.SelectPatient

  set aProblemList = aPatient.ProblemList
  set aCategory = aProblemList.Categories.Item(0) 'Diagnosis  
  aMessage = aMessage & vbNewLine &_ 
    "---------" & aCategory.Description & "---------"  & vbNewLine  
  set aProblems = aCategory.Problems
  if aProblems.Count = 0 then 
    aMessage = aMessage & "No procedures"
  end if
    for each aProblem in aProblems 
      aMessage = aMessage & "    " & GetProblemInfo(aProblem) & vbNewLine
      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 & "      -" & GetProblemInfo(aVersion) & vbNewLine 
      next ' aVersion                  
    next ' aProblem
  Profile.MsgBox(aMessage)
end sub

function GetProblemInfo(aProblem)
  Dim aInfo

  aInfo = "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription 
  if aProblem.OutcomeID <> 0 then  
    aInfo = aInfo & " (Outcome = " &_ 
      Profile.LoadShortCode(aProblem.OutcomeID).Description & ")"    
  end if
  GetProblemInfo = aInfo
end function  
Note:

In Profile Client v8 on User Interface Outcome ID cannot be found, but Outcome can be found in Clinical > Medical Record > Problems > Open Problem > History > Outcome, in Clinical > Clinical Details > Problems > Open Problem > History > Outcomeor in Patient > Cases > Clinical > Problems > Open Problem > History > Outcome.

Version information

Added in v7.8.0