ISPatientProblemVers.Nature

Description

The description of the short code of 'Adverse Reaction Nature' type assigned to the patient's problem in the selected version.

Syntax

object.Nature

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

Return Value

string

Example

Display the codes, descriptions, nature IDs and nature descriptions for the patient's problems of type 'Adverse' 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(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 &_
    " (Nature = '" & aProblem.Nature & "', Nature Id = " & aProblem.NatureID & ")"   
  GetProblemInfo = aInfo
end function  
Note: Only for Adverse reactions.

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

Version information

Added in v7.8.0