ISPatientProblemVers.Severity

Description

The severity of the adverse reaction in the selected problem version.

Syntax

object.Severity

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

Return Value

TSProblemSeverity

Example

Display the codes, descriptions and the severity of the adverse reaction in each version of the patient's problems of type 'Adverse'.

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(1) 'Adverse  
  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 &_
    " (Severity = " & aProblem.Severity & ")"   
  GetProblemInfo = aInfo
end function  
Note: This property is only used for the patient's problems of 'Adverse' type.

In Profile Client v8 on User Interface Severity can be found in Clinical > Medical Record > Problems > Open Problem > History > Severity, in Clinical > Clinical Details > Problems > Open Problem > History > Severity or in Patient > Cases > Clinical > Problems > Open Problem > History > Severity.

Version information

Added in v7.8.0