ISPatientProblem.LifeStageTo

Description

The life stage starting from which the patient no longer has the problem.

Syntax

object.LifeStageTo

Part Attribute Type Description
object Required
The object always implements the ISPatientProblem interface

Return Value

ISShortCode

Example

Display the codes, descriptions of the patient's problems in each category and the life stages from which the patient no longer has these problems.

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.ProblemType = 6 then  'ptPregnancy  
      aMessage = aMessage & "    " & "Code: " & aProblem.DxCode &_ 
        "; Description: " & aProblem.DxDescription & vbNewLine
    else
      if aProblem.LifeStageTo is nothing then 
        aMessage = aMessage & "    " &_ 
          "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_ 
          vbNewLine
      else
        aMessage = aMessage & "    " &_ 
          "Code: " & aProblem.DxCode & "; Description: " & aProblem.DxDescription &_ 
          " (Life Stage to " & aProblem.LifeStageTo.Description & ")" & vbNewLine
      end if 
    end if 
  next
next 

Profile.MsgBox(aMessage)  
Note: The Life Stage To field does not appear when the problem type is 'Procedures'.

In Profile Client v8 on User Interface Life Stage To can be found in Clinical > Medical Record > Problems > Open Problem > General > Life Stage To field, in Clinical > Clinical Details > Problems > Open Problem > General > Life Stage To field or in Patient > Cases > Clinical > Problems > Open Problem > General > Life Stage To field.

Version information

Added in v8.2.0